473,405 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

specify package names for sql stored procedures how?

Hi,
How can we specify the package names for sql stored procedures instead
of system generated names ?
(Db2 V8.2 on Windows.)

thanks.....

Nov 12 '05 #1
6 6329
Do you mean the specificname of the sql sp? If so, just use the
"SPECIFIC <specific-name>" option on the create procedure statement.

From the SQL ref:
"SPECIFIC specific-name
Provides a unique name for the instance of the procedure that is
being defined. This specific name can be used when dropping the
procedure or commenting on the procedure. It can never be used to invoke
the procedure. The unqualified form of specific-name is an SQL
identifier (with a maximum length of 18). The qualified form is a
schema-name followed by a period and an SQL identifier. The name,
including the implicit or explicit qualifier, must not identify another
routine instance that exists at the application server; otherwise an
error (SQLSTATE 42710) is raised.

The specific-name may be the same as an existing procedure-name.

If no qualifier is specified, the qualifier that was used for
procedure-name is used. If a qualifier is specified, it must be the same
as the explicit or implicit qualifier of procedure-name or an error
(SQLSTATE 42882) is raised.

If specific-name is not specified, a unique name is generated by
the database manager. The unique name is SQL followed by a character
timestamp, SQLyymmddhhmmsshhn."

Hype wrote:
Hi,
How can we specify the package names for sql stored procedures instead
of system generated names ?
(Db2 V8.2 on Windows.)

thanks.....

Nov 12 '05 #2
I am guessing, Hype is asking if it's possible to specify SQL package's
name like an option PACKAGE USING <package_name> to the PRECOMPILE
command.
AFAIK, it's not supported at least in V8.1.x LUW.

Regadrs,
-Eugene

Nov 12 '05 #3
ef******@gmail.com wrote:
I am guessing, Hype is asking if it's possible to specify SQL package's
name like an option PACKAGE USING <package_name> to the PRECOMPILE
command.


Have a look at the PACKAGE USING option that is available for the PRECOMPILE
command:
http://publib.boulder.ibm.com/infoce...e/r0001964.htm

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #4
Hype wrote:
Hi,
How can we specify the package names for sql stored procedures instead
of system generated names ?
(Db2 V8.2 on Windows.)

thanks.....


As far as I can tell - you cannot specify your own package name for SQL stored
procedures in V8.2.
You can specify <specific-name> which will be used instead of SQLnnnnnnnn
generated one.

Plan name associated with that procedure will have name Pmmmmm where mmmmm is
equal to LIB_ID of SYSCAT.ROUTINES view.

Do you have a specific need for user plan name instead of system generated one?
Jan M. Nelken
Nov 12 '05 #5

Jan M. Nelken wrote:
Hype wrote:
Hi,
How can we specify the package names for sql stored procedures instead of system generated names ?
(Db2 V8.2 on Windows.)

thanks.....

As far as I can tell - you cannot specify your own package name for

SQL stored procedures in V8.2.
You can specify <specific-name> which will be used instead of SQLnnnnnnnn generated one.

Plan name associated with that procedure will have name Pmmmmm where mmmmm is equal to LIB_ID of SYSCAT.ROUTINES view.

Do you have a specific need for user plan name instead of system generated one?

Jan M. Nelken


Nov 12 '05 #6
Jan M. Nelken wrote:
Hype wrote:
Hi,
How can we specify the package names for sql stored procedures instead of system generated names ?
(Db2 V8.2 on Windows.)

thanks.....

As far as I can tell - you cannot specify your own package name for

SQL stored procedures in V8.2.
You can specify <specific-name> which will be used instead of SQLnnnnnnnn generated one.


Jan is correct. You cant.

(note - as of v82, SQL stored procedures no longer are compiled using
the system compiler, therefore there's no option to use the PACKAGE
USING clause during precompile)

jsoh

Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Minh Tran | last post by:
In order to minimize the number of connection strings I have to use to access different databases on the same Sql Server, I was considering storing all stored procedures in just one database. I...
7
by: Anthony Robinson | last post by:
Have been encountering an odd issue. Every now and again, certain packages of stored procedures just become invalid. I'm aware that dropping or altering an underlying table would render a package...
5
by: Jeff | last post by:
I have question about differences in fenced sql procedures and fenced stored procedures. Do fenced sql procedures take up an extra memory segment when executed? Reason I ask is we have several...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
5
by: Rhino | last post by:
I am trying to determine the behaviour of stored procedures in DB2 V8.2.x in Windows/Unix/Linux and how I can control that behaviour. Some documentation in the manuals is confusing the issue...
0
by: Amber | last post by:
Stored procedures are faster and more efficient than in-line SQL statements. In this article we will look at two SQL Server stored procedures; one using an input parameter and one not, and see how...
2
by: Praveen_db2 | last post by:
Hi All DB2 8.1.3, Windows Is there any method to find the routines dependant on any particular routine. Say, I have a stored procedure PROC1 which calls 2 stored procedures and is called by 3...
0
by: Brew | last post by:
Hello, I'm writing an ASP.NET 2005 (VB) Website with an Oracle 9i backend I have an oracle package with stored procedures and functions I need to use from the VB Code, I'm trying to use the...
5
by: william.david.anderson | last post by:
Hi there, I have a newbie stored procedures performance question that I'm hoping someone can answer. It seems like one of the benefits of using SQL stored procedures is that they can reduce...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
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,...

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.