View previous topic :: View next topic
|
Author |
Message |
PrabakarV
New User
Joined: 21 Dec 2007 Posts: 88 Location: My Desk
|
|
|
|
Hi,
is there any way to overcome -101 error?
i got to run a big query and i am trying to use DSNTEP2 which has 32K limitation. |
|
Back to top |
|
|
subdalal
New User
Joined: 27 Sep 2010 Posts: 21 Location: Boudh
|
|
Back to top |
|
|
PrabakarV
New User
Joined: 21 Dec 2007 Posts: 88 Location: My Desk
|
|
|
|
it says why the error is happening. But i need to know the alternatve other than spliting the query into pieces. I serached the forum but couldnt find anything. may be my search is not good enough. |
|
Back to top |
|
|
chandan.inst
Active User
Joined: 03 Nov 2005 Posts: 275 Location: Mumbai
|
|
|
|
Hi,
For that puprose you would need to show us your query and explain expected output
Regards,
Chandan |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Quote: |
DSNTEP2 which has 32K limitation. |
Which version of DB2 are you using? Limit was increased to 2M starting DB2 V8.
How long is your statement? |
|
Back to top |
|
|
PrabakarV
New User
Joined: 21 Dec 2007 Posts: 88 Location: My Desk
|
|
|
|
my statement has 500K lines of SQL. i am able to run upto 3000 lines of SQL. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
PrabakarV wrote: |
my statement has 500K lines of SQL. i am able to run upto 3000 lines of SQL. |
Would you care to enlighten us as to what you're trying to accomplish with a SQL statement half a million lines long? |
|
Back to top |
|
|
PrabakarV
New User
Joined: 21 Dec 2007 Posts: 88 Location: My Desk
|
|
|
|
I need to update around 500K records and every record is unique So where clause comes around half M |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
And you thought dynamic SQL is your best option, because..?
If it wasn't clear earlier, the limit is 2M bytes not lines.
500K lines with 80 byte record length (assumed) is beyond 2M limit. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
PrabakarV wrote: |
I need to update around 500K records and every record is unique So where clause comes around half M |
Occasionally, it is necessary to write a program. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Who in your organization approved such an approach?
This will be Far Better served using a program . . . |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
By the way, depite being asked, don't show us the query. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
dick scherrer wrote: |
Who in your organization approved such an approach? |
Who else... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Heh heh heh
And if the query is shown, maybe not all of the values . . .?
Not only does Sql CHOKE, but this topic might overflow as well . . . |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
I gotta say, this is the worst idea I have seen in a while. |
|
Back to top |
|
|
|