How to transfer data from excel to sql server table
hi
what i have here is a situation wherein i want to Using C# import Excel file into a SQL Server table .
can someone tell how to go about doing this...
thanx for the help.
vic.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
sjonesRank #7,001 · 251 reputationPosted Jul 13, 2004, 7:59 AM EDT
viktors53 reputationPosted Jul 13, 2004, 1:35 PM EDT
viktors53 reputationPosted Jul 13, 2004, 1:48 PM EDT
jinwolfRank #7,492 · 240 reputationPosted Jul 13, 2004, 11:27 PM EDT
viktors53 reputationPosted Jul 14, 2004, 7:37 AM EDT
viktors53 reputationPosted Jul 21, 2004, 12:31 PM EDT
"); } catch (Exception ex) { Response.Write(ex.ToString()); } finally { cmdinsert.Connection.Close(); } And here is the stored proc for insertion.. create proc dbo.sp_insertbooks @bookid int, @bookname varchar(255), @bookdesc varchar(255) as SET NOCOUNT ON insert into Book values(@bookid, @bookname,@bookdesc)