Right now I have my program running on my SQLExpress database. But what I’d really like is for my program to run on any machine as long as A DATABASE FILE is in the same folder. How can I accomplish this?
Firs things’s first:
How would my connection string be if I were connecting to a FILE DATABASE?
Second:
How do I create a single file database from an existing SQLExpress database?
Just like stated above, SQL Server is a server-class database engine. There are some smaller solutions called ‘in memory databses’ (so they do rely only on a database file) that you may want to use:
Which one to choose? Well, it may be easier for you to transform your SQL Server data int SQL Server Compact than to SQLite. Be aware, that those databases are quite simple, and some things may be missing (stored procedures, funcions… – just take a look at documentation and specification).