Thursday, January 14, 2016

How to create a database in Window platform sqlce?




            


If that, I want to create sqlce database in Window platform, and then export the data into this sqlce sql2000 database, how to achieve? Preferably with VC ++ 6 code.
Reply:
useing System.Data.SqlServerCe

private string SQLConn = "Path"; // "Data Source =" + @ "My Documents \ a.sdf";
private string StrFile = "FilePath"; // file under the same path Window
and lower PPCif (file.Exists (strFile) {File.Delete (strFile);}
sqlCeEngine dbEngine = new SqlCeEngine ();
dbEngine.LocalConnectiongString = strConn;
try
{
dbEngine.CreateDataBase ();
}
catch (SqlCeException exsql)
{
}

C # code, you should be able to be translated into C ++
Reply:
Establishing a connection to SQL with thread, inserting the data you want to SQLce years. Or use RDA most convenient online information.
Reply:
TO luck136688 (Xingfeng):

Are you saying that with a thread in WinCE in establishing Window SQL 2000 connected to it? Can I say something specific?
RDA can not be used.
Reply:
Master, out of it!

No comments:

Post a Comment