HiveBrain v1.2.0
Get Started
← Back to all entries
snippetMinor

how to copy data from SQL Server table to excel Spreadsheet thru Linked Servers

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
excelserverssqllinkedspreadsheetthruhowserverfromdata

Problem

I try to copy data from a table in SQL Server 2005 into a excel spreadsheet. Since that sheet is linked to some external charts, so I have to overwrite the existing data with the updated data from SQL Server table. I want to do it through linked servers. But failed several times. Do someone knows how to do it?

Thanks in advance

Solution

I think you are looking at this from the wrong point of view. You don't want SQL to upate your spreadsheet, you want your spreadsheet to connect to your database and get the latest data.

Create a local DSN -- using "setup data sources (ODBC) -- then connect to that data source from excel.

Context

StackExchange Database Administrators Q#12635, answer score: 3

Revisions (0)

No revisions yet.