473,513 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ALTOBJ (sql-stmt parameter size)

2 New Member
Hello

I would like to use the stored procedure "ALTOBJ" to alter tables in a Datawarehouse and introduce this in the DDL promotion processes we have.

The sintaxis is:

ALTOBJ(exec-mode, sql-stmt, alter-id, msg)

The sql-stmt parameter is used to define the new "CREATE TABLE" and it has a limitation of VARCHAR(2048), however the table SYSTOOLS.ALTOBJ_INFO table where the sql_stmt will be located is a CLOB (2097152).

"Dimension" tables in a DW can have many descriptive columns and the 2048 size limitation is to short for us in some cases.

I was thinking about altering this stored procedure by increasing the sql-stmt parameter size, however it is not possible to alter a procedure located in the SYSPROC schema...

It seems very strange to me this limitation considering DB2 is used for DWs environments!

Is there any workaround ? am I missing something ?

Thanks a lot for your help.
Sergi
Mar 29 '10 #1
1 2768
sbiel
2 New Member
Hello,

While the DB2 Information Center states VARCHAR(2048) when describing the sql-stmt param for the ALTOBJ procedure, the ROUTINENAME catalog table is showing VARCHAR(32672) which would cover our tables requirements... seems like there is a bug in the documentation.

$ db2 "select substr(PARMNAME,1,10) as PARNAME,substr(TYPENAME,1,10) as TYPENAME,LENGTH from syscat.ROUTINEPARMS where ROUTINENAME='ALTOBJ'"

PARNAME TYPENAME LENGTH
---------- ---------- -----------
EXEC_MODE VARCHAR 30
SQL_STMT VARCHAR 32672
ALTER_ID INTEGER 4
MSG VARCHAR 2048

4 record(s) selected.

Thank You
Mar 29 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
6935
by: Vai2000 | last post by:
Hi All, I have a Websvc which exposes a method for validation. The validation string coming in is significantly large at times....sometimes close to 20MB. Due to this my aspnet_wp.exe is hogging...
2
2418
by: Robert E. Flaherty | last post by:
I am using System.Data.OracleClient (Oracle Provider for OLE DB 9.2.0.4.0) in an ASP.NET 1.1 app. I am evoking a stored procedure with a number of input parameters and two output parameters, both...
0
3443
by: Burton Wilkins | last post by:
Dear Authorities: I realize that in communicating with a Web Service, one is essentially passing a string as a parameter. Is there a limit over the Internet how long a parameter string can be?...
1
3851
by: John Mason | last post by:
Hi, I'm new to ASP.NET 2.0 and I am trying to get more information on the size property within the parameter tag of the SQLdatasource control. I have this code as an example... <asp:Parameter...
5
8304
by: =?Utf-8?B?ZHZhcm1h?= | last post by:
Hi I am executing a Sql Server SP from my C# app One of the parameters is of type varbinary. Since the content length of this parameter is variable I cannot set it to a pre-defined length. What...
0
1887
by: rohan_from_mars | last post by:
I've found that I need to compulsory specify size for any varchar2 output parameter. If i do not specify size I get foll exception: Oracle.DataAccess.Client.OracleException ORA-06502: PL/SQL:...
6
26035
by: gizz | last post by:
Hi, I'd like to know whether there is a limit in the number of characters of a $_GET parameter ? Thanks in advance !
0
1135
by: tshad | last post by:
I have a variable of SqlParameter type called parameter. I need to find out what the original size is to compare it with the actual size of my string. parameter.size gives me the size of the...
5
5296
by: Trevisc | last post by:
Happy Thursday Everyone, I am trying to create a parameter that is one long varchar but that will be used in a SQL statement IN function: //string queryString = GetCurrentTitles(); //Below is...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.