1

I am currently working on an application that is meant to be relaying realtime data on screens. I would like to know how to automatically report the resultset of a SQL query to a Microsoft excel sheet using SQL Server 2005.

Many thanks for your audience and anticipated help.

Cheers, Tunde

2 Answers 2

1

Probably the simplest way of exporting from SQL Server to Excel in TSQL with OPENROWSET. Find out more.

Then schedule the running of the TSQL using SQL Server Agent.

Sign up to request clarification or add additional context in comments.

1 Comment

Excel is quite happy to open CSVs and I think SQL Server is quite happy to export CSVs
0

The best would be to write a program Or even a excel Plugin in .net that writes your query result to a csv file at certain intervals that you can open with excel.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.