Link to home
Start Free TrialLog in
Avatar of DaFou
DaFou

asked on

How to work with excel from TSQL

Hi All,

I'd like a workign example on how to, in TSQL in SQL server 2000, open an excel workbook 'c:\tester.xls'. update field "value1" and "value2" from the first worksheet.
run the calculate method
and read the value from the "result" field

regards
Avatar of Ved Prakash Agrawal
Ved Prakash Agrawal
Flag of India image

you can use OPenQuery, OpenDataSource...function to access excel.csv,mdb from t-SQL.
Avatar of DaFou
DaFou

ASKER

no good, i am looking to work with the excel workbook not only import data from it.
ASKER CERTIFIED SOLUTION
Avatar of Ved Prakash Agrawal
Ved Prakash Agrawal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DaFou

ASKER

how can i have excel do calculations using the OPENDATASOURCE and work with the results in TSQL?