Collections:
Verifying a User Name with SQLCMD Tool in SQL Server
How To Verify a User name with SQLCMD Tool in SQL Server?
✍: FYIcenter.com
The quickest way to verify a user name in a database is probably to use the SQLCMD tool. You can connect to the server, select the database, and check which user name is linked the current login name as shown below.
Start a command window and enter the following command:
C:\>SQLCMD -S LOCALHOST\SQLEXPRESS -U Fyi_Login -P IYF 1> USE FyiCenterData; 2> GO Changed database context to 'FyiCenterData'. 1> PRINT User_Name(); 2> GO Fyi_User
This shows user "Fyi_User" in database "FyiCenterData" is linked to login name "Fyi_Login".
⇒ "ALTER USER" - Changing the Name of a Database User in SQL Server
⇐ Finding the Login Name Linked to a Given User Name in SQL Server
2017-08-25, 6245🔥, 0💬
Popular Posts:
How To Get Help Information from the Server in MySQL? While you are at the "mysql>" prompt, y...
How Fixed Length Strings Are Truncated and Padded in SQL Server Transact-SQL? When the length of the...
How Many Groups of Data Types in MySQL? MySQL support 3 groups of data types as listed below: String...
Where to find answers to frequently asked questions in general areas of Microsoft SQL Server Transac...
How To Look at the Current SQL*Plus System Settings in Oracle? If you want to see the current values...