Support createSchema for MSSQL
See original GitHub issueEnvironment
Knex version: all Database + version: MS SQL (all) OS: (all)
Select applicable template from below. MS SQL: @smorey2
Feature discussion / request
- Explain what is your use case
MS SQL Supports Schemata almost the same way as Postgres (they are after all cousins). createSchema
should work on both MSSQL. The implementation is nearly identical to Postgres’s.
- Explain what kind of feature would support this
This is a matter of adding support in MSSQL for a feature that works in Postgres and then altering the check in compiler.js for ‘PGOnly’ to support both PG and MSSQL.
- Give some API proposal, how the feature should work
API is already implemented with a thrown error. This should just implement the missing functionality.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
CREATE SCHEMA (Transact-SQL) - Microsoft Learn
CREATE SCHEMA can create a schema, the tables and views it contains, and GRANT, REVOKE, or DENY permissions on any securable in a...
Read more >SQL Server CREATE SCHEMA Statement By Examples
SQL Server CREATE SCHEMA statement overview · First, specify the name of the schema that you want to create in the CREATE SCHEMA...
Read more >SQL CREATE/ALTER/DROP SCHEMA - w3resource
Use the CREATE SCHEMA statement to create multiple tables and views and perform multiple grants in your own schema in a single transaction....
Read more >CREATE SCHEMA in SQL Server - GeeksforGeeks
A schema is a collection of database objects like tables, triggers, stored procedures, etc. A schema is connected with a user which is...
Read more >Creating users and schemas for SQL Server databases - IBM
Important: In Microsoft SQL server, the default schema name associated with a user must be the same as the user name. For example,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Crisfole Weird. Then again, Oracle is not run in CI anymore (hi, Travis CI), so I wouldn’t be surprised if it’s broken. Feel free to ignore it and use db:run-without-oracle.
@kibertoad of course just wanted to log this first.
Still waiting on the docker pull…that’ll take a while.