If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > 0x80040E37 - [Microsoft][ODBC Visual FoxPro Driver]Not a table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-04, 09:41
chamoore chamoore is offline
Registered User
 
Join Date: Dec 2004
Location: Istanbul
Posts: 3
0x80040E37 - [Microsoft][ODBC Visual FoxPro Driver]Not a table

Hi guys,
I have a Foxpro 8.0 DB defined as System DSN
my conn string in ASP is :

Conn_Str = "dsn=MASTERDB;uid=;pwd="
set cn=server.createobject("adodb.connection")
cn.open Conn_Str

When I execute command :
set rs=cn.execute("select * from Products")

following error occurs :

Microsoft OLE DB Provider for ODBC Drivers (0x80040E37)
[Microsoft][ODBC Visual FoxPro Driver]Not a table.

Problem is "I have an autoincremet field in Products table ".
I can execute SQL for tables without autoincrement fields.
How can I fix it?
Reply With Quote
  #2 (permalink)  
Old 02-25-09, 23:42
hupy hupy is offline
Registered User
 
Join Date: Feb 2009
Posts: 1
i also meet this problem ,how can i do????????????
Reply With Quote
  #3 (permalink)  
Old 02-26-09, 09:50
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
What happens if you
Code:
SELECT column, names
FROM   your_table
instead of using SELECT *
?
__________________
George
Twitter | Blog
Reply With Quote
  #4 (permalink)  
Old 02-26-09, 20:12
SimonMT SimonMT is offline
Registered User
 
Join Date: Sep 2006
Posts: 265
I never use DNS and I would use code along the lines of:

How to use ADO with ASP to display Visual FoxPro data but I would use the global.asa to declare:

Code:
Application("my_conn") = "Driver=Microsoft Visual Foxpro Driver; UID=;SourceType=DBC;SourceDB=C:Physical/Path/File.dbc"
In ASP:

Code:
Set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionString = Application("my_conn")
conn.open
rsSql = "SELECT ... "
Set rs = Server.CreateObject("ADODB.Recordset")
rs.CursorLocation = 3	'adUseClient
rs.CursorType = 3		'adOpenStatic
rs.ActiveConnection = conn
rs.Open rsSql
Simon
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On