I can already use Excel (2007) to import data from SQL Server 2005. I add a data connection, and I enter a custom SQL query that retrieves my data. Cool.
But what I would like to add is the ability to parameterize this query based on the value found in a known cell in the spreadsheet.
My request will come from
SELECT * FROM dbo.MyDataTable WHERE Col1 = 'apples'
to something like
SELECT * FROM dbo.MyDataTable WHERE Col1 = 'Cell ("B2")'Is it possible? If so, how?
source
share