virafh
asked on
integrate excel in asp.net
Dear Friends,
i want to integrate excel with sql server
the user make the changes in excel and the data will save in sql server
thanx
i want to integrate excel with sql server
the user make the changes in excel and the data will save in sql server
thanx
ASKER
thanks buddy
in the table columns there is Id which is primary key
and if i use ur logic then what about data which is already in sql server and
if i insert the excel data which is a copy the old sql then 2 entries added of same data,
if i delete the old data and then insert data from excel then the Id column which is auto generated and other tables what refer that filed as foreign key, then what ?
its break the table.
is it possible the user will see the excel in asp.net page
thanx
in the table columns there is Id which is primary key
and if i use ur logic then what about data which is already in sql server and
if i insert the excel data which is a copy the old sql then 2 entries added of same data,
if i delete the old data and then insert data from excel then the Id column which is auto generated and other tables what refer that filed as foreign key, then what ?
its break the table.
is it possible the user will see the excel in asp.net page
thanx
Try this code to import excel to a datagrid:
http://dotnetguts.blogspot.com/2006/10/import-excel-to-datagrid-aspnet.html
http://dotnetguts.blogspot.com/2006/10/import-excel-to-datagrid-aspnet.html
ASKER
thanx anv
but i requirement is user work on excel sheet and its saved in db
not datagrid
it was for your point:
>>is it possible the user will see the excel in asp.net page
>>is it possible the user will see the excel in asp.net page
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Insert into <tablename> Select * FROM OPENROWSET('Microsoft.Jet.
'Excel 8.0;Database=D:\test.xls;H
above directly execute in Query window change the Excel Path(D:\test.xls)