Click here to Skip to main content
16,004,678 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to know that if i install simply a software that developed in c#.net (sqlserver 2014) as backend. How can i access sql server from other computers without installing sql server, because iam using sql server database through .mdf file which need no installation of sql server. So i don't want to install sql server for making client server.
Posted
Updated 23-Jan-16 6:06am
v4
Comments
Philippe Mori 23-Jan-16 14:13pm    
As other answers already suggest. You have essentially 2 possibilities. Either the database is on the client and the client SQL server to be installed or the database is installed on the serveur and the client either connect directly to it or indirectly through a web service or something similar.

By the way, the question is hard to understand. Maybe English is not your first language but it is still hard to figure out how client and server are related and if you have one database or many.
PIEBALDconsult 23-Jan-16 22:02pm    
Ah, I see now this is a repost.
http://www.codeproject.com/Questions/1069517/Connecting-to-sql-server-database-mdf-file-without?arn=0
TenmanS14 25-Jan-16 6:41am    
maybe look at SQLite...

https://www.sqlite.org/about.html

SQLite is an embedded SQL database engine. Unlike most other SQL databases, SQLite does not have a separate server process. SQLite reads and writes directly to ordinary disk files. A complete SQL database with multiple tables, indices, triggers, and views, is contained in a single disk file.

You've already asked this question before. Try not to ignore the answers this time.

You can NOT use an .MDF file without SQL Server. It either has to be installed on the client if you're going to have just the single machine accessing the database

OR, if your application is going to be used from multiple client machines, you have to install SQL Server on a server and then that SQL Server uses the .MDF file. Your code then uses a different connection string to connect to the remote SQL Server.

That's it! Those are your options.
 
Share this answer
 
v2
No problem. You do not need to install SQL Server on the client, you simply use the connection string to specify which server and database to connect to.

SQL Server connection strings - ConnectionStrings.com[^]

You and your admin will need to ensure that the server and database are accessible.
 
Share this answer
 
Comments
iamvinod34 23-Jan-16 21:48pm    
plz read solition 2...
dave krekowiak do not access without install sql server answer told...
you no need to intall sql server answer told ....
which is correct?
PIEBALDconsult 23-Jan-16 22:03pm    
Both are correct. And the feedback you received on your earlier question is correct.

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