I've got a pure InstallScript installer and I'm attempting to connect to a SQL server and run scripts.
The scripts need to be run against an existing catalog, the name of which needs to be gathered from the user.
My question is: Which property/variable is used for the name of the database being conected to?
I know in any msi-based installation if I set IS_SQLSERVER_DATABASE, I can manipulate which catalog is being connected to. What can I set in a pure InstallScript project?
Any help is appreciated.
Brian
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
SQL catalog name property in IScript?
Started by
BFealy
, Dec 05 2005 17:46
1 reply to this topic
Posted 07 December 2005 - 15:44
An update in case someone searches and hits this message...
I had to change ONSQLServerInitialize to use SQLRTCONNECTDB instead of SQLCONNECTRT2 , the DB function allows specification of a database / catalog in its command line.
Still don't have a way to make a pretty browse dialog, but the user can manually enter a catalog name via a dialog I inserted after the SQLServerSelectLogin dialog in the OnSQLServerInitialize function.
I had to change ONSQLServerInitialize to use SQLRTCONNECTDB instead of SQLCONNECTRT2 , the DB function allows specification of a database / catalog in its command line.
Still don't have a way to make a pretty browse dialog, but the user can manually enter a catalog name via a dialog I inserted after the SQLServerSelectLogin dialog in the OnSQLServerInitialize function.