Solved

Error Creating Cursor Handle

Posted on 1998-11-16
5
1,017 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now