Solved

Error Creating Cursor Handle

Posted on 1998-11-16
5
994 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

744 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

10 Experts available now in Live!

Get 1:1 Help Now