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.
精彩评论