using (SqlConnection connection = New SqlConnection(connectionString)) { string queryString = "BULK INSERT Northwind.dbo.[Order Details] " + "FROM 'f:\mydata\data.tbl' " + "WITH ( FORMATFILE='f:\mydata\data.fmt' )"; connection.Open(); SqlCommand command = new SqlCommand(queryString, connection); command.ExecuteNonQuery(); }