If con.State = ConnectionState.Closed Then
con.Open()
End If
com.Connection = con
DataGridView1.VirtualMode = False
'Commented out for messsage queue load on the server
If DataGridView1.Rows.Count > 0 Then
'Commented out for messsage queue load on the server
For Each rw As DataGridViewRow In DataGridView1.Rows
com.CommandText = ("insert query" )
count = com.ExecuteNonQuery()
'Commented for messsage queue load on the server
Application.DoEvents()
'Commented for messsage queue load on the server
'Objwriter.WriteLine("Total Rows:" + count.ToString)
'Objwriter.Flush()
com.CommandTimeout = 725
com.ExecuteNonQuery()
Success = True
Next
End If
ASKER
If con.State = ConnectionState.Closed Then
con.Open()
End If
com.Connection = con
DataGridView1.VirtualMode = False
'Commented out for messsage queue load on the server
If DataGridView1.Rows.Count > 0 Then
'Commented out for messsage queue load on the server
[b] For Each rw As DataGridViewRow In DataGridView1.Rows[/b]
com.CommandText = ("insert query" )
count = com.ExecuteNonQuery()
'Commented for messsage queue load on the server
Application.DoEvents()
'Commented for messsage queue load on the server
'Objwriter.WriteLine("Total Rows:" + count.ToString)
'Objwriter.Flush()
com.CommandTimeout = 725
com.ExecuteNonQuery()
Success = True
Next
End If
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY