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 2008 Forums
 Transact-SQL (2008)
 improve performance of a function getting percenta
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sarahmfr
Posting Yak Master

214 Posts

Posted - 05/20/2012 :  00:21:26  Show Profile  Reply with Quote
is it better to use temporary tables or subqueries in an inline function
if an inline function performs complicated calculation and this inline function is called in a pivot thanks

Edited by - sarahmfr on 05/20/2012 19:48:30

visakh16
Very Important crosS Applying yaK Herder

India
47037 Posts

Posted - 05/20/2012 :  10:56:41  Show Profile  Reply with Quote
can you elaborate on what exactly you're trying to achieve here? its quite difficult for us to go through current code and understand the logic

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
47037 Posts

Posted - 05/21/2012 :  16:49:36  Show Profile  Reply with Quote
quote:
Originally posted by sarahmfr

is it better to use temporary tables or subqueries in an inline function
if an inline function performs complicated calculation and this inline function is called in a pivot thanks



you cant have temporary tables in inline function
Using temporary tables means its not inline but its multistatement table valued function.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

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.11 seconds. Powered By: Snitz Forums 2000