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
Solved

Procedure Aborts when called From Delphi

Posted on 1998-07-03
4
208 Views
Last Modified: 2010-03-19
I have to call a stored procedure from Delphi an from
ISQL/W. Everything was fine until I installed the
MS-SQL Service Pack 2. When I call the SP from ISQL it works fine. When I call it from Delphi the procedure starts an cancels after a few Lines of Code. I get no Error in Delphi.

What can I do to ensure that the stored procedure is executed completely from Delphi?
0
Comment
Question by:AndreasSchindler
  • 2
4 Comments
 
LVL 2

Expert Comment

by:odessa
ID: 1091659
in delphi you have one parameter the result, in stored procedure you can something like this

begin
 ....


..
 return 1
end

and if the SP worx till end you will get 1 in result
0
 
LVL 3

Author Comment

by:AndreasSchindler
ID: 1091660
My Question was wrong.

I knew that the Procedure is not complete because the there is a incomplete result.

What can be wrong if a Procedure works in ISQL and aborts in Delphi?
0
 
LVL 3

Author Comment

by:AndreasSchindler
ID: 1091661
I adjusted the Points to 220
0
 

Accepted Solution

by:
ASchindler earned 220 total points
ID: 1091662
The Procedure in MS-SQL Server transfers the Count of Each Select Statement to the Client. The installed ODBC Driver has a Problem with the count data from Sql Server SP2.
With SET NOCOUNT=ON in the procedure the Problm is solved.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

792 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