how to connect SQL servr by sqlcmd comment
2012-11-10 21:01
288 查看
cmd
C:\>sqlcmd -S ANT-CN-ZHUWH
1> use mysqldb
2> select * from login_info;
3> go
Changed database context to 'MySQLDB'.
UserID Password UserName
Roles EMail Approved
-------------------- -------------------------------------------------- --------
-- ---------- -------------------------------------------------- --------
SelectUser NULL NULL
SelectPop NULL NULL
123 202CB962AC59075B964B07152D234B70 123
Level1 NULL 0
Admin 202CB962AC59075B964B07152D234B70 winfor
i Admin admin@winfor.com 1
Tester 202CB962AC59075B964B07152D234B70 Tester
Level2 NULL 1
user 202CB962AC59075B964B07152D234B70 Guest
Guest NULL 1
111 698d51a19d8a121ce581499d7b701668 111
Guest 111@winfor.com 0
(6 rows affected)
1>exit
C:\>sqlcmd -S ANT-CN-ZHUWH
1> use mysqldb
2> select * from login_info;
3> go
Changed database context to 'MySQLDB'.
UserID Password UserName
Roles EMail Approved
-------------------- -------------------------------------------------- --------
-- ---------- -------------------------------------------------- --------
SelectUser NULL NULL
SelectPop NULL NULL
123 202CB962AC59075B964B07152D234B70 123
Level1 NULL 0
Admin 202CB962AC59075B964B07152D234B70 winfor
i Admin admin@winfor.com 1
Tester 202CB962AC59075B964B07152D234B70 Tester
Level2 NULL 1
user 202CB962AC59075B964B07152D234B70 Guest
Guest NULL 1
111 698d51a19d8a121ce581499d7b701668 111
Guest 111@winfor.com 0
(6 rows affected)
1>exit
相关文章推荐
- SQL: How to get a series of dates in sql using connect by
- How to check the MS SQL Server job run status by using Script
- HOW TO ORDER BY A CUSTOM SQL FORMULA/EXPRESSION WHEN USING HIBERNATE CRITERIA API
- How to move the databases that are used by SharePoint Portal Server 2003 to a computer that is running SQL Server
- ConnectionStrings.com - How to connect to SQL Server 2005
- SQL Syntax - how to group by interval
- How to grant access to SQL logins on a standby database when the guest user is disabled in SQL Serve
- How to select unique records by SQL
- How can I connect Unity to an SQL database in order to implement an MMO?
- How to get details about patch applied in Oracle Applications by OAM & SQL?
- How to see the Physical SQL generated by a request in Presentation Service ?
- How To Connect Using A Sqlplus Preliminary Connection (Doc ID 986640.1)
- How to Interpret the "SQL ordered by Physical Reads (UnOptimized)" Section in AWR (文档 ID 1466035.1)
- How to connect SQLPlus without tnsnames.ora
- How to connect to another database using sqlplus?
- How to resolve the SQL error “cannot connect to WMI provider”
- How to Identify User&Password of DataBase safely in SQL statement?
- sqlserver有没有类似sys_connect_by_path的函数-MS-SQLServer/基础类
- Linq to SQL语句之 Group By /Having和Exists/In/AnyAll/Contains
- QT7 How to connect Qt to SQLite