Read SQL Script using SQL-SMO

Posted on 2009-04-28
Last Modified: 2013-11-25
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.
Question by:P1ST0LPETE
    1 Comment
    LVL 14

    Accepted Solution

    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.


    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
    Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now