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
Ekrem Tapan
NA
967
80.9k
split row problem when i cvs file import to mssql
Oct 28 2015 1:49 AM
hi everyone,
i want to ask, how can i split cvs file when i import to mssql
my code is here
string csvData = File.ReadAllText(csvPath);
foreach (string row in csvData.Split('\n'))
{
if (!string.IsNullOrEmpty(row))
{
dt.Rows.Add();
int i = 0;
foreach (string cell in
row.Split(','))
{
dt.Rows[dt.Rows.Count-1][i] = cell;
i++;
}
}
}
but my cvs file hava a this line
XXX","XXX","04011","XX","XX",
"XX, YY"
,"N039","S040","A","20141003 18:54","20141003 20:18","20141003 23:18"
when importto red part my code is after , move to another cell
Reply
Answers (
5
)
signalR chat application not working
angular Js