Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How can a Record type be returned by a stored procedure?

Reply
 
Old 08-20-2008   #1 (permalink)
deepal.82


 
 

How can a Record type be returned by a stored procedure?

Hi All,

I want to know, if i can define a recordType in the
createParameter().
Currently i am using the following code
.Parameters.Append .CreateParameter("date_diff_days", 3, 1)
3- is for Integer,

I would like to know if there is a number for recordType? How can i
fetch the record that is returned by the stored procedure?

Thanks
Deepal

My System SpecsSystem Spec
Old 08-20-2008   #2 (permalink)
Bob Barrows [MVP]


 
 

Re: How can a Record type be returned by a stored procedure?

deepal.82@xxxxxx wrote:
Quote:

> Hi All,
>
> I want to know, if i can define a recordType in the
> createParameter().
> Currently i am using the following code
> .Parameters.Append .CreateParameter("date_diff_days", 3, 1)
> 3- is for Integer,
>
> I would like to know if there is a number for recordType? How can i
> fetch the record that is returned by the stored procedure?
>
What database? Type and version please.

In SQL Server, there is no "Record" type. You have to use a SELECT statement
to return a resultset.
I suppose you could return xml in an output parameter ....

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Streamreader and BCP vs SqlConnection and a Stored Procedure PowerShell
VB script - for accessing a array returned from stored procedure VB Script
how to retrieve an array returned from stored procedure VB Script
executing sql stored procedure VB Script
Calling a stored procedure from powershell PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46