Solved

Error Creating Cursor Handle

Posted on 1998-11-16
5
1,050 Views
Last Modified: 2010-05-18
Hello!
When I use stored procedure "sp_addlogin" by using Delphi Query Component, I got error message like "Error creating cursor Handle".
I don't what is wrong..
I just loginned as sa who contorl all database in SQL SERVER. After that I just send query string "sp_addlogin a,a,'Disaster' " to SQL SERVER.
then I got a error message.
Something strange is when I tried this sql string at ISQL_W it worked.
Do I have to do something thati don't know..?
I am beginner of SQL Server..
Please Help me...
It's in a huryy.
Have a good day...
0
Comment
Question by:folktale
  • 4
5 Comments
 
LVL 2

Accepted Solution

by:
aliciaam earned 100 total points
ID: 1091333
You must have "set double quotes off" and SQL does not understand double quotes.
SQL Server version 6.5 does not always flag stored procedure parameters enclosed in double quotation marks if the SET QUOTED_IDENTIFIER ON option has been issued.

Use
SET QUOTED_IDENTIFIER OFF right before the stored procedure
0
 
LVL 2

Expert Comment

by:aliciaam
ID: 1091334
do not use single quotes for the password.
0
 
LVL 2

Expert Comment

by:aliciaam
ID: 1091335
Your program will send as a variable what is inside the double quotes, don't need to use single quotes with SQL. It already knows is a string
0
 

Author Comment

by:folktale
ID: 1091336
Thank for your help...
AND I have found fault to write question.
I didn't use double quotes in query string, that is I used just sp_addlogin a,a,'Disaster'.
In above text, I used double quotes just to express string.
So please help me more...!
 
0
 
LVL 2

Expert Comment

by:aliciaam
ID: 1091337
don't use the single quote for the password SQL server knows is a string on this particular stored procedure.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question