TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
JAYRAM
NA
272
213.9k
read excel coloum value in datatable
Jan 6 2015 1:21 AM
How to add excel coloum value in datatable
i have excel like below
sno name
1 raju
2 vamshi
3 fgh
and add date field in every colum as "
jan14
"
i am using below query ....but how to write date fied affected in all coloums
Query = string.Format("Select [sno],[name] FROM [{0}]", "Sheet1$");
OleDbCommand Ecom = new OleDbCommand(Query, OleDbcon);
OleDbcon.Open();
DataSet ds = new DataSet();
OleDbDataAdapter oda = new OleDbDataAdapter(Query, OleDbcon);
OleDbcon.Close();
oda.Fill(ds);
DataTable Exceldt = ds.Tables[0];
SqlBulkCopy objbulk = new SqlBulkCopy(conn);
Reply
Answers (
4
)
HIDE and show fields base on ddl selected
how to read 1 column from .csv file in c# windows applicatio