I'm attempting to take a small amount of data, about 200 fields in Excel and retreive data from SQL with that field in the where clause for each item.
TABLE:
ID Name Phone
1 Test1 1234
2 Test2 1235
3 Test3 1236
Excel:
Date ID
2/1/11 1
2/1/11 2
2/1/11 3
I want to be able to retrieve, within excel (hopefully without writing any additional code per se - maybe a simply Excel ODBC or SQL connection with a query. So my data would end up as such on the Excel Document:
Excel:
Date ID Name Phone
2/1/11 1 Test1 1234
2/1/11 2 Test2 1235
2/1/11 3 Test3 1236
I'm not sure if I'm explaining myself clearly enough....
I'm using Excel 2007 and I also have 2010 laying around somewhere. SQL is SQL Server 2000.
Thanks!
Unless there is a good reason to not do this in code, you should just use code instead of sql.
ADO, I am afraid.