Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 361
  • Last Modified:

Read SQL Script using SQL-SMO

Hi
I'm developing a C# win app that is using SQL-SMO.  I know SMO has the functionality to generate SQL scripts, but does it have the ability to read/parse SQL scripts?  I am wanting to compare an SQL script (what it would create if executed) against an existing database.
0
P1ST0LPETE
Asked:
P1ST0LPETE
1 Solution
 
rob_farleyCommented:
The easiest way of doing this is to generate a new set of scripts, and compare them to the ones you already have.

So... not so much trying to parse, but just trying to compare a new version.

Rob
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Tackle projects and never again get stuck behind a technical roadblock.
Join Now