cancel
Showing results for 
Search instead for 
Did you mean: 

SQL Script parameter passing with dbisql.com

JimDiaz
Participant
1,401

I am rebuilding a encrypted database in SQLA 17

The unload script created includes the statement

PARAMETERS encryption_key;

All LOAD TABLE statements include

ENCRYPTED KEY '{encryption_key}'

I intend to run this script with the dbisql.com utility

How do I pass in the parameter "encryption_key"

Thanks

Jim

Accepted Solutions (0)

Answers (1)

Answers (1)

Breck_Carter
Participant
"%SQLANY16%\\bin64\\dbisql.com"^
   -c "ENG=ddd17; DBN=ddd17; UID=dba; PWD=sql"^
   READ ENCODING Cp1252 "master.sql" [c:/temp/]

-- master.sql
PARAMETERS rootDir;
READ '{rootDir}MyDevScript1.sql';
READ '{rootDir}MyDevScript2.sql';
JimDiaz
Participant
0 Kudos

You are a genius, thanks