views:

177

answers:

2

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 put the data in the correct fields b/c of newlines).

Any tips?

+1  A: 

Bulk Copy is your friend

Preet Sangha
+1  A: 

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.

RichO
DTS? I've never heard of that before
Nephi Johnson
DTS = Data Transformation Services, in SQL Server 2005 and up SSIS = SQL Server Integration Services. Your best friend to load in or dump out large amounts of data!
marc_s