Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Processing every row of a table in one procedure
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01260512
Message ID:
01260767
Views:
13
Is it possible to create some of the business rules in SQL by parameterising queries or even having sub-procedures which are client specific? An alternative approach if you have a different installation per client is to have multiple versions of the same procedure with the same name?

The reason I suggest this is that you don't want to be moving data off of the SQL Server into another layer unless you absolutely have to. As others have mentioned 10,000 key fields may be ok, but then are you going to call a further download per keyed row to get the data to process?, and then you have to write it back again.

The other thing to consider here is the effect that this procedure will have on shared access to the data. Is it an exclusive routine for out of hours processing, or is there a risk that end users could be accessing the data whilst this bulk update is happening?
SJC Systems Limited
WorldSpreads Limited (www.worldspreads.com)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform