{
Process p = new Process();
p.StartInfo.FileName = @"C:\Program Files\Microsoft SQL Server\90\Tools\Publishing\sqlpubwiz";
p.StartInfo.Arguments= @"script -d AdventureWorks "C:\AdventureWorks.sql";
p.Start();
}