Re: Driver caching db??
From: Brannon Jones (brannonjNOSPAM_at_gmail.com)
Date: 08/17/04
- Next message: JohnD: "Re: Driver caching db??"
- Previous message: Brannon Jones: "Re: Connection is busy with results for another hstmt"
- In reply to: JohnD: "Driver caching db??"
- Next in thread: JohnD: "Re: Driver caching db??"
- Reply: JohnD: "Re: Driver caching db??"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 17 Aug 2004 14:49:05 -0700
The driver does not touch the database file directly. The SQL Server
process will open (and lock) the database file.
Is the database hosted in a different SQL instance, than the one you are
connecting to in Enterprise Manager?
Brannon
"JohnD" <john_nospam@tech-testing.com> wrote in message
news:hqpUc.8189$YU1.7939@newssvr22.news.prodigy.com...
> Hello,
>
> I'm not sure if this message belongs in microsoft.public.sqlserver.msde
> or is more appropriate here. Please accept my apologies if I have the
> wrong list.
>
> I've written ODBC source in C++ that accesses an MSDE instance on a
> local machine. I perform the usual steps:
>
> 1. Allocate an SQLHENV
> 2. Allocate the SQLHDBC
> 3. Connect
> 4. Execute a statement to "use " my database
> 5. Issue a simple query
> 6. Process results
> 7. Disconnect SQLHDBC
> 8. Free SQLHDBC
> 9. Free SQLHENV
> 10. Exit application
>
> Then I try to attach to the database in SQL Server Enterprise Manager
> which returns the following error:
>
> "Error 5123: CREATE FILE encountered operating system error 32 (The
> process cannot access the file because it is being used by another
> process.) while attempting to open or create the physical file:
> 'C:\mydb.mdf'.
>
> Do I need to do something different to force the driver to unload the
> database when the application ends?
>
> Thanks,
> John
- Next message: JohnD: "Re: Driver caching db??"
- Previous message: Brannon Jones: "Re: Connection is busy with results for another hstmt"
- In reply to: JohnD: "Driver caching db??"
- Next in thread: JohnD: "Re: Driver caching db??"
- Reply: JohnD: "Re: Driver caching db??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|