Created
April 23, 2022 08:30
-
-
Save Vincent-233/c46b6701e3af09615b5a7c38982060c3 to your computer and use it in GitHub Desktop.
mssql local db
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------- LocalDB | |
-- cmd command: create a instance my_db, can be connected via (localdb)\my_db | |
SqlLocalDB CREATE mssql_local | |
-- create database | |
CREATE DATABASE [my_db] | |
CONTAINMENT = NONE | |
ON PRIMARY | |
( NAME = N'test_db', FILENAME = N'D:\DB-File\local_my_db.mdf' , SIZE = 8192KB , FILEGROWTH = 8192KB ) | |
LOG ON | |
( NAME = N'test_db_log', FILENAME = N'D:\DB-File\local_my_db.ldf' , SIZE = 8192KB , FILEGROWTH = 8192KB ) | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment