To use SQL pass-through,
you must first establish an SQL pass-through connection to SPD Server
using ACLSPECIAL=YES.
proc sql;
connect to sasspds (dbq='tmp' server=localhost.5400
user='admin'
password='spds123'
ACLSPECIAL=YES);
Note: Without ACLSPECIAL=YES, you
get the result set only for the users who are making a pass-through
connection and not for all users.
To list all the users
in the password database, submit the following command:
select *
from connection
to sasspds
(select *
from dictionary.pwdb)
To select only the user
name and last log in date, submit the following command:
select *
from connection
to sasspds
(select user, log_date
from dictionary.pwdb);