Hi everyone,I am utilizing the red-gate comparison tools,and I can view the script that is generated from the comparison./*Script created by SQL Compare version 6.2.1 from Red Gate Software Ltd at 9/10/2008 9:16:12 AMRun this script on 10.20.16.192.AppLog to make it the same as 10.10.16.14.AppLogPlease back up your database before running this script*/SET NUMERIC_ROUNDABORT OFFGOSET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT, QUOTED_IDENTIFIER, ANSI_NULLS ONGOIF EXISTS (SELECT * FROM tempdb..sysobjects WHERE id=OBJECT_ID('tempdb..#tmpErrors')) DROP TABLE #tmpErrorsGOCREATE TABLE #tmpErrors (Error int)GOSET XACT_ABORT ONGOSET TRANSACTION ISOLATION LEVEL SERIALIZABLEGOBEGIN TRANSACTIONGOPRINT N'Creating [dbo].[tbltest]'GOCREATE TABLE [dbo].[tbltest]([test] [nchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL)GOIF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTIONGOIF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION ENDGOPRINT N'Creating [dbo].[testing]'GO-- =============================================-- Author: <Author,,Name>-- Create date: <Create Date,,>-- Description: <Description,,>-- =============================================CREATE PROCEDURE testingASBEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; -- Insert statements for procedure here SELECT getdate()ENDGOIF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTIONGOIF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION ENDGOIF EXISTS (SELECT * FROM #tmpErrors) ROLLBACK TRANSACTIONGOIF @@TRANCOUNT>0 BEGINPRINT 'The database update succeeded'COMMIT TRANSACTIONENDELSE PRINT 'The database update failed'GODROP TABLE #tmpErrorsGOThe question is....Using C# winforms application, what command do i use to execute this block of code against the server????using a cmd.executenonquery fails stating the syntax is incorrect at the GO 'sthanks tony