Ask a Question related to ASP Database, Design and Development.
-
hannaman@msn.com #1
How to use “RDS.Connect” to connect to a MS Access database?
The example I am working from uses the following code which does not work:
RDS.Connect = "Provider='sqloledb';Integrated Security='SSPI';Initial
So I tried the following, but still no go. Any help would be greatly appreciated!
Thanks in advance,
Stephen
dim conn
dim strconn
strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & _
Server.MapPath("/fpdb/users.mdb")
set conn = server.createobject("adodb.connection")
conn.open strconn
'Create the recordset object
set rs = server.createobject("adodb.recordset")
rs.open "my_users", conn, 2, 2
'set RDS properties for control just created
RDS.Server = "http://<%=Request.ServerVariables("SERVER_NAME")%>"
RDS.Connect = conn
RDS.SQL = "Select * from my_users"
RDS.Refresh
************************************************** ********************
Sent via Fuzzy Software @ [url]http://www.fuzzysoftware.com/[/url]
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
hannaman@msn.com Guest
-
Connect to a MS Access or MS SQL Server database
How can i connect and perform select, insert, update and delete commands to an Access or SQL Server database without using ODBC DSNs? -
Connect to an Access database using DSN (in PHP)
Hi all I'm wondering connect a Access db as easy as to a MySQL, using Windows|Database|Add connection. But this seems not working. I'm... -
help! i can't connect to my Access database.
I have been trying to set up my Microsoft Access database as a datasource (locally on my computer). I've given it a data source name, and... -
Error while trying to connect to Access database within ASP
I am getting an error message while trying to connect to an Access database within ASP. This error only occurs on my notebook computer and not on my... -
how can i connect with an access database
i need to work with an mdb file which contains a lot of data that might be change a lot of times and must stay an mdb file (so i cant make this file...



Reply With Quote

