question

sumit.prs5 avatar image
sumit.prs5 asked

how do in login to aremote sql server from command prompt

If i have server IP address, database name, user id and password..
sql-server-2008-r2
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

raadee avatar image
raadee answered
First you should download and install SQLCMD (if you do not have it installed already, write SQLCMD in command prompt to verify. [Download link for SQLCMD][1] Then go to command prompt and type: sqlcmd -S ipaddress -U user -P password [Instructions on how to use SQLCMD][2] [1]: http://www.microsoft.com/en-us/download/details.aspx?id=36433 [2]: http://technet.microsoft.com/en-us/library/ms180944.aspx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Grant Fritchey avatar image
Grant Fritchey answered
Most modern servers have PowerShell available. You can use that connect to SQL Server. Here's a [tip on how to manage it.][1] [1]: http://www.mssqltips.com/sqlservertip/1947/connect-to-sql-server-via-windows-powershell-with-sql-server-authentication/
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.