» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2006, 02:00 PM
germon germon is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
germon is on a distinguished road
Default best way to export data from an MsSQL table to a CSV file

Hi guys,

Could you please give me a hint which is the best way to export data from an MsSQL table to a CSV file, or any other file

Thank you in advance -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-17-2006, 02:02 PM
snedden snedden is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
snedden is on a distinguished road
Default

Well for just a run-of-the-mill csv you could always just step through the recordsets and build your own, like this

while not recordset.eof
response.write field1 & ", " & field2 & ", " & field3 & ", " & field4 & ", " & field5 & "<br />" & vbcrlf
recordset.movenext
wend

and either display that to a browser and c/p it if it's a one-off deal or append it to a file if its a regular occurance via the filesystemobject method. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 08-17-2006, 02:07 PM
kasprov kasprov is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kasprov is on a distinguished road
Default

Related question

what you think of constructing the tables in HTML and then just copy and paste, I think it'll also work -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free File Storage Hosts vishnuthegreat Domains For Sale - Fixed Price/Offer 1 03-06-2007 09:31 AM
storing hexadecimal data into mysql table??? wlinkon MySQL Forums 2 11-25-2006 05:05 AM
how to edit table data? ZLivan MySQL Forums 1 11-13-2006 06:05 AM
storing data base file? Alasha MySQL Forums 1 10-27-2006 05:37 AM
Verio Expands Data Protection & Storage Service Offerings outsourcingplans Web Hosting News 0 12-10-2005 04:30 PM


All times are GMT. The time now is 01:28 AM.