File already exists error with SQL Compact 3.5
Posted: Tue 01 Jul 2008 05:30
I have recently downloaded 4.25.9 and when connecting to sql compact databases it gives me the error
"Database Server Error: File already exists. Try using a different database name. [0, 0, 0,File name: c:\config\dir_myob.sdf,,]"
dir_myob.sdf was created via the dbexpress driver version 4.20. (ie with version 4.2 whn you try to connect to a file that didnt exist it created it).
Now it appears that 4.25.9 does not recognise the older version of sql compact and is therefore trying to create a new database with the same name as one that already exists. (i can connect to 3.5 versions, and if no database is present it cretes a 3.5 version one for me)
if you like i can provide a copy of the sdf file for you.
"Database Server Error: File already exists. Try using a different database name. [0, 0, 0,File name: c:\config\dir_myob.sdf,,]"
dir_myob.sdf was created via the dbexpress driver version 4.20. (ie with version 4.2 whn you try to connect to a file that didnt exist it created it).
Now it appears that 4.25.9 does not recognise the older version of sql compact and is therefore trying to create a new database with the same name as one that already exists. (i can connect to 3.5 versions, and if no database is present it cretes a 3.5 version one for me)
if you like i can provide a copy of the sdf file for you.