Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I want to write an app that connects to a database on another computer using LINQ to Entities. Do I need to configure a connection string? If so, how do I do this?
Posted
Updated 1-Nov-12 10:17am
v3

1 solution

This SHOULD just be a change in the connection string.

But, you didn't say anything about the database engine you're using, so it's kind of impossible to say exactly what the change should look like. It's normally just changing the Server or DataSource portion of the string, but that depends entirely on the SQL server that you're using.
 
Share this answer
 
Comments
nariman008 2-Nov-12 2:14am    
Thanks, you mean , i have to install windows server?? or its enough to install sql server [2008] in admin pc?? i didnt create an app like this , so i dont no what to do
please if its possible , guide me throw this , thanks
Dave Kreskowiak 2-Nov-12 8:09am    
It's no different than writing an app to work on the same machine as the database server. You just need to change the connection string to point to the DNS name of the SQL Server machine or it's IP address. Using the machine name is a bit more flexible.

You can see connection strings for this at http://connectionstrings.com/sql-server-2008

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