Regards,
Spencer Tabbert
Spencer wrote:
--
Anton Versteeg
IBM Netherlands
spe...@tabbert.net (Spencer) wrote in message news:<57dd3c13.03032...@posting.google.com>...
Database server = DB2/NT 8.1.0
SQL authorization ID = SRIELAU
Local database alias = TEST
db2 => set current sqlid = hello;
DB20000I The SQL command completed successfully.
db2 => values current schema, current sqlid;
1
--------------------------------------------------------------------------------
------------------------------------------------
HELLO
HELLO
--
Serge Rielau
DB2 UDB SQL Compiler Development
IBM Software Lab, Toronto
Visit DB2 Developer Domain at
http://www7b.software.ibm.com/dmdd/
Can anybody confirm that ?
Joachim
Anton Versteeg <anton_v...@nnll.iibbmm.com> wrote in message news:<3E7F3195...@nnll.iibbmm.com>...
Thats a good DB2 trivia/test question - What is an alternate
way to set schema?
aj
SET CURRENT SQLID = 'XXXDBA';
Error: SQL0567N "XXXDBA" is not a valid authorization ID.
SQLSTATE=42503
(State:42503, Native Code: FFFFFDC9)
Spencer Tabbert
JoKl...@email.com (Joachim Klassen) wrote in message news:<b5788ff3.03032...@posting.google.com>...
depends on how you access the db.
static, dynamic, ... the platform, ...
api, prep/bind options, db2cli.ini file/CLI/ODBC, probably url
attribute(jdbc), set current packageset, ...
PM
It seems V8.1 is too far along for schema to be added to the set
commands on zOS. But the request is in for VNext (8.1+)
AV> SET CURRENT SQLID = 'schema'
AV> should do it.
AV> Spencer wrote:
AV> > What is the equivalent for a SET SCHEMA statment in DB2 UDB 7.2 in
AV> > Unix for DB2 MVS on OS/390? Essentially looking to set the schema
AV> > once and run a bunch of sql commands in a connection. I would like to
AV> > avoid prefix the tables with the schema as we will be running the sql
AV> > across a couple of different environments.
AV> >
AV> > Regards,
AV> > Spencer Tabbert
AV> --
AV> Anton Versteeg
AV> IBM Netherlands
Edward Lipson via Relaynet.org Moondog
edward...@moondog.com eli...@bankofny.com
---
þ MM 1.1 #0361 þ BETA: Better Expect Trouble Ahead
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
This is true unless your (RACF)-ID holds the SYSADM privilege or is
connected to at least one RACF group holding this privilege. A system
administrator can set it's SQLID to any value - even if there exists no
corresponding RACF group.
Furthermore, IDs holding the SYSADM or SYSCTRL privilege can do BINDs for
any other SQLID ("Schema")
Regards - Walter SCHNEIDER.
"Joachim Klassen" <JoKl...@email.com> schrieb im Newsbeitrag
news:b5788ff3.03032...@posting.google.com...