msdb2 Default schema not used
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
msdb2 Default schema not used

 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server
Author Message
Krijn Michiels
Guest





Posted: Thu Mar 24, 2005 2:47 pm    Post subject: msdb2 Default schema not used Reply with quote

Looks like the default schema property in the connectionstring is not used
when executing msdb2commands. The query's are always executed in the
connected user schema.

Example :
connectionstring :
[oledb]
; Everything after this line is an OLE DB initstring
Provider=DB2OLEDB;Password=xxxx;Persist Security Info=True;User
ID=USERNAME;Initial Catalog=RDBREM;Data Source=xxxx;Network Transport
Library=TCPIP;Host CCSID=500;PC Code Page=1252;Network Address=xxx;Network
Port=446;Package Collection=MYSCHEMA;Default Schema=MYSCHEMA;DBMS
Platform=DB2/AS400;Process Binary as Character=False;Connection
Pooling=False;Units of Work=RUW

All query's - SELECT * FROM TABLE - are executed like SELECT * FROM
USER.TABLE instead of SELECT * FROM MYSCHEMA.TABLE

Any solutions ?
Back to top
Aaron Grady [MSFT]
Guest





Posted: Thu Mar 24, 2005 10:48 pm    Post subject: Re: msdb2 Default schema not used Reply with quote

Krijn-

Correct, default schema is only used for schema queries. If you want to
qualify tables, you need to use the new default qualifier property which is
available in HIS 2004. From the connection string below it looks like you
probably are using HIS 2004 already, so you'll just need to start using this
property.

NOTE: Default qualifier only works with certain DB2 levels. There is a chart
in the InstallationGuide.htm file on the HIS 2004 CD that shows you which
versions of DB2 support this new property.

HTH,
--
Aaron Grady
MCSE + Internet, MCDBA, MCSD
SNA Server/Host Integration Server 2000
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Krijn Michiels" <Krijn Michiels@discussions.microsoft.com> wrote in message
news:89A2EA0A-7BC1-4880-89A3-B8AB89D9DDA9@microsoft.com...
Quote:
Looks like the default schema property in the connectionstring is not used
when executing msdb2commands. The query's are always executed in the
connected user schema.

Example :
connectionstring :
[oledb]
; Everything after this line is an OLE DB initstring
Provider=DB2OLEDB;Password=xxxx;Persist Security Info=True;User
ID=USERNAME;Initial Catalog=RDBREM;Data Source=xxxx;Network Transport
Library=TCPIP;Host CCSID=500;PC Code Page=1252;Network Address=xxx;Network
Port=446;Package Collection=MYSCHEMA;Default Schema=MYSCHEMA;DBMS
Platform=DB2/AS400;Process Binary as Character=False;Connection
Pooling=False;Units of Work=RUW

All query's - SELECT * FROM TABLE - are executed like SELECT * FROM
USER.TABLE instead of SELECT * FROM MYSCHEMA.TABLE

Any solutions ?
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB