I'm currently working on a wpf application where I tried to create a database.
I used data sources > add new datasource > dataset
and copied the query string for its properties, but it is giving me the following exception:
What might be the problem? This is a local database... and when I click on the test connection button it writes "test connection succeeded"
Thanks
You are using a SqlConnection
rather than the SqlCeConnection
that you require. SqlConnection is for connecting directly to a "real" sql server.
Take a look at the MSDN for more information.