Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
HI,
I have created a windows application which needs to connect with sql server instance which is present in remote machine,the application is built under .net framework 4.0. So my question is whether sql server or sql server clientshould be installed in the machine where my application is installed.The machine is already having framework 4.0 installed.

Thanks in advance,
gaurav
Posted
Updated 20-Jun-12 7:39am
v2

Necessarily not.
The Sql Server instance, could be every where, but accessible in LAN/WAN by a valid IP, the application needs the valid IP and an open port (for example 1433) in its connection string.

Please look at these:
Connection strings for SQL Server 2008
Beginners guide to accessing SQL Server through C#
What's the best way to connect Winform to a remote SQL SERVER?
 
Share this answer
 
v5
Comments
gtulsyan 20-Jun-12 13:46pm    
i want to know how the data communication between application and sql server would happen,whether it would happen with help of component of dotnet framework?
Shahin Khorshidnia 20-Jun-12 13:55pm    
What do you mean how? Your question is not clear enough. .Net Framework and SQL Server can handle the communication. But if you mean Encrypting Connections to SQL Server, then look at: http://msdn.microsoft.com/en-us/library/ms189067(v=sql.105).aspx
Sergey Alexandrovich Kryukov 20-Jun-12 14:40pm    
Reasonable, my 5.
--SA
Maciej Los 20-Jun-12 17:06pm    
I agree with you, Sergey.
+5!
Shahin Khorshidnia 21-Jun-12 0:23am    
Thank you dear losmac :)
You don't need to install the SQL Client at all.

All you need to install is the .NET Framework 4.0 and your application. Any other contorl dependancies when also need to be installed if you're using 3rd party controls in your app.
 
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