?
Solved

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

Posted on 2003-12-09
3
Medium Priority
?
400 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 750 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

777 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