Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

load sql server table data to flat file with out applications Expand / Collapse
Author
Message
Posted Tuesday, September 25, 2012 4:03 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, December 9, 2015 8:21 PM
Points: 1,653, Visits: 91
Hi,

This is vivek, i have one requirement load sql server table data to flat file(text file) with out applications.please any one help to me.

Thanks&Regards,
vivek.
Post #1363905
Posted Tuesday, September 25, 2012 4:52 AM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Friday, August 26, 2016 10:49 AM
Points: 417, Visits: 1,250
If your table is not very big, you could SELECT * FROM Table using 'Results to Text' instead of grid, then copy & paste the output to a text file.
Post #1363940
Posted Tuesday, September 25, 2012 4:55 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Sunday, January 31, 2016 3:05 AM
Points: 3,963, Visits: 1,149
You can use BCP


Post #1363942
Posted Tuesday, September 25, 2012 5:39 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 6:41 AM
Points: 5,969, Visits: 6,066
DTS is another one to use



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
When a question, really isn't a question - Jeff Smith
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1363956
Posted Tuesday, September 25, 2012 5:50 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 3:13 AM
Points: 14,461, Visits: 38,003
unless you consider dbmail creating an attachment as a file for an email, SQL server itself, doesn't have any native ways to write files to disk that I can think of; everything's an application...SQL Server Management Studio itself,, bcp,dts/ssis, CLR methods, powershell, Office like excel/word, custom applicaitons, etc all would count as "applications" in my book.

it would be better for you to identify what applications you don't wnat to use instead.

what's the real requirement? write data to disk, or not use applications at all? Think it through and let us know what you really need to do.


Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
Post #1363958
Posted Tuesday, September 25, 2012 7:21 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, December 9, 2015 8:21 PM
Points: 1,653, Visits: 91
table is very big
Post #1364026
Posted Tuesday, September 25, 2012 8:04 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Today @ 1:23 PM
Points: 322, Visits: 3,085
You can try OPENROWSET, documented in Books Online.
Post #1364059
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse