I have a winforms app in C# witch i completed and want to publish, now i have a problem, i used SQL express and the app must be local without sql server express instalation needed:
I use Visual Studio 2015 Comunity
I installed sql server compact 4.0 created the database in .sdf format.
And got the following connection string:
public static SqlConnection con = new SqlConnection(@"Data Source=|DataDirectory|db.sdf");
Now i want to create a new datasource that points to this db and get an error when trying to select sql server compact:
"The conection string property has not been initialized"
Can anyone help?
Thanks in advance,
What do you mean by "creating a new datasource" ?
What do you need the data source for?
Did you try to install the SQL Compact Toolbox, it might be able to help you?
Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com