Skip Navigation Links
Home
ServicesExpand Services
Consultants
Technology
Contact Us
Price Guide
Link Exchange Program
SQL Server TipsExpand SQL Server Tips
DBA Tips
Database Design
Database Migrations
Report Writing
BI & Data Warehouse Design
Web Application Development
Website Design
Database Optimisation
Remote DBA
Scroll up
Scroll down
T-SQL Cursors
T-SQL Database Design
T-SQL Functions and Procedures
Scroll up
Scroll down

T-SQL Functions and Procedures

Function. What’s the point?  

I’ve lost count how many times I have been asked to optimise a poorly performing database and found the culprit to be a function. Now it makes perfect sense to me to program in a way that allows reuse of code. However for some reason calling a function in a Select statement over any large dataset often kills performance. The thing to do here is to re-factor your code taking the offending function out and replace it with in line SQL or better still re-factor to take the sub query out of the statement altogether.
Last updated by admin1 on 7/27/2009
Login | Register
 
©2010 Southern Information Solutions Ltd. All rights reserved.
Duplication of this site, in part or in whole, is prohibited without prior written consent.