Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Excel VBA and SQL Server 2000 UDF

Hi All,

Can I get SQL Server 2000 UDF (user defined function) returned value
by using Excel VBA?

If I can, please provide a simple example.

I am using Excel 2000

Many thanks.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Excel VBA and SQL Server 2000 UDF

Hi Jamie,

Thanks for reply.

I know how to work with Stored Procedures in SQL Server (by using
OUTPUT parameters)to get returned value (scale value), what I am
interested is, how or if is possible to get returned value from a SQL
Server UDF by using Excel VBA, just we get returned value from Excel
VBA UDF?

Yesterday I read some interesting stuff, suggest we CAN NOT get
returned value from SQL Server UDF, I wonder is this true? I would be
surprised to know we have to treat SQL Server UDF just like SQL Server
Stored Procedures - if this is the case, why we need UDF?

Thanks.

Kind Regards,

Charles
(Jamie Collins) wrote in message . com...
(Charles) wrote ...

Can I get SQL Server 2000 UDF (user defined function) returned value
by using Excel VBA?


Wrap the function in a stored procedure, call the stored proc from VBA
code using ADO.

Jamie.

--

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2000 on Windows Server 2003 SS_WinLive Excel Discussion (Misc queries) 0 July 10th 07 11:36 AM
How to Transfer data from Excel to SQL SERVER 2000 Ahmad Jalil Qarshi Excel Discussion (Misc queries) 5 June 10th 05 08:57 PM
i want to connect excel with sql server 2000 as database with macr khurram saddique Excel Discussion (Misc queries) 2 February 18th 05 11:09 AM
calling a stored procedure on MS SQL Server within MS Excel 2000 Witold Domienik Excel Programming 0 March 2nd 04 10:47 AM
Terminal Server 2003 + Excel 2000 MD Excel Programming 1 February 1st 04 12:10 AM


All times are GMT +1. The time now is 12:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"