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

Database

 
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 
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 
BadKarma wrote:
So like you can see the size of the query is relative small not even 50 characters.
The batch statement though, can reach the size of more the 20k of characters but shouldn't be


With emphasis on "shouldn't". It's not so much the size of the query in characters, but I'm thinking the number of statements in the batch might be your problem. It's not listed in the specs anywhere. There are other minor possibilities, but I've got no time to test them.

Maximum statements cachable in a connection, limits on uncompiled vs. compiled code vs. batch code, ...

What you're doing is just never done outside a stored procedure in the database (at least I've never seen it done), so data on your technique is very hard to come by.

You can try the theory out by batching together statements 400 at a time. ORrrrrrr, you could just write the batch query using an SQL loop, since your data doesn't appear to change from iteration to iteration, just the WHERE clause changes.


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


-- modified at 11:46 Monday 30th January, 2006
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 
QuestionHow to send email on perticular date and time? Pin
vicky45723-Jan-06 13:57
vicky45723-Jan-06 13:57 
AnswerRe: How to send email on perticular date and time? Pin
Qaiser Mehmood Mughal24-Jan-06 3:33
Qaiser Mehmood Mughal24-Jan-06 3:33 
GeneralRe: How to send email on perticular date and time? Pin
vicky45724-Jan-06 6:58
vicky45724-Jan-06 6:58 
Questionarrange by nearest date? Pin
jszpila23-Jan-06 10:03
jszpila23-Jan-06 10:03 

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.