Using a Project object

Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
edited July 20, 2004 10:39AM in SQL Toolkit Previous Versions
Hi Paul,

Thanks for writing. The example is designed to be self-contained: it
shows how to set up a data comparison, save the settings to a file, and load
the file from disk again.

You can load a project file into a Project object at any time with the
LoadFromDisk method, then you can use those settings through the Compare
method of the Project object:

Project project2=Project.LoadFromDisk(@c: estproject.sdc, true);

Console.WriteLine("Project loaded");

//compare it
project2.Compare();

Console.WriteLine("Comparison run");

//dispose of the ComparisonSession
project2.ComparisonSession.Dispose();

Regards,



Brian Donahue

Red Gate Technical Support


"Paul Buxton" <psb@NOSPAMspireite.demon.co.uk> wrote in message
news:1s0ug9b85bof1.1xgu76m65u8ax.dlg@40tude.net...
>
> The sample SqlDataCompareCodeSnippets is confusing.
>
> What do I need to actually do in initialisation before creating a Project
> object, and loading the SDC?
>
> The sample, already sets stuff up before saving the project and
immediately
> reloading it.
>
> Can you see where I'm confused?
>
> Thx
>
>
>
>
This discussion has been closed.