Solved

Procedure Aborts when called From Delphi

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Help 27 45
SQL Server 2012 r2 - Query results have 2 seperate results instead of 1 2 22
VB.net and sql server 4 35
SQL Function NOT ROUND 9 10
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

772 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