sqlcmd

SQLCMD  -S SQLCLUSTER –E  
Use master;
Go
Select  * from sys.databases;
Go

 

 

sqlcmd -S server\instance -U sa -p pass

 

SQL Cluster:

sqlcmd -s "sqlcsnet2\mssqlserver2"

sqlcmd -s "sqlcsnet"

posted on 2013-04-17 22:04  momingliu11  阅读(197)  评论(0编辑  收藏  举报