Re: ODBC Help!
From: blaflin (blaflin_at_discussions.microsoft.com)
Date: 08/23/04
- Next message: Brannon Jones: "Re: ODBC Help!"
- Previous message: Brannon Jones: "Re: return yesterdays date?"
- In reply to: Brannon Jones: "Re: ODBC Help!"
- Next in thread: Brannon Jones: "Re: ODBC Help!"
- Reply: Brannon Jones: "Re: ODBC Help!"
- Reply: blaflin: "Re: ODBC Help!"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Aug 2004 13:59:02 -0700
I'm not getting any error message. By placing some debug statements in the
code on the production server, I determined that the code is hanging on the
statement to open the connection. My code is as follows:
Dim NavConn As New ADODB.Connection
NavConn.ConnectionString = "....."
NavConn.CursorLocation = CursorLocationEnum.adUseServer
NavConn.Open()
It just stops on the Open statement. The progress bar in the client's
browser never shows the page loading as completing.
As far as why I'm not using ODBC.NET, it has been quite a while since I
tired it. I may try to rework this with ODBC.NET. I know the ODBC.NET
documentation says that it has only been tested with SQL Server, Access, and
Oracle.
"Brannon Jones" wrote:
> What is the error that you are getting? Where is the error coming from?
> SInce you say you aren't using ODBC.NET, does that mean you are using
> classic ADO through the COM interop? Or are you using ODBC directly through
> P/Invoke?
>
> Just out of curiosity, why doesn't ODBC.NET support the Navision interface?
> Is it a problem with the Navision driver or the ODBC .NET provider?
>
> Brannon
>
> "blaflin" <blaflin@discussions.microsoft.com> wrote in message
> news:816973F4-1449-4976-861B-B9C3BAA1FB7F@microsoft.com...
> > I'm stumped by a problem using ODBC with ASP.NET.
> >
> > I have an ASP.NET application where I am writing data through an ODBC
> > interface to a Navision database. (The primary data source is a SQL Server
> > database. Data from the SS database is copied to the Navision database at
> > discreet events.) I was forced to use ODBC to connect to Navision due to
> > 1) Navision only provides ODBC access (and the driver is quirky at that)
> > 2) ADO.NET won't work
> > 3) ODBC .NET doesn't support a Navision interface
> >
> > The interface works as designed on the development machine (Windows XP
> Pro)
> > as well as on the test machine (Windows 2000). However, the application
> can't
> > open the connection to Navision on our production server (Windows 2000
> > Server). And I'm kinda stumped???
> >
> > I know the ODBC connection is good because I have some classic ASP
> > components that use the same connection without a problem. I thought it
> might
> > be a permission problem with the ASPNET user, so I temporarily put the
> ASPNET
> > user in the Administrators group. No joy. Also, there's nothing in the
> event
> > log.
> >
> > One other bit of information. I changed the configuration on the
> development
> > machine to point to the production data sources to try to reproduce the
> > problem while stepping through in the debugger. But it worked fine. So I'm
> > kinda stumped.
> >
> > Any ideas would be greatly appreciated!!!!
> >
>
>
- Next message: Brannon Jones: "Re: ODBC Help!"
- Previous message: Brannon Jones: "Re: return yesterdays date?"
- In reply to: Brannon Jones: "Re: ODBC Help!"
- Next in thread: Brannon Jones: "Re: ODBC Help!"
- Reply: Brannon Jones: "Re: ODBC Help!"
- Reply: blaflin: "Re: ODBC Help!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|