.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 25th, 2003, 09:45 AM
SirX SirX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 64 SirX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 30 sec
Reputation Power: 6
open Access-database exclusiv(VC++ .net)

I use this String to connect to my Access-database:

Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\Database.mdb

how can I open this exclusiv?(nobody should be able to use the database while my program is running)

Reply With Quote
  #2  
Old September 26th, 2003, 09:55 AM
SirX SirX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 64 SirX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 30 sec
Reputation Power: 6
I found out that I just need an open Connection to the database so that nobody else is able to open it. But my problem now is this:
When my function which uses the connection ends the connection is closed automatically. How can I open a connection which stays open till the program is closed?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > open Access-database exclusiv(VC++ .net)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT