开发者

SQL Server Table Dump - Not All Columns

开发者 https://www.devze.com 2022-12-09 18:17 出处:网络
I\'m trying to do an SQL Server dump of a couple of tables in a database (Microsoft SQL Server). We don\'t have write access to the DB, so we can\'t do what I was originally thinking (create temp db,

I'm trying to do an SQL Server dump of a couple of tables in a database (Microsoft SQL Server). We don't have write access to the DB, so we can't do what I was originally thinking (create temp db, copy tables (minus the columns we don't want into the temp db, and then dump that db). I really can't figure out a way to do this.

A csv export doesn't work (it's almost impossible to p开发者_运维百科ut the data in the correct fields b/c of newlines).

Any tips?


Bulk Copy is your friend


Either bulk copy, or create a DTS (or SSIS) package that exports to a MS Access database. In access, all the line breaks will be preserved within their corresponding text fields.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号