G
Guest
Keep getting error: SQL Server CE encountered problems in creating the SQL Server CE database. [,,,Connection string,,
//-- delete database fil
if (File.Exists(@strLocalDBFile)
{
File.Delete(@strLocalDBFile)
//-- create local database
SqlCeEngine engine = new SqlCeEngine()
engine.LocalConnectionString = @strLocalConn
engine.CreateDatabase()
Error happens on CreateDatabase Command. Oddly this code works on 1 device I have but not on others
The local file name and database string are good, because they work on other device
Any ideas, I'm in a big crunch
thanks
//-- delete database fil
if (File.Exists(@strLocalDBFile)
{
File.Delete(@strLocalDBFile)
//-- create local database
SqlCeEngine engine = new SqlCeEngine()
engine.LocalConnectionString = @strLocalConn
engine.CreateDatabase()
Error happens on CreateDatabase Command. Oddly this code works on 1 device I have but not on others
The local file name and database string are good, because they work on other device
Any ideas, I'm in a big crunch
thanks