I am executing a query in inno setup using sqlcmd. The purpose of the query is creating database. I have tried the query so far in sqlcmd which take a keyword 'GO' after after entering the query. The question is how to embed the keyword 'GO' after the query so it executes.
the pascal script which i have used is:
[Code]
Begin
exec('SqlCmd.exe', ' -E -S Haider-PC ' + ExpandConstant('-Q "CREATE DATABASE Test"'), '', SW_SHOW, ewWaitUntilTerminated,ResultCode);
End