tags:

views:

183

answers:

1

How can I use C# to export data to Microsoft Excel from MS-SQL?

Can anyone give me a sample of coding or related tutorial to connect to a database and click a button to export to Microsoft Excel?

A: 

Did you know you can do this in SQL Server Management Studio by right-clicking the database and choosing Tasks->Export Data?

John Saunders