Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error Creating Cursor Handle

Posted on 1998-11-16
5
Medium Priority
?
1,091 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 2

Accepted Solution

by:
aliciaam earned 200 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

721 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