Ket1
asked on
Challenge?...Ms Access Romote DB connection
I wish to connect to a an Access database on a server remote to the asp page tyring to access it.
I a have tried placing the url (HTTP://SERVER/TEST.MDB) in the path string but no joy. I am using OLE dsn less connection.
Can anyone help? I know it can be done but does anyone have a simple clear solution. You help is graetfully apreciated.
I a have tried placing the url (HTTP://SERVER/TEST.MDB) in the path string but no joy. I am using OLE dsn less connection.
Can anyone help? I know it can be done but does anyone have a simple clear solution. You help is graetfully apreciated.
ASKER
I use the following connection substituted with my credentials and I return the following error:
oConn.Open "Provider=MS Remote;" & _
"Remote Server=http://myServerName;" & _
"Remote Provider=Microsoft.Jet.OLE DB.4.0;" & _
"Data Source=c:\somepath\mydb.md b", _
"admin", ""
Error Type:
Microsoft VBScript compilation (0x800A0415)
Expected literal constant
/testdb/webnews.asp, line 13, column 40
"Data Source=c:\webs\public\db_t est.mdb", ""
oConn.Open "Provider=MS Remote;" & _
"Remote Server=http://myServerName;" & _
"Remote Provider=Microsoft.Jet.OLE
"Data Source=c:\somepath\mydb.md
"admin", ""
Error Type:
Microsoft VBScript compilation (0x800A0415)
Expected literal constant
/testdb/webnews.asp, line 13, column 40
"Data Source=c:\webs\public\db_t
try..
strConn= "Provider=MS Remote;Remote Server=http://myServerName;Remote Provider=Microsoft.Jet.OLE DB.4.0;Dat a Source=c:\somepath\mydb.md b;Usid=adm in;Pwd=pas sword"
conn.open strconn
Cheers!!
strConn= "Provider=MS Remote;Remote Server=http://myServerName;Remote Provider=Microsoft.Jet.OLE
conn.open strconn
Cheers!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
and now this one:
Error Type:
Microsoft ADO/RDS (0x80072EE2)
Internet Client Error: Request Timeout.
/testdb/webnews.asp, line 31
sorry to be a pain!
Error Type:
Microsoft ADO/RDS (0x80072EE2)
Internet Client Error: Request Timeout.
/testdb/webnews.asp, line 31
sorry to be a pain!
I guess thats because you are not able to connect to the server.. does the db have a uid and password?..
I personally havent used MS remote.. so i couldnt really tell... Did you try the other option of mapping the folder to your server?
Cheers!!
I personally havent used MS remote.. so i couldnt really tell... Did you try the other option of mapping the folder to your server?
Cheers!!
ASKER
There is no username and password, I have removed that part and sorted out the previous problem. Now I get the following:
Microsoft ADO/RDS error '800a20ff'
Internet Server Error.
/webnews.asp, line 31
is this a server setting?
Microsoft ADO/RDS error '800a20ff'
Internet Server Error.
/webnews.asp, line 31
is this a server setting?
Go through these articles and Change your remote server setup as suggested..
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mdacsdk/htm/developer_technology_technical_support_1.asp
http://www.able-consulting.com/RDS_Faq.htm
http://www.dbforums.com/t965615.html
Cheers!!
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mdacsdk/htm/developer_technology_technical_support_1.asp
http://www.able-consulting.com/RDS_Faq.htm
http://www.dbforums.com/t965615.html
Cheers!!
Tells you how to set up RDS..
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q251/1/22.ASP&NoWebContent=1
There are some additional links at the bottom of the page as well..
Cheers!!
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q251/1/22.ASP&NoWebContent=1
There are some additional links at the bottom of the page as well..
Cheers!!
try this...
Dim oConn2
Set oConn2 = Server.CreateObject("ADODB .Connectio n")
oConn2.Open("DRIVER={Micro soft Access Driver (*.mdb)}; DBQ=HTTP://SERVER/TEST.MDB")
Dim oConn2
Set oConn2 = Server.CreateObject("ADODB
oConn2.Open("DRIVER={Micro
Hi,
Any Updates?. Do you need any further assistance with this?. Please close this question if no further assistance is needed.
If you need help closing this question, please refer to http://oldlook.experts-exchange.com/help/closing.jsp on how to close a question.
Cheers!!
Any Updates?. Do you need any further assistance with this?. Please close this question if no further assistance is needed.
If you need help closing this question, please refer to http://oldlook.experts-exchange.com/help/closing.jsp on how to close a question.
Cheers!!
http://www.able-consulting.com/MDAC/ADO/Connection/MSRemote.htm
Other wise, you would need to have a share created on your server and sufficient permissions have to be given to the IUSR Account on the Share....
Read through this article..
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q197/9/64.ASP&NoWebContent=1
Cheers!!