dbTalk Databases Forums  

Passing a SQL Function to MS SqlHelper?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Passing a SQL Function to MS SqlHelper? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
pbd22
 
Posts: n/a

Default Passing a SQL Function to MS SqlHelper? - 01-19-2010 , 10:29 PM






Hi.

I am using the following SQLHelper code:

http://www.sharpdeveloper.net/source...e-Code-cs.html

I am trying to use a Sql Function to return a dataset and
I simply don't know how to do this using SqlHelper. I
am giving text or stored procedure as options.

Has anybody out there used this class to call a Sql function?

Thanks.

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Passing a SQL Function to MS SqlHelper? - 01-22-2010 , 04:35 PM






pbd22 (dushkin (AT) gmail (DOT) com) writes:
Quote:
I am using the following SQLHelper code:

http://www.sharpdeveloper.net/source...e-Code-cs.html

I am trying to use a Sql Function to return a dataset and
I simply don't know how to do this using SqlHelper. I
am giving text or stored procedure as options.

Has anybody out there used this class to call a Sql function?
I've never this class before, and I guess you may get better help in a
..Net forum.

Then again, calling a function, is just like running any other SELECT:

SELECT col1, col2, col3
FROM my_func(@param1, @param2)


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.