Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export SQL Database Tables to Excel (User Destination)

Status
Not open for further replies.

Igawa29

MIS
Jan 28, 2010
99
US
Good Morning!

I haven't dealt much in exporting to Excel from SQL so I was hoping I could be pointed in the right direction. I am trying to export all my tables (22) from SQL Server into Excel, then zip the entire set. I also want to allow the user to decide where the zip file will be saved at through a window's popup.

If exporting to Excel would be too resource heavy, I was debating if exporting to Access would work instead.

Basically I am trying to figure out how to backup the database. Normal methods are failing since the SQL Server is housed on a virtual machine that will not allow me to use normal backup methods to save outside that virtual machine.

Thanks!
 
Hi,

Max row count for any table exceed 1,048,576, assuming Excel 2007 or greater?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
the SQL Server is housed on a virtual machine that will not allow me to use normal backup methods to save outside that virtual machine."

This sounds a bit off. Can you run a Maintenance Plan in SQL Server? Can you copy the resulting backups to another computer? I ask this because I have SQL Server running on a few virtual machines, and I have no trouble at all backing them up. I can use the Maintenance Plan method, as well as the SQL Server Agent in ArcServe Backup.

Anyway, if you really can't run a backup, take a look at SQL Server Integration Services (SSIS):
How to run an SSIS package from a .NET application:
I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
SkipVought said:
Max row count for any table exceed 1,048,576, assuming Excel 2007 or greater?

Yes it will be using Excel 2010


jebenson said:
This sounds a bit off. Can you run a Maintenance Plan in SQL Server? Can you copy the resulting backups to another computer? I ask this because I have SQL Server running on a few virtual machines, and I have no trouble at all backing them up. I can use the Maintenance Plan method, as well as the SQL Server Agent in ArcServe Backup.

I can try this route, I was using SQL Management Studio and the virtual machine that my database sits on is being regulated by another area at work than mine. So my guess is they are locking some features down. I am also having to create triggers for audit reporting rather than using some built in functionality as well.

jebenson said:
Anyway, if you really can't run a backup, take a look at SQL Server Integration Services (SSIS):
How to run an SSIS package from a .NET application:

Thanks for the suggestion, I have a co-worker who is familiar with SSIS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top