Skip to content

Instantly share code, notes, and snippets.

@Benjit87
Created November 27, 2012 01:29
Show Gist options
  • Save Benjit87/4151812 to your computer and use it in GitHub Desktop.
Save Benjit87/4151812 to your computer and use it in GitHub Desktop.
/* Assign the library named MSSQL to the ODBC data source *
* the library sample will contain the tables of the database */
LIBNAME MSSQL ODBC DATASRC=MSSQL UID=XX PASSWORD='{sas002}XXXXXXXXXXXX';
LIBNAME MSSQL ODBC NOPROMPT="UID=XX;PWD=XXXXXX;DSN=MSSQL;SERVER=XXX.XX.XX.XX;DATABASE=XXXXX;";
/* Use a 32 bit key to encode 'yourpassword' */
PROC PWENCODE IN='yourpassword' METHOD=SAS002;
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment