SQL Server LocalDB Learning Note 02 Basic management

Source: Internet
Author: User
Tags management studio sql server management sql server management studio

Management LocalDB 1. Sqllocaldb commandAfter the installation, you can look at the environment variables in the path, there will generally be%programfiles%\microsoft SQL Server\110\tools\binn This is the location of SQLLOCALDB storage, if the CMD does not take effect, Edit the button click (Nothing to change), then OK, the final outer layer is OK, let the new path take effect. Create a DB instance CSQLLOCALDB Create "instance name"-S parameter-s optional, plus after the creation of a direct instance Delete db instance DSQLLOCALDB Delete "instance name" Start/Stop instance s/pSqllocaldb start|stop "Instance name" stop defaults to close the instance after the query is completed-I mate stop is immediately stop developing an instance-K to stop an instance if there is no link to the instance Shared Instance HSqllocaldb share|h ["Owner SID or Account"] "private Name" "Share name" shares the specified dedicated instance with the specified share name. If the user SID or account name is omitted, it defaults to the current user. Stop sharing USqllocaldb unshare "Share name" View information ISQLLOCALDB info ["Instance name"] View all, or specify the instance name Version vSQLLOCALDB version Tracking TTrace On|off turn on database tracking 2. Manage LOCALDB using SQL Server Management Studio (SSMS)Let's say we create a new instance named test01, and then we see this with info: the instance pipeline name: Np:\\.\pipe\localdb#7a15dcd7\tsql\query Here, copy the NP-beginning content to the server name, Then authentication selects Windows to connect. When you connect, you see the same content as any other database: The rest of the usage is just like standard SQL Express.

SQL Server LocalDB Learning Note 02 Basic management

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.