Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey guys,

I M NEW TO MSSQL.
if i connect to db and than if i want to run it on other pc than what to do?
Posted
Comments
Rajesh Anuhya 26-Oct-10 4:39am    
Question Not Clear
Sunasara Imdadhusen 26-Oct-10 4:40am    
Please explain your problem very clear.
Do you want to execute query on remote machine from your machine?
tamannashah1993 26-Oct-10 5:01am    
actually,
i m creating database at my comp. and connecting it wid asp.net.
it runs successful.
but when i run it on others comp. it gives error.
thatraja 26-Oct-10 5:10am    
What's the error? post in your question.....check updated answer
Sunasara Imdadhusen 26-Oct-10 5:16am    
are you trying to run Application or Database from other?

sry guys,

I Explain it in details.

actually, i m creating database at my comp. and connecting it wid asp.net. it runs successful. but when i run it on others comp. it gives error.-it gives the error that no such database found. or error in connection string.
 
Share this answer
 
I think,
You should change the System name in connectionstring in web.config file or you should include the database in your other machine.

I don't know your scenario..

You have database & asp.net app in same machine? or separate machines?
 
Share this answer
 
v2
Comments
tamannashah1993 26-Oct-10 5:28am    
thanks thatraja..

but if it is dump,so all time it is not possible to change conn. string.

so is there any generalized solution?
tamannashah1993 26-Oct-10 5:28am    
sry,if the client is dump
Sunasara Imdadhusen 26-Oct-10 6:04am    
Do you have SQL Server on other machine where you are trying to connect

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