Quote:
|
Originally Posted by n_i
What happens if log in to Windows using db2test and do this:
"db2 connect to <your database>"
"db2 select <whatever you are selecting"
and this:
"db2 connect to <your database> user db2test"
"db2 select ..."
Please paste complete sessions, including command output and error messages, if any.
|
First example is where I logged on to the Windows Server (as me) and connected to the SAMPLE database as db2test.
The second example is where I logged on to the Windows Server as db2test.
No errors.
Both have db2test (user) defined via DB2 GUI
Database Connection Information
Database server = DB2/NT 7.2.9
SQL authorization ID = DB2TEST
Local database alias = SAMPLE
C:\PROGRA~1\SQLLIB\BIN>db2 select * from edreczk.org
DEPTNUMB DEPTNAME MANAGER DIVISION LOCATION
-------- -------------- ------- ---------- -------------
10 Head Office 160 Corporate New York
15 New England 50 Eastern Boston
20 Mid Atlantic 10 Eastern Washington
38 South Atlantic 30 Eastern Atlanta
42 Great Lakes 100 Midwest Chicago
51 Plains 140 Midwest Dallas
66 Pacific 270 Western San Francisco
84 Mountain 290 Western Denver
8 record(s) selected.
C:\PROGRA~1\SQLLIB\BIN>
Database Connection Information
Database server = DB2/NT 7.2.9
SQL authorization ID = DB2TEST
Local database alias = SAMPLE
C:\PROGRA~1\SQLLIB\BIN>db2 select * from edreczk.ORG
DEPTNUMB DEPTNAME MANAGER DIVISION LOCATION
-------- -------------- ------- ---------- -------------
10 Head Office 160 Corporate New York
15 New England 50 Eastern Boston
20 Mid Atlantic 10 Eastern Washington
38 South Atlantic 30 Eastern Atlanta
42 Great Lakes 100 Midwest Chicago
51 Plains 140 Midwest Dallas
66 Pacific 270 Western San Francisco
84 Mountain 290 Western Denver
8 record(s) selected.
PS.... you may notice that one table is lower case, the other upper case... same table, same results. Only did this so that I could ensure my cut & paste was working correctly.