DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Posts
    102

    do you agree with me in "using user-defined functions in select query"?

    Hi there....

    Do you agree with me in using user-defined functions of SQL server 2000 (any type of function) in select query? Especially when the query should be run under web platform?

    I need to know about it as soon as possible

    thank you very much
    Sonia

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    I don't see why they can't be used. That is, unless they respresent business logic, which doesn't belong in the data access layer.
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    Mar 2004
    Posts
    102

    u-d-f in select query

    you are right Paul, but the problem is using u.d.f. in select query slows down
    running of it. Especially when your appl. is web- based.

    Any way, I'm looking for a guidance which describes the advantages & disadvantages of using u.d.f in web-based applications.

    Thank u
    Sonia

  4. #4
    Join Date
    Jul 2005
    Posts
    3
    I think these kind of functions will slow down the system , this is a performance problem , but on another side , UDF is have good security specially against SQL Injection if you use it very will

  5. #5
    Join Date
    Dec 2003
    Posts
    2,750
    Quote Originally Posted by Sonia
    Any way, I'm looking for a guidance which describes the advantages & disadvantages of using u.d.f in web-based applications.
    Thank u
    If you have to manipulate the data it's likely to be faster on the database server end than on the web server side. Once the data is returned in a Recordset (or whatever type of object you are using) there is more overhead involved in accessing the data.

    One of the disadvantages is that UDFs are typically database specific. So, if you're planning on migrating to another database type, and you have UDFs, they would probably need to be rewritten.
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

Similar Threads

  1. Optional Parameters with User Defined Functions
    By Eoin Beck in forum Database
    Replies: 3
    Last Post: 06-14-2006, 05:13 PM
  2. Replies: 1
    Last Post: 03-17-2003, 05:27 PM
  3. Replies: 4
    Last Post: 10-22-2001, 08:03 AM
  4. User Defined Functions
    By Daniel Reber in forum Database
    Replies: 1
    Last Post: 02-09-2001, 06:08 PM
  5. Replies: 2
    Last Post: 12-01-2000, 11:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links