Question for SQL developers - testmy.net resource / tool
Home
Welcome, Guest. Please login or register.
Did you miss your activation email?

 



donations help testmy.net pay for the very high cost to run the site. Any amount is greatly appreciated.
Click to read why...

  spcr
    
News : Have an idea that will make testmy.net better?  Click here to post it!  We love to hear feedback, user feedback like yours have helped build testmy.net over the years.. true story wink December 03, 2008, 12:29:56 AM
testmy.net Broadband  |  Main Forum  |  HELP!  |  Programming and Website Help  |  Server Help  |  Topic: Question for SQL developers Advanced search

Recommended Tests

Click here to run a free Performance Scan
  Test PC Performance:
     Click here to run a free Performance Scan
    Test PC Stability:
     Click here to run a free Registry Scan


Note: The links above are sponsored links
  0 Members and 1 Guest are viewing this topic. « previous next »
Pages 1 Go Down
Author
Topic: Question for SQL developers  (Read 1181 times)
JimPrice
Full Member
*
Offline Offline

Posts: 76


View Profile
« on: January 30, 2006, 08:05:43 PM »

Okay...so you have a choice between one of the two following scenarios.  Which one do you choose and why?

Background - The aplication is based on IIS and SQL server.  Your app must make use of temp tables to handle some complex sorting and transformation tasks.  You'll pull data from permanent tables and use the temp tables to do the work. Some of the Selected data from the permanent tables will simply be copied "as is" to the temp table.  Fairly straightforward.  Eventually you'll encounter a row that matches the criteria you have to trigger an advanced transformation routine.  Once that row is processed, you'll resume copying all remaining rows into the temp table.

Do you:

1. Continuously leave the db connect open that's handling the copy work, as another connect handles the inevitable transformation that will happen, so when transforming is done, you're in position to resume copying right where you left off?

-OR-

2. Close the copy db connect at transformation time, then re-open it after the transformation routine to resume copying where you left off?  Keep in mind this may require you to do several MoveNext cursors to get back to where you need to be, or if using mySQL you may use LIMIT x,y.

Which option would impose the least "drag" on your webserver? This scenario assumes the SQL database and IIS are installed on the same machine.

There are pros and cons to each method.  Which one would you employ, and why?
Logged

DW7000 | 89W:1170 | 1.2 Meter SP | Pro Plan w / Static IP | RSL:92 | ACP:98 | RC:4/5 | Somewhere between lots of trees and cows in NE Oklahoma
Print  Pages 1 Go Up
testmy.net Broadband  |  Main Forum  |  HELP!  |  Programming and Website Help  |  Server Help  |  Topic: Question for SQL developers « previous next »
Jump to:  

    
testmy.net's forum is proudly Powered by SMF | SMF © 2006-2007, Simple Machines LLC
Bookmark: Del.icio.us    StumbleUpon
 
 

 

© 1999-2008 testmy.net - Contact - Legal - Facts & FAQs
Page Loading Stats: This forum Page created in 0.08 seconds with 26 queries.