RE: Using Remote Data Provider with JET provider
From: Jim Rodgers (JimRodgers_at_discussions.microsoft.com)
Date: 07/27/04
- Next message: msnews.microsoft.com: "saving a select stament to a txt file"
- Previous message: Ivan Debono: "Re: Hierarchical Recordset"
- In reply to: Strider: "Using Remote Data Provider with JET provider"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 26 Jul 2004 20:41:21 -0700
Hello group,
I, ALSO, am trying to use the JET provider remotely using the Remote data provider
without any success.
Here is my VB6SP6 / ADO2.8 code:
Attempt #1
Dim DS As New RDS.DataSpace
Dim DF As Object
Dim rs As ADODB.Recordset
Set DF = DS.CreateObject("RDSServer.DataFactory", "http://dataserver.local")
Set rs = DF.Query("DSN=MyOrdersSystemDsn", "SELECT * FROM Customers")
> The error I am getting is:
Internet Server Error
Attempt #2
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
cn.Open "Provider=MS Remote; " & _
"Data Source=MyOrdersSystemDsn;" & _
"Remote Server=http://dataserver.local;"
Set rs = New ADODB.Recordset
rs.Open "SELECT * FROM Customers;", cn
> The error I am getting is:
Internet Server Error
Variations on Attempt #2
I've tried the following variations in the ConnectionString:
(a) Tried "DSN=" versus "Data Source="
(b) Tried omitting "Remote Provider="
(c) Tried "Remote Provider=MSDASQL;"
(d) Tried "Remote Provider=Microsoft.Jet.OLEDB.4.0;"
The ONLY things I've done to the servers is to enable the IIS and to
create the System DSN. (These systems all have MDAC 2.8 and the MSJet
stuff installed.) I've tried using a Win2k server and a Win2003 Server.
I've tried accessing the local machine as well as a remote machine.
The same error every time. Absolutely no luck!
BTW, the System DSN does work locally without any reference to remote
access.
I've reviewed http://support.microsoft.com/default.aspx?scid=kb;en-us;183294
and many other links as well.
This is freaking me out. So many unbilled hours. Somebody please help!
Thanks Folks,
James W. (Jim) Rodgers, P.E.
Senior Consultant
General Consulting Engineers, LLC
Atlanta, GA
"Strider" wrote:
> Hello group,
>
> I am trying to use the JET provider remotely using the Remote data provider,
> here is my VBS code:
>
> set rs = CreateObject("ADODB.Recordset")
> set cn = CreateObject("ADODB.Connection")
>
> 'Open connection (succeeds)
> cn.Open "Provider=MS Remote;Remote Server=[ip of local
> machine];RemoteProvider=Microsoft.Jet.OLEDB.4.0;Data Source=[path to MDB
> file]"
>
> ' Open Table
> ' Fails
> rs = cn.execute("[Table Name]", 0, 2)
>
> The error I am getting is:
>
> Microsoft ADO/RDS: Business object cannot be created.
>
> Two questions:
> Can the OLEDB Remove provider be used with JET provider?
> If yes, what I am doing wrong?
>
> Thanks Guys,
>
> Strider
>
>
>
>
>
>
- Next message: msnews.microsoft.com: "saving a select stament to a txt file"
- Previous message: Ivan Debono: "Re: Hierarchical Recordset"
- In reply to: Strider: "Using Remote Data Provider with JET provider"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|