Article ID: 279552 - Last Review: February 22, 2007 - Revision: 1.8 How To Delete a SQL Server CE Database in an ApplicationThis article was previously published under Q279552 SUMMARY SQL Server 2000 for Windows CE (SSCE) supports a CREATE
DATABASE command as well as Microsoft ActiveX Data Objects Extensions for Data
Definition Language and Security (ADOX), OLE DB and AddSubscription methods to create a database. However, SQL Server 2000 for
Windows CE does not support a DROP DATABASE command. You can use a file system
object to delete a database programmatically. MORE INFORMATION Use the following code to create and drop a database
programmatically. Paste the code into a Microsoft eMbedded Visual Basic (eVB)
application, add two command buttons, and then add the file system reference in
addition to SQL CE, Microsoft ADO for Windows CE SDK (ADOCE) 3.1 and Microsoft
CE ActiveX Data Objects (ADOXCE) 3.1 references. Note If you are using SQL Server CE 2.0, modify the connect string to change the provider: Microsoft.SQLServer.OLEDB.CE.2.0. REFERENCESFor additional information, see the "Managing Database
Objects in the Objects Tab" and "Creating a Database" topics in SQL Server CE
Books Online. | Article Translations
|
Back to the top
