SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

AskSQLTeam
Ask SQLTeam Question

USA
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


ex
dbo.fn_ITemDetails(ItemID)
ASSUME ITEMID = 10
select ItemName,MRP,UOM from dbo.fn_ITemDetails(10)
or
select ItemName,MRP,UOM from Ite Master where ITEMiD = 10

which one will perform better please let me know


thanks"

harsh_athalye
Flowing Fount of Yak Knowledge

India
5528 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
India.
"Nothing is Impossible"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.05 seconds. Powered By: Snitz Forums 2000