Unix Technical Forum

Accessing output parameter in Stored Proc. using OBDC API...

This is a discussion on Accessing output parameter in Stored Proc. using OBDC API... within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> hi pals, I would like to ge the output parameter using ODBC API, say SQLExecDirect("EXEC SP_New") . How could ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:02 PM
Shahul
 
Posts: n/a
Default Accessing output parameter in Stored Proc. using OBDC API...

hi pals,

I would like to ge the output parameter using ODBC API, say
SQLExecDirect("EXEC SP_New") . How could I get the output parameter value
from my application?

note: forgive me if this group is not a relevant one.


Thanks and Regards,

shahul.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:02 PM
=?Utf-8?B?Sm9obiBCZWxs?=
 
Posts: n/a
Default RE: Accessing output parameter in Stored Proc. using OBDC API...

Hi

For bound parameters you can call SQLBindParameter
http://msdn.microsoft.com/library/de...dbc_b_729e.asp

Also check out
http://msdn.microsoft.com/library/de...cht10_7t2s.asp

and the sample ProcessReturnCodes.cpp.

More information is at
http://support.microsoft.com/default...b;en-us;152174

For unbound parameters you can call SQLGetData e.g.
http://support.microsoft.com/default...b;en-us;241147

John


"Shahul" wrote:

> hi pals,
>
> I would like to ge the output parameter using ODBC API, say
> SQLExecDirect("EXEC SP_New") . How could I get the output parameter value
> from my application?
>
> note: forgive me if this group is not a relevant one.
>
>
> Thanks and Regards,
>
> shahul.
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:26 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com