Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, March 12, 2014 5:45 AM
Points: 1,263, Visits: 84
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


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Friday, June 27, 2014 8:03 AM
Points: 317, Visits: 1,079
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: Yesterday @ 8:09 AM
Points: 3,792, Visits: 1,083
You can use BCP


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


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Monday, October 13, 2014 6:42 AM
Points: 5,216, Visits: 5,111
DTS is another one to use



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
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: Yesterday @ 1:11 PM
Points: 12,905, Visits: 32,161
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1363958
Posted Tuesday, September 25, 2012 7:21 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, March 12, 2014 5:45 AM
Points: 1,263, Visits: 84
table is very big
Post #1364026
Posted Tuesday, September 25, 2012 8:04 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 2:13 PM
Points: 227, Visits: 2,171
You can try OPENROWSET, documented in Books Online.
Post #1364059
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse