all groups > sql server odbc > january 2006 >
You're in the

sql server odbc

group:

Linking Excel and SQL



Linking Excel and SQL Preacher Man
1/23/2006 10:25:23 AM
sql server odbc: I would like to link an Excel Spreadsheet to my SQL 2K Database. Where do I
need to start?

For example. I would like to have a cell in Excel that gives me the sum of
Sales Orders in my SQL Database. I would also like for this to be able to
change according to a date field in excel that can be set.

Thanks for any help.

Re: Linking Excel and SQL Preacher Man
1/23/2006 12:15:47 PM
So far I have tried using Microsoft Query, and I have entered my Select
statement. Here's another question though,

How do have a select statement that changes according to what is in a cell
in Excel. For Example:

Select <field> from <table> where <field>=<Cell in Excel>

[quoted text, click to view]

Re: Linking Excel and SQL Uri Dimant
1/24/2006 12:00:00 AM
Hi
SELECT *
FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0',
'Data Source="c:\External\MyExcel.xls";
User ID=Admin;Password=;Extended properties=Excel 8.0')...Book1$





[quoted text, click to view]

AddThis Social Bookmark Button