-
Can't query a table ? Error # = 80040E37
Hi,
I'm using ASPdbPro Eval version, IIS4 & MsSQL7.
I followed one of the sample script featured in the documentation.
But I'm getting this error message when I try to query a table named 'customer'.
---Error Message-----------------------------------------------------------
Error # = 80040E37
Description = [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'customer'.
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = S0002
NativeError = 208
---ASP page---------------------------------------------------------------
<%
Set MyDb = Server.CreateObject("ASPdb.Pro"
MyDb.dbDAT="SQLservername,Databasename,usernam e,password"
MyDb.dbUnit = 101
MyDb.dbMode="grid"
MyDb.dbSQL="Select * FROM customer"
MyDb.ASPdbPro
%>
-------------------------------------------------------------------------
I appreciate if you could help. Thanks for your time.
Aldo
-
Can't query a table ? Error # = 80040E37 (reply)
Aldo,
Maybe your table name is spelled wrong. Try this
MyDb.dbSQL = "*" ' (Show list of all tables)
See if that helps.
Mark.
------------
Aldo at 2/3/00 5:06:42 AM
Hi,
I'm using ASPdbPro Eval version, IIS4 & MsSQL7.
I followed one of the sample script featured in the documentation.
But I'm getting this error message when I try to query a table named 'customer'.
---Error Message-----------------------------------------------------------
Error # = 80040E37
Description = [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'customer'.
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = S0002
NativeError = 208
---ASP page---------------------------------------------------------------
<%
Set MyDb = Server.CreateObject("ASPdb.Pro"
MyDb.dbDAT="SQLservername,Databasename,usernam e,password"
MyDb.dbUnit = 101
MyDb.dbMode="grid"
MyDb.dbSQL="Select * FROM customer"
MyDb.ASPdbPro
%>
-------------------------------------------------------------------------
I appreciate if you could help. Thanks for your time.
Aldo
-
Can't query a table ? Error # = 80040E37 (reply)
Hi Mark,
I followed your suggestion ... and I get this as response.
ASPDB error '800a005b'
Object variable or With block variable not set
Pls help & thanks for your time
Aldo
------------
Mark at 2/3/00 10:13:37 AM
Aldo,
Maybe your table name is spelled wrong. Try this
MyDb.dbSQL = "*" ' (Show list of all tables)
See if that helps.
Mark.
------------
Aldo at 2/3/00 5:06:42 AM
Hi,
I'm using ASPdbPro Eval version, IIS4 & MsSQL7.
I followed one of the sample script featured in the documentation.
But I'm getting this error message when I try to query a table named 'customer'.
---Error Message-----------------------------------------------------------
Error # = 80040E37
Description = [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'customer'.
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = S0002
NativeError = 208
---ASP page---------------------------------------------------------------
<%
Set MyDb = Server.CreateObject("ASPdb.Pro"
MyDb.dbDAT="SQLservername,Databasename,usernam e,password"
MyDb.dbUnit = 101
MyDb.dbMode="grid"
MyDb.dbSQL="Select * FROM customer"
MyDb.ASPdbPro
%>
-------------------------------------------------------------------------
I appreciate if you could help. Thanks for your time.
Aldo
-
Can't query a table ? Error # = 80040E37 (reply)
Aldo,
1)
Be sure you are running ADO 2.1. To see what version you have now, do this:
<%
set cnn = Server.CreateObject ("ADODB.Connection"
response.write("<BR>ADO Version = " & cnn.Version )
%>
2)
Also, add a statement that says:
Mydb.dbDBType = "SQL"
3)
Try using dbDSN instead of dbDAT.
Let me know if that helps.
Mark.
------------
Aldo at 2/3/00 8:31:21 PM
Hi Mark,
I followed your suggestion ... and I get this as response.
ASPDB error '800a005b'
Object variable or With block variable not set
Pls help & thanks for your time
Aldo
------------
Mark at 2/3/00 10:13:37 AM
Aldo,
Maybe your table name is spelled wrong. Try this
MyDb.dbSQL = "*" ' (Show list of all tables)
See if that helps.
Mark.
------------
Aldo at 2/3/00 5:06:42 AM
Hi,
I'm using ASPdbPro Eval version, IIS4 & MsSQL7.
I followed one of the sample script featured in the documentation.
But I'm getting this error message when I try to query a table named 'customer'.
---Error Message-----------------------------------------------------------
Error # = 80040E37
Description = [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'customer'.
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = S0002
NativeError = 208
---ASP page---------------------------------------------------------------
<%
Set MyDb = Server.CreateObject("ASPdb.Pro"
MyDb.dbDAT="SQLservername,Databasename,usernam e,password"
MyDb.dbUnit = 101
MyDb.dbMode="grid"
MyDb.dbSQL="Select * FROM customer"
MyDb.ASPdbPro
%>
-------------------------------------------------------------------------
I appreciate if you could help. Thanks for your time.
Aldo
-
Can't query a table ? Error # = 80040E37 (reply)
Hi Mark,
It does help !!! Thanks for your time ... I appreciate it!
------------
Mark at 2/9/00 10:36:06 AM
Aldo,
1)
Be sure you are running ADO 2.1. To see what version you have now, do this:
<%
set cnn = Server.CreateObject ("ADODB.Connection"
response.write("<BR>ADO Version = " & cnn.Version )
%>
2)
Also, add a statement that says:
Mydb.dbDBType = "SQL"
3)
Try using dbDSN instead of dbDAT.
Let me know if that helps.
Mark.
------------
Aldo at 2/3/00 8:31:21 PM
Hi Mark,
I followed your suggestion ... and I get this as response.
ASPDB error '800a005b'
Object variable or With block variable not set
Pls help & thanks for your time
Aldo
------------
Mark at 2/3/00 10:13:37 AM
Aldo,
Maybe your table name is spelled wrong. Try this
MyDb.dbSQL = "*" ' (Show list of all tables)
See if that helps.
Mark.
------------
Aldo at 2/3/00 5:06:42 AM
Hi,
I'm using ASPdbPro Eval version, IIS4 & MsSQL7.
I followed one of the sample script featured in the documentation.
But I'm getting this error message when I try to query a table named 'customer'.
---Error Message-----------------------------------------------------------
Error # = 80040E37
Description = [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'customer'.
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = S0002
NativeError = 208
---ASP page---------------------------------------------------------------
<%
Set MyDb = Server.CreateObject("ASPdb.Pro"
MyDb.dbDAT="SQLservername,Databasename,usernam e,password"
MyDb.dbUnit = 101
MyDb.dbMode="grid"
MyDb.dbSQL="Select * FROM customer"
MyDb.ASPdbPro
%>
-------------------------------------------------------------------------
I appreciate if you could help. Thanks for your time.
Aldo
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
|
|