Click here to Skip to main content
15,885,953 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How we can execute sql statement on the server.....right now i am executing the sql statement on local host, but now, i want to execute it on server. I m using sql server 2008. any one guide me, how we execute it on the server......
Posted

 
Share this answer
 
When you execute any SQL query, you are executing it on a SQL server instance. For development, you are using an instance on your own computer - hence the "localhost" part of the connection string.

To execute it on the production server, you just need to change the connection string to address the correct SQL server instance.
Oh, and make sure you have the database on the production server as well! :laugh:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900