ExecuteStream() public method

Executes a SQL file from a stream
public ExecuteStream ( Stream stream, string basePath = null ) : bool
stream Stream The SQL file to execute, as a Stream
basePath string The base path to use to qualify relative path of any included files that are to be executed
return bool
Example #1
0
        public static void ExecuteStream(
            SqlConnection conn,
            Stream stream)
        {
            var sqlCmd = new SqlCmd(conn);

            sqlCmd.ExecuteStream(stream);
        }
Example #2
0
 public static void ExecuteStream(
     SqlConnection conn,
     Stream stream)
 {
     var sqlCmd = new SqlCmd(conn);
     sqlCmd.ExecuteStream(stream);
 }