Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
jyoti walia
Starting Member
2 Posts |
Posted - 2011-07-16 : 01:49:54
|
can any one help me to do this..........plzzzzz...........how to match single field of the Excel file from multiple field of ms sql 2005 database table using c#.... suppose I have field name mob_no in excel file...and in database I have field like Id,name,and mob_no.....then how can I match the field in mob_no in both..... |
|
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2011-07-16 : 11:02:06
|
| Jyoti, this is more of an architectural question, than a specific SQL question, so I (or anyone else who may want to respond) can respond only in general terms.If you MUST use C# to read from Excel and read/write from/to SQL databases, one way would be to create a Visual Studio project in C#, use Excel COM object to access the excel file and ADO.Net to access the SQL database.This page has documentation and examples on how to use Excel COM Interop objects: http://msdn.microsoft.com/en-us/library/dd264733.aspxThis page has documentation and examples on how to use ADO.Net: http://msdn.microsoft.com/en-us/library/dw70f090.aspxIf you run into specific problems, post details and I am sure people on the forum would be able to help. |
 |
|
|
|
|
|