Solved

Procedure Aborts when called From Delphi

Posted on 1998-07-03
4
212 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
[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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

624 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