Class for sqlcmd functionality
Inheritance: IDisposable
Ejemplo n.º 1
0
        /// <summary>
        /// Executes a SQL file on the given connection
        /// </summary>
        /// <param name="conn">Connection to execute the file on</param>
        /// <param name="file">The SQL file being executed</param>
        public static void ExecuteFile(
            SqlConnection conn,
            string filePath)
        {
            var sqlCmd = new SqlCmd(conn);

            sqlCmd.ExecuteFile(filePath);
        }
Ejemplo n.º 2
0
        public static void ExecuteStream(
            SqlConnection conn,
            Stream stream)
        {
            var sqlCmd = new SqlCmd(conn);

            sqlCmd.ExecuteStream(stream);
        }
Ejemplo n.º 3
0
 public static void ExecuteStream(
     SqlConnection conn,
     Stream stream)
 {
     var sqlCmd = new SqlCmd(conn);
     sqlCmd.ExecuteStream(stream);
 }
Ejemplo n.º 4
0
		/// <summary>
		/// Executes a SQL file on the given connection
		/// </summary>
		/// <param name="conn">Connection to execute the file on</param>
		/// <param name="file">The SQL file being executed</param>
		public static void ExecuteFile (
			SqlConnection conn,
			string filePath) {
			var sqlCmd = new SqlCmd (conn);
			sqlCmd.ExecuteFile (filePath);
		}