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

I developed a windows base application with sql server as backend , now i don't want install sql at client machine , is it possible to keep my back in .mdf file. exactly i just want to keep database as file i just install the setup and it use database from .mdf or any other way.
Please help me out the problem.

Many thanks

Regards
Manish tyagi

What I have tried:

i have only solution that i should install the sql server at client machine and connection string would be as per client machine.
Posted
Updated 19-Feb-16 2:28am
Comments
Richard MacCutchan 19-Feb-16 5:49am    
If you do not want to use SQL Server, then try Express or Compact Edition.
Herman<T>.Instance 19-Feb-16 7:49am    
LocalDB
Richard MacCutchan 19-Feb-16 8:27am    
Is that supposed to mean something?
Herman<T>.Instance 19-Feb-16 8:44am    
also an option
Richard MacCutchan 19-Feb-16 8:46am    
And what is that supposed to mean?

1 solution

You cannot do it. There has to be a sql instance somewhere to be able to read through the file. It has to be attached to sql. You can likely use a free edition of Sql as mentioned in the comments.
 
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