[Solved]Delphi - Unidac - Android - MsSQL - Stored Procedure - tabular data stream Error

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
vebaglaci
Posts: 6
Joined: Thu 05 Nov 2015 18:16

[Solved]Delphi - Unidac - Android - MsSQL - Stored Procedure - tabular data stream Error

Post by vebaglaci » Thu 05 Nov 2015 18:25

Hi,

Connecting to MsSQL via Unidac Connection + SQL Provider on android, when i run query with standard sql commands(Select,Update,Delete etc.) everything works fine,but when i try to run Stored procedure application returns a long error message and says "RPC name is invalid.....the incoming tabular data stream...". Exact Error message as below;

Image

My code to call stored procedure as below;

Code: Select all

sorgu.Close;
sorgu.SQL.Clear;
sorgu.SQL.Add('exec MyDatabase.dbo.Android_Servis');
sorgu.Open;
What am i missing ?
Last edited by vebaglaci on Fri 06 Nov 2015 07:35, edited 1 time in total.

vebaglaci
Posts: 6
Joined: Thu 05 Nov 2015 18:16

Re: Delphi - Unidac - Android - MsSQL - Stored Procedure - tabular data stream Error

Post by vebaglaci » Fri 06 Nov 2015 07:35

I've solved with below code;

Code: Select all

sorgu.Close;
sorgu.SQL.Clear;
sorgu.SQL.Add('execute MyDatabase.dbo.Android_Servise');
sorgu.Execute;

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: [Solved]Delphi - Unidac - Android - MsSQL - Stored Procedure - tabular data stream Error

Post by AlexP » Mon 09 Nov 2015 14:56

hello,

Glad to see that you have found the solution. If you have any other questions, feel free to contact us.

Post Reply