CPCSSN Secure Research Environment (SRE)
THE ANALYST’S GUIDE
Have these at hand:
Step 1: Login to the SRE
OpenVPN Connection*
Microsoft Remote Desktop
There are 2 components required:
*technical details are provided in the SRE User Guide
Remote Desktop Connection Dialog
Step 2: SQL Server Database Access
SQL Server Management Studio
Step 3: SQL
Open Database Connectivity (ODBC)
Step 5: SAS
LIBNAME CPCSSN DSN=’cpcssndata’ user=uuuuuu pw=ppppppp schema=dbo;
CPCSSN – in this example the Library is called “Sql”, but you can choose any name.
dsn = name of the ODBC data source
user = database username
pw = database password
Note: the name of your SAS library is not case sensitive
Step 6:�Linking tables in SAS
Step 6: Linking Tables in SAS
Some things to keep in mind
Other Statistics Programs
R
library(odbc)�con <- dbConnect(odbc(),� Driver = "SQLServer",� Server = "10.15.1.150",� Database = "your_database",� UID = "your_user_name",� PWD = rstudioapi::askForPassword(“your database password ")� Port = 1433)
SPSS
Please contact:
Technical questions (e.g. using openVPN, remote desktop login, etc): dwhite02@mail.ubc.ca
Analyst questions (SQL, SAS, etc): rachaelm@cpcssn.org