SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 export view to excel
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fanfan
Starting Member

3 Posts

Posted - 06/14/2007 :  17:24:36  Show Profile  Reply with Quote
How can I export a view to an excel spread sheet? I know with table there're import and export options, but how about views? Thanks.

cvraghu
Posting Yak Master

India
187 Posts

Posted - 06/14/2007 :  19:18:16  Show Profile  Reply with Quote
Did you tried to search for solution in this forum?

This might help you - http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926
Go to Top of Page

jhietsc
Starting Member

USA
1 Posts

Posted - 06/29/2007 :  00:11:44  Show Profile  Send jhietsc a Yahoo! Message  Reply with Quote
I just spent about 4 hours figuring out how to export a View from a SQL database. I found your post in my quest for answers !!! This is what worked for me.

bcp scripting.dbo.vadsrsql out d:\adsr\sql.txt -T -cChar

I found the following URL's very helpful:

http://msdn2.microsoft.com/en-us/library/aa174646(SQL.80).aspx
http://www.databasejournal.com/features/mssql/article.php/3391761

Julie
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22772 Posts

Posted - 06/30/2007 :  09:12:47  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
Note that if you use bcp to export data to EXCEL, file will be saved in csv format

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

spirit1
Cybernetic Yak Master

Slovenia
11751 Posts

Posted - 06/30/2007 :  14:35:14  Show Profile  Visit spirit1's Homepage  Reply with Quote
this might provide usefull
http://weblogs.sqlteam.com/mladenp/archive/2006/07/25/10771.aspx

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000