// Filename of the T-SQL file you want to run string fileName = Server.MapPath("personal.SQL"); // Connection string to the server you want to execute against string connectionString = @"Server=server123;User ID=user123;Password=password123;Initial Catalog=MyDBName123"; // Timeout of batches (in seconds) int timeout = 600;