troubleshooting Question

Use SQL Script to create table in multiple databases upon install with Installshield.

Avatar of VeeVan
VeeVan asked on
Microsoft SQL ServerMicrosoft SQL Server 2005Installation
13 Comments1 Solution236 ViewsLast Modified:
I have a commercial program for which I am writing a new module. It uses installshield to install updates to the program. I need to create several new tables for program. Each installation of the program is going to use the same SQL instance, however, they can have multiple databases (all with identical tables) and the names are unknown (on my end -- they create them themselves.)

I need to use a SQL script to create new tables and populate them in each one of the databases taht exists for the SQL instance, and have no idea how to go about this.

(I know how to write the generic SQL create script, just not how to automatically apply it to each database.)

Thanks in advance.
Vee
ASKER CERTIFIED SOLUTION
Aneesh
Database Consultant
Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros