Re: How to access to a DB in an NT domain.
From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 05/20/04
- Next message: Paul Clement: "Re: multiple table results as one table in dataset"
- Previous message: Renato: "Re: datagrid key column"
- In reply to: Daniele Barzotti: "Re: How to access to a DB in an NT domain."
- Next in thread: Daniele Barzotti: "Re: How to access to a DB in an NT domain."
- Reply: Daniele Barzotti: "Re: How to access to a DB in an NT domain."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 20 May 2004 08:27:16 -0500
On Wed, 19 May 2004 14:09:03 GMT, Daniele Barzotti <daniele.barzotti@eurocomtel.com> wrote:
¤ > ¤
¤ > ¤ I must using a database that resides in a NT Server and my application
¤ > ¤ run on coputers that make part of another domain.
¤ > ¤ So, when I try to connect my app to db an error is raised.
¤ > ¤ Question: there is a method (using ADO) to give the login username and
¤ > ¤ pwd of the server into the connection string or using some property?
¤ > ¤
¤ >
¤ > What is the error message that is being raised and what kind of database are you using?
¤ >
¤ > There is no method for returning the user ID and password.
¤
¤
¤ In this time I've try some things.
¤ I put my MDB database into my intranet server (Windows 2000 server with
¤ IIS and MDAC 2.6) and I've created a DSN.
¤ Then I've build a UDL file with these flags:
¤
¤ Provider=MS Remote.1;
¤ Persist Security Info=True;
¤ Location=EuroNet;
¤ Data Source=MyDatabase.mdb;
¤ User ID=MyID;
¤ Password=MyPassword;
¤ Mode=ReadWrite;
¤ Remote Server=http://inet;
¤ Remote Provider=Microsoft.Jet.OLEDB.4.0;
¤ Internet Timeout=300000;
¤ Transact Updates=True
¤
¤ The code is (I use MDAC 2.8):
¤
¤ ************************************************************
¤ Dim Conn as ADODB.Connection
¤ Dim RSAdo As New ADODB.Recordset
¤
¤ Conn.Open "File Name=" & App.Path & "\Connection.udl"
¤
¤ With RSAdo
¤ .Source = "Customers"
¤ .ActiveConnection = Conn
¤ .CursorType = adOpenForwardOnly
¤ .CursorLocation = adUseClient
¤ .Open
¤ End With
¤ ************************************************************
¤
¤ The error is raised on the RSAdo.Open call :
¤
¤ Err.Description = Internet Server Error
¤ Err.Number = 8447
¤
¤ I've a beginner in n-tier application :o(
¤
¤ Any suggestion?
Can you open the database from a file share on your server or do you have to use HTTP?
If you need to use HTTP and RDS then I would make certain that your server has been configured
properly:
HOWTO: Configure RDS for Windows 2000
http://support.microsoft.com/default.aspx?kbid=250536
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
- Next message: Paul Clement: "Re: multiple table results as one table in dataset"
- Previous message: Renato: "Re: datagrid key column"
- In reply to: Daniele Barzotti: "Re: How to access to a DB in an NT domain."
- Next in thread: Daniele Barzotti: "Re: How to access to a DB in an NT domain."
- Reply: Daniele Barzotti: "Re: How to access to a DB in an NT domain."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|