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 > ODBC error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-05-04, 09:18
erhanalaca erhanalaca is offline
Registered User
 
Join Date: Feb 2004
Location: Turkey
Posts: 4
Angry ODBC error

Good days!

I have received this message when I compile my ASP code.

ODBC does not support the requested operation
line 29

line 28 and 29 are,


28-set rcsnokta=Server.CreateObject("ADODB.Recordset")

29-rcsnokta.open sql,connection,1

Please help me!..
Reply With Quote
  #2 (permalink)  
Old 02-05-04, 11:48
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
Did you create a system DSN for your database? What is your connection string?
Reply With Quote
  #3 (permalink)  
Old 02-07-04, 05:07
erhanalaca erhanalaca is offline
Registered User
 
Join Date: Feb 2004
Location: Turkey
Posts: 4
Smile Sorry!

Quote:
Originally posted by gyuan
Did you create a system DSN for your database? What is your connection string?
I see that you have difficulty with not to see the all code.I am sending to you the entire asp code with attached file ariza.txt.

Thanks for your helpful behaviour!
Attached Files
File Type: txt ariza.txt (3.2 KB, 79 views)
Reply With Quote
  #4 (permalink)  
Old 02-08-04, 00:43
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
When you creat DSN, did you user Login ID and Password? Write a test page with the simple query and see if it works.
Reply With Quote
  #5 (permalink)  
Old 02-08-04, 16:36
erhanalaca erhanalaca is offline
Registered User
 
Join Date: Feb 2004
Location: Turkey
Posts: 4
Quote:
Originally posted by gyuan
When you creat DSN, did you user Login ID and Password? Write a test page with the simple query and see if it works.
no I did not. I created the database and used it in an another asp code.It works,but I have written a few asp code that have the same statement. They have given the same ODBC error.
Reply With Quote
  #6 (permalink)  
Old 02-08-04, 19:32
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
Did you try to execute the simple statement like SELECT TOP 1 * FROM TableName? Your query statement is not readable.
Reply With Quote
  #7 (permalink)  
Old 02-09-04, 06:34
erhanalaca erhanalaca is offline
Registered User
 
Join Date: Feb 2004
Location: Turkey
Posts: 4
Yeeeep!

Quote:
Originally posted by gyuan
Did you try to execute the simple statement like SELECT TOP 1 * FROM TableName? Your query statement is not readable.
I wrote the simple sql statement,then it works properly. Does the error stem from the wrong-typed sql statement? This is end of my questions.

Thanks for your help and have a nice day!
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