Click here to Skip to main content
15,899,825 members
Home / Discussions / Database
   

Database

 
GeneralRe: Using MSDE Pin
Paul Conrad28-Jan-06 17:18
professionalPaul Conrad28-Jan-06 17:18 
Questionrunning out of swimming *pool* space..... ??? Pin
WetRivrRat26-Jan-06 11:05
WetRivrRat26-Jan-06 11:05 
AnswerRe: running out of swimming *pool* space..... ??? Pin
Colin Angus Mackay26-Jan-06 12:42
Colin Angus Mackay26-Jan-06 12:42 
GeneralRe: running out of swimming *pool* space..... ??? Pin
WetRivrRat27-Jan-06 10:15
WetRivrRat27-Jan-06 10:15 
QuestionHow to sort a column in data grid: Pin
kenn_rosie26-Jan-06 4:32
kenn_rosie26-Jan-06 4:32 
AnswerRe: How to sort a column in data grid: Pin
S Douglas30-Jan-06 22:48
professionalS Douglas30-Jan-06 22:48 
QuestionLimits on SQL Statements Pin
BadKarma26-Jan-06 1:38
BadKarma26-Jan-06 1:38 
AnswerRe: Limits on SQL Statements Pin
Dave Kreskowiak26-Jan-06 7:06
mveDave Kreskowiak26-Jan-06 7:06 
BadKarma wrote:
Updating those 20K (20000) records one at the time consumes a lot of time.
In order to speed things up I collect those queries to create one big SQL statement.

Now the problem is the following whenever I place more that 455 update queries only the
first 455 are executed. The others are neglected, because no error has happened (neighter


You did what??? OMG | :OMG:

You have a big problem in your design. Like you've found out, if one statement fails, you have to consider the entire batch a failure. You can't catch an error because nothing throws one.

Best practice says that you call a stored procedure on the SQL Server to do the update for you and just pass the parameters to it, 20,000 times. The stored procedure can check to see if the update works and RAISEERROR if it failed for some reason. You can catch that error in your code. You also get the benefit of knowing exactly which one of these calls failed.





RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Limits on SQL Statements Pin
BadKarma27-Jan-06 3:14
BadKarma27-Jan-06 3:14 
GeneralRe: Limits on SQL Statements Pin
Dave Kreskowiak27-Jan-06 18:06
mveDave Kreskowiak27-Jan-06 18:06 
GeneralRe: Limits on SQL Statements Pin
BadKarma30-Jan-06 3:12
BadKarma30-Jan-06 3:12 
GeneralRe: Limits on SQL Statements Pin
Dave Kreskowiak30-Jan-06 5:44
mveDave Kreskowiak30-Jan-06 5:44 
AnswerRe: Limits on SQL Statements Pin
AntonGogolev26-Jan-06 23:05
AntonGogolev26-Jan-06 23:05 
Questionusing DataTable in place of DataSet Pin
Himalay Oza25-Jan-06 3:38
Himalay Oza25-Jan-06 3:38 
AnswerRe: using DataTable in place of DataSet Pin
Paul Conrad25-Jan-06 6:28
professionalPaul Conrad25-Jan-06 6:28 
Questiondataview and databinding ? Pin
Isabel oliveira24-Jan-06 14:40
Isabel oliveira24-Jan-06 14:40 
QuestionImport Cast Error in SQL Server 2005 Pin
Tiger45623-Jan-06 18:55
Tiger45623-Jan-06 18:55 
Questiontable construction/design question Pin
Jim Crafton23-Jan-06 15:36
Jim Crafton23-Jan-06 15:36 
AnswerRe: table construction/design question Pin
Rob Graham23-Jan-06 17:14
Rob Graham23-Jan-06 17:14 
GeneralRe: table construction/design question Pin
Jim Crafton24-Jan-06 2:47
Jim Crafton24-Jan-06 2:47 
GeneralRe: table construction/design question Pin
Jim Crafton26-Jan-06 16:20
Jim Crafton26-Jan-06 16:20 
GeneralRe: table construction/design question - RESOLVED Pin
Jim Crafton26-Jan-06 17:54
Jim Crafton26-Jan-06 17:54 
AnswerRe: table construction/design question Pin
Damodar Periwal24-Jan-06 12:53
Damodar Periwal24-Jan-06 12:53 
GeneralRe: table construction/design question Pin
Jim Crafton24-Jan-06 15:35
Jim Crafton24-Jan-06 15:35 
GeneralRe: table construction/design question Pin
Damodar Periwal24-Jan-06 15:46
Damodar Periwal24-Jan-06 15:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.