How to convert a 3.1 database to a 3.5 database ?

R

Rainer Borchmann

Yes, this is my question,
How to convert a 3.1 database to a 3.5 database ?
In the Step to Convert a Projekt from 2005 to 2008,
the Conversion wizzard cant convert the database.
How can i do it per hand ?
there is only 1 table in the database


bye
Rainer Borchmann
 
S

Simon Hart [MVP]

As you have discovered, the wizard will not do this for you. You need to use
the SqlCeEngine.Upgrade() method. ie something like the following should work
for you:

SqlCeEngine engine = new SqlCeEngine("Data Source=MyDB.sdf;");
engine.Upgrade ("Data Source=MyDB.sdf;encryption mode=platform default;");

This is a new method found in version 3.5 of the System.Data.SqlServerCe.dll
assembly.
 
R

Rainer Borchmann

Simon Hart said:
As you have discovered, the wizard will not do this for you. You need to
use
the SqlCeEngine.Upgrade() method. ie something like the following should
work
for you:

SqlCeEngine engine = new SqlCeEngine("Data Source=MyDB.sdf;");
engine.Upgrade ("Data Source=MyDB.sdf;encryption mode=platform default;");

This is a new method found in version 3.5 of the
System.Data.SqlServerCe.dll
assembly.

Hi Simon,
Thank you, i will try this out. And it seems that will work as a good idea
to do
this programmatically

Bye
Rainer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top