Click here to Skip to main content
16,021,285 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Developed a window application where i used front end as C# and back end as sql server 2008 R2 (.MDB file, which is attached to application itself).
Now i want to make an exe in which database should be attached and If i install it another system then there is no need to install sql server. Is it possible? if yes then how?
Give reference of a sample Application , If any
Posted
Updated 15-Oct-13 3:49am
v2
Comments
[no name] 15-Oct-13 9:51am    
You could try SQL Compact Edition which uses a local database file. Otherwise you need SQL server installed somewhere that the client machine can connect.

May LocalDB fit your solution?
 
Share this answer
 
You cannot use the .MDB file without SQL Server installed. It's that simple. Also, there is no such thing as "attaching" a file to an .EXE.
 
Share this answer
 
Comments
Member 7698619 17-Oct-13 1:42am    
Thank you .
then which db i have to use for my standalone application(C#) .Please give me a sample application.
Dave Kreskowiak 17-Oct-13 7:33am    
Google for ".net embedded database engine". These are libraries that you can use that implement a database engine without having to install it. The problem is you're STILL deploying multiple files, not a single .EXE. I don't see how you're going to get around that limitation.

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