is there any method to connect to remote system and run SQL commands on that system.
Loading
is there any method to connect to remote system and run SQL commands on that system.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Jan 19, 2024, 11:36 AM EST
If the SQL Server on the remote system is configured to allow remote connections, you can use SQL Server Management Studio on your local machine to connect to the remote SQL Server instance and execute SQL commands.
like
server 172.78.89.4
username : "<>"
password :"<>"
Jayraj ChhayaRank #304 · 8.2K reputationPosted Jan 24, 2024, 1:58 AM EST
Yes, there are several methods to connect to a remote system and run SQL commands. One common method is to use a client tool, such as SQL Server Management Studio (SSMS), to establish a connection to the remote system and execute SQL queries.
Here are the general steps to connect to a remote system using SSMS:
Another method is to use the SQLCMD utility, which is a command-line tool that allows you to run SQL commands from the command prompt. You can specify the necessary connection details, such as the server name, username, and password, directly in the command line.
Here's an example of how to use SQLCMD to connect to a remote system and run a SQL command:
sqlcmd -S -U -P -Q "SELECT * FROM "Replace
,,, andwith the appropriate values for your remote system.Anandu G NathRank #681 · 3.5K reputationPosted Jan 25, 2024, 7:56 AM EST
Yes it is possible
You can use SQL server management studio to execute sql command,
You can login with sql Server authentication methode.