惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
SecWiki News
SecWiki News
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
量子位
M
MIT News - Artificial intelligence
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
TaoSecurity Blog
TaoSecurity Blog
博客园 - 【当耐特】
H
Heimdal Security Blog
腾讯CDC
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
S
Schneier on Security
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
博客园 - 司徒正美
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Cybersecurity and Infrastructure Security Agency CISA
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
Application and Cybersecurity Blog
Application and Cybersecurity Blog
F
Full Disclosure
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threatpost
月光博客
月光博客
A
Arctic Wolf
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
T
Troy Hunt's Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
D
DataBreaches.Net
O
OpenAI News
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
小众软件
小众软件
V
Vulnerabilities – Threatpost
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
T
The Exploit Database - CXSecurity.com
Martin Fowler
Martin Fowler
美团技术团队
P
Privacy International News Feed

博客园 - 账号难注册

PowerDesigner生成PowerBuilder扩展属性~ ASP.NET收发邮件 如何清除SQL Server Management Studio的最近服务器列表 解决Android应用安装快完毕时提示签名冲突 Android SDK ADT下载地址 控制面板中java设置项如何删除 关于IIS服务器证书续订 Web Deploy安装时显示Web Management Service无法启动 加密web.config extjs组件添加事件监听的三种方式 (转)asp.net中获得客户端的IP地址 HashPasswordForStoringInConfigFile中的Md5算法并非常用的Md5算法 (转)C#实现MD5加密 pb将datawindow数据导出EXCEL (转)笔记320 SQLSERVER中的加密函数 2013-7-11 Sqlserver2005附加数据库时出错提示操作系统错误5(拒绝访问)错误5120的解决办法 PowerDesigner中Name与Code同步的问题 (转) PowerDesigner中Table视图同时显示Code和Name SQLServer2012在登录远程服务器实例时报错:尝试读取或写入受保护的内存
使用SqlLocalDB命令行管理LocalDB
账号难注册 · 2014-05-01 · via 博客园 - 账号难注册

SqlLocalDB.exe start v11.0

SqlLocalDB.exe info v11.0

SQL Server Management Stdio添加管道连接实例

 默认实例名(localDB)\v11.0

为了方便管理,LocalDB提供了一个基于命令行的数据库管理工具SqlLocalDB.exe。下面是SqlLocalDB.exe的路径:

  1. %ProgramFiles%\Microsoft SQL Server\110\Tools\Binn 

我们可以在Windows操作系统的CMD命令行中运行SqlLocalDB.exe:

  1. Cd %ProgramFiles%\Microsoft SQL Server\110\Tools\Binn  
  2. SqlLocalDB.exe /? 

图1:SqlLocalDB -?

SqlLocalDB以空格作为分隔符,因此,如果实例名中包含空格或其它特殊字符,我们引用的时候需要加引号。例如:

  1. SqlLocalDB create "My LocalDB Instance" 

管理员或开发人员可以使用create选项创建LocalDB实例,使用-s选项,将会在实例创建之后启动实例。例如:

  1. SqlLocalDB create "MyLocalDB" 11.0 -s 

可以使用如下命令查看MyLocalDB实例的状态信息:

  1. SqlLocalDB info "MyLocalDB" 

该命令将返回如下信息:

图二:SqlLocalDB info MyLocalDB

启动、停止LocalDB实例:

  1. SqlLocalDB start "MyLocalDB"  
  2. SqlLocalDB stop "MyLocalDB" 

删除LocalDB实例:

  1. SqlLocalDB delete "MyLocalDB" 

以上使用SqlLocalDB.exe命令行实用工具管理LocalDB的一点简要总结,更多功能还有待于读者自己去挖掘,记得用SqlLocalDB.exe /?命令寻求帮助。

使用SQL Server Management Studio(SSMS)管理LocalDB

读到这里,大家是否有灵感闪现,找到了一种用SQL Server Management Studio(SSMS)管理LocalDB的方法?没错,就是利用“实例管道名称”!

首先,我们仔细观察上面的LocalDB实例信息,注意“实例命名管道名称”一项。

然后,在SQL Server Management Studio(SSMS)中点击“连接”|“数据库实例”,在“服务器名称”中输入“实例管道名称”,如图所示:

图3:连接到服务器

最后,选择“Windows身份验证”,点击“连接”:

图4:SQL Server Management Stdio