Click here to Skip to main content
15,906,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have two applications hosted on different Domains of go daddy. Now i want to save data from one application into another application, i am using the same connection string used in first application but it is not working there. can any body please to help me to come out of the problem.
Posted
Comments
Code 89 16-May-12 1:47am    
post your code which u have written..
Sandeep Mewara 16-May-12 2:29am    
Elaborate 'Not working'. Any error? what exactly.

1 solution

SqlConnection con = new SqlConnection("Data Source=emisdemo.db.8972447.hostedresource.com; Initial Catalog=dbname; User ID=isha; Password='ish@123'");

con.Open();

this piece of code is working in one application but not in other application
 
Share this answer
 
Comments
Mir Ishaq 16-May-12 1:56am    
the error occurs like this

" A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) "

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