How to execute a sql script with GO statement using C# code

Apr 13 2007 1:47 AM

USE [AdventureWorks]

GO

CREATE SCHEMA [HumanResources] AUTHORIZATION [dbo]

GO

I want to create a schema using above script, executing it from C# code but I am not able to place GO in the next line because in string of C# code it comes with \n and give a syntax error , when  GO continue with the same line the its again a syntax error for sql . Without Go satatement its again giving an error that

'CREATE SCHEMA' must be the first statement in a query batch.

How can  I solve this problem.

Waiting for the  reply .

Thanks in advance.