Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 difference between UDF and Stored procedure
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 11/10/2006 :  08:19:10  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
vishwanath.G writes "Hi all

I have used UDF extensivily in my development environment, but still I would like to know wether the UDF is a compiled peace of code like Stored procedure are not?

I would like to know even I have used certain function as table valued functions for return columns
I have one question, which will perform by using the function or direct Sql statement for the columns

select ItemName,MRP,UOM from dbo.fn_ITemDetails(10)
select ItemName,MRP,UOM from Ite Master where ITEMiD = 10

which one will perform better please let me know


Flowing Fount of Yak Knowledge

5581 Posts

Posted - 11/10/2006 :  08:35:11  Show Profile  Visit harsh_athalye's Homepage  Click to see harsh_athalye's MSN Messenger address  Send harsh_athalye a Yahoo! Message  Reply with Quote
As regards to your first question, answer is yes.

Answer to your second question depends on the contents of the table-valued function you are using. Post it here and we can get some understanding about it.

Harsh Athalye
"Nothing is Impossible"
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000