|
-
Oct 15th, 2003, 09:07 AM
#1
Thread Starter
Member
PLZ. HELP with remote DB
[email protected]
Hi, i wont to know, it's posible to use DB on www.myDB.lt/data.mdb without any SQL server ? PLZ. explain my if it's not posible why.
P.S sorry for my english
-
Oct 15th, 2003, 11:24 PM
#2
Connecting to an Access db over the Internet is a bad idea, but anyways:
VB Code:
Dim cnn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cnn = New ADODB.Connection
Set rs = New ADODB.Recordset
Debug.Print cnn.State
cnn.Open "Provider=MS Remote;Remote Server=http://myServer;" _
& "Remote Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=c:\inetpub\wwwroot\biblio.mdb;admin,"
Debug.Print cnn.State
rs.Open "SELECT * From Authors", cnn, adOpenKeyset, adLockOptimistic
Debug.Print rs.RecordCount
Try it out. If it doesn't work, I doubt anything's possible for that matter.
-
Oct 16th, 2003, 08:16 AM
#3
Thread Starter
Member
refereces
What kind of refereces i must use?
-
Oct 16th, 2003, 09:13 AM
#4
Thread Starter
Member
i found, but i can Data Source=c:\inetpub\wwwroot\biblio.mdb; line.
-
Oct 16th, 2003, 09:14 AM
#5
Thread Starter
Member
i found reference, but i can understand line: Data Source=c:\inetpub\wwwroot\biblio.mdb;
-
Oct 16th, 2003, 11:05 PM
#6
Do you know the location of the MDB file on the server?
It would make things slightly easier for you if you could create a DSN on that server. Do you have access to its controls, by any chance?
-
Oct 16th, 2003, 11:07 PM
#7
-
Oct 17th, 2003, 09:24 AM
#8
Thread Starter
Member
I use computer that is conneted to domain. Im trying connect to remote db, i sharing that db with IIS 5.0. When i'm connecting to bd apears error:
RDS server error:The server has denited accses to the default RDS Handler used to access this page. See the server Administrator for more information about server security settings.
What's wrong, what must i do ??? PLZ HELP ME !!!!!!!!
Option Explicit
Private Sub Command1_Click()
Dim cnn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cnn = New ADODB.Connection
Set rs = New ADODB.Recordset
Debug.Print cnn.State
cnn.Open "Provider=MS Remote;Remote Server=http://MyServername.com;" _
& "Remote Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=c:\wwwroot\biblio.mdb;"
Debug.Print cnn.State
rs.Open "SELECT * From Authors", cnn, adOpenKeyset, adLockOptimistic
Debug.Print rs.RecordCount
End Sub
-
Oct 23rd, 2003, 07:29 AM
#9
Originally posted by Fizikas
RDS server error:The server has denited accses to the default RDS Handler used to access this page. See the server Administrator for more information about server security settings.
You'll have to contact your server support team, and ask them to grant you remote access to the database.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|