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.
Author |
Topic |
murrayb3024
Yak Posting Veteran
79 Posts |
Posted - 2012-12-11 : 15:19:07
|
A user has an excel document and there are 5 specific cells they need to populate. The data is in one of our SQL databases. Is it possible to create a new copy of that excel doc with those fields populated for each record? There are around 2000 records they don't want to manually populate each one.I have never tried this before so not even sure if this possible or not. |
|
bandi
Master Smack Fu Yak Hacker
2242 Posts |
Posted - 2012-12-14 : 05:54:29
|
Do you mean that insertion of table data into an excel file?--Chandu |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
jackv
Master Smack Fu Yak Hacker
2179 Posts |
Posted - 2012-12-15 : 11:36:17
|
You can complete this task using Powershell - which lets you reference\instantiate the Excel doc - and also specifically focus on certain cells.You can also connect to the SQL Server Instance - execute the query - and place in the cells above.Check the Excel COM object and the New-Object ('Microsoft.SqlServer.Management.Smo.Server') to connect to the SQL Server InstanceJack Vamvas--------------------http://www.sqlserver-dba.com |
|
|
|
|
|