Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_ado_rds thread: Problem in Access with ASP via ADO


Message #1 by "zanoz" <zanoz@y...> on Wed, 11 Oct 2000 10:28:14 +0100
I have two access databasea one for online, one for offline. Online

database responds to requests from Internet with ASP via ADO. Offline

database is being updated and copied onto the online one after changes are

completed.



My problem is that when a connection is established to online database i

can NOT copy(overwrite) my offline database to my online database because

there is still a connection from internet and the .ldb file of the

corresponding database file is seen. I would like to copy it wihout any

problem.



I used ASP such as:

Should we need to open database with some kind of cursor or lock type in

order to prevent the copy failure when offline database is being copied

(overwrite) to online database?



<%

Set rs = Server.CreateObject("ADODB.Recordset")

strConn = "Driver={Microsoft Access Driver (*.mdb)};

DBQ=c:\MyDatabase.mdb"

SQL = "Select * from MyTable"

 rs.open SQL, strConn

.....

rs.close

Set rs = Nothing

%>

Thanks


  Return to Index