G
Guest
Hello,
I'm new to asp.net and ado.net so please reply considering that in mind. I'm
trying to insert some records which are in a .CSV file but the insert is
working double time. i have 744 records in .CSV file and I'm getting them in
the datareader but when I'm inserting it into table they're inserted as 1500.
So the total record count in the table is 1500.
Here is the code:
While myread.Read
myread.Read()
sqlcmd.CommandText = "Insert imported (imp) values('" &
myread.GetValue(5) & "')"
sqlcmd.Connection = sqlConn
sqlcmd.ExecuteNonQuery()
End While
Also is there no method like in Ado we use Recordset.EOF
[/QUOTE].
Thank you.
I'm new to asp.net and ado.net so please reply considering that in mind. I'm
trying to insert some records which are in a .CSV file but the insert is
working double time. i have 744 records in .CSV file and I'm getting them in
the datareader but when I'm inserting it into table they're inserted as 1500.
So the total record count in the table is 1500.
Here is the code:
While myread.Read
myread.Read()
sqlcmd.CommandText = "Insert imported (imp) values('" &
myread.GetValue(5) & "')"
sqlcmd.Connection = sqlConn
sqlcmd.ExecuteNonQuery()
End While
Also is there no method like in Ado we use Recordset.EOF
[/QUOTE].
Thank you.