Solved

using AsMemo and Text var in SQL and returning a dataset error

Posted on 2003-12-09
3
396 Views
Last Modified: 2008-02-01
Hi,
I have a data which exceeds the SQL limit for a varchar which is 8000 so i decided to use the Text variable instead for my table. As input parameter, i used AsMemo. The stored procedure that i called to which i pass the AsMemo param should return a simple "select 'SUCCESS' " or " select 'Error' " after i call  "Open". But instead i get an error saying "error creating cursor handle.". why is this? any solution ot my problem?
thanks in advance!
0
Comment
[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
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 250 total points
ID: 9910291
as you get no resultset back from the storedProcedure
(get only a flag (success/error) back) you can't use open.

-> use execute instead and after this read-out the returnvalue

meikl ;-)
0
 

Author Comment

by:dabestprogrammerindauniverse
ID: 9910329
Hi,
there should be a result since at the end of the stored proc i have the either select 'Success' or select 'Error.'

what do you mean by:

-> use execute instead and after this read-out the returnvalue

how do i execute and read the return value?

0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9910385
depending what connectionType (ado/bde/other) u use

a sample using ado


//filling input Parameters (sample-names)
ADOStoredProc1.ParamByName('AParameterName').Value := Whatever;
//calling StoredProc
ADOStoredProc1.ExecProc;
//read-Out ReturnValue
result := ADOStoredProc1.ParamByName('ReturnValue').Value;
if Result = 'SUCCESS' then
...

just from head

meikl ;-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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