Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 export view to excel

Author  Topic 

fanfan
Starting Member

3 Posts

Posted - 2007-06-14 : 17:24:36
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

187 Posts

Posted - 2007-06-14 : 19:18:16
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

1 Post

Posted - 2007-06-29 : 00:11:44
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

22864 Posts

Posted - 2007-06-30 : 09:12:47
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

11752 Posts

Posted - 2007-06-30 : 14:35:14
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
   

- Advertisement -