Showing posts with label codewhen. Show all posts
Showing posts with label codewhen. Show all posts

Thursday, March 22, 2012

Deleting existing databases

What's the proper way to delete an existing database through native c++ code?

When I try DeleteFile(filename), I get an error about another process using that file. I hadn't created a connection to that file in my own program, so I assume that lock is from the sql engine.

Thanks folks!
does anyone have any insight in this matter?
|||There must be an open connection to the database - pls review your code.

|||it was due to me opening the database in the ssce wince interface... Stick out tongue