Hi, I want to upgrade from OleDb to SqlCLient, I mean from .mdb file to .sdf file.
I have installed MS SQL Server 2008 Express Compact edition and designed my database files and created tables/fields and now gonna copy it to my application directory so my application will work with that on TARGET systems, WITHOUT having SQL Server installed on target systems...
Well, my old connection string as follows:
Now, what should be my new connection string for SQL 2008?
Here I found:
http://www.connectionstrings.com/sql-server-2008#1
But whats server address and myUsername?
How should I specify the path to my database in my application folder?
SQL Server wont be installed on target systems, so what to do?
Please help me if you can...
Thanks all...
I have installed MS SQL Server 2008 Express Compact edition and designed my database files and created tables/fields and now gonna copy it to my application directory so my application will work with that on TARGET systems, WITHOUT having SQL Server installed on target systems...
Well, my old connection string as follows:
Code:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\CompanyName\ProductName\Database.mdb;Jet OLEDB:Database Password = secret"
Here I found:
http://www.connectionstrings.com/sql-server-2008#1
Code:
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
How should I specify the path to my database in my application folder?
SQL Server wont be installed on target systems, so what to do?
Please help me if you can...
Thanks all...