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 |
public bool ExecuteStream(Stream stream, string basePath = null)
{
using (TextReader reader = new StreamReader(stream))
{
return ExecuteReader (reader, basePath);
}
}
SqlCmd::ExecuteStream ( |
public static void ExecuteStream( SqlConnection conn, Stream stream) { var sqlCmd = new SqlCmd(conn); sqlCmd.ExecuteStream(stream); }