Joeblack
5/31/2002 1:48:00 AM
I have a VB .NET application using ODBC (Microsoft.data.odbc)
It takes 72 seconds to get the result... (only 14 rows) so something is
very very wrong here...
Dim myConnString2 As String = "Provider=MSDASQL;Persist
Security Info=False;DSN=myDSN;UID=####;PWD=####"
Try
informix = New OdbcConnection(myConnString2)
and it opens fine...and here's the select... and THIS is what takes 72
seconds...
connection is over TCP using INFORMIX 3.3 32 BIT
Dim cmd As New OdbcCommand()
Dim da As New OdbcDataAdapter()
Dim ds As New DataSet()
Dim drw As DataRow
Dim F1 As String, f2 As String, f3 As String
Try
cmd = informix.CreateCommand
cmd.CommandText = "select * from groupdetail"
da.SelectCommand = cmd
da.Fill(ds, "GroupX")
Dim tblGroups As DataTable
tblGroups = ds.Tables("GroupX")
For Each drw In tblGroups.Rows
F1 = Trim(drw(0))
f2 = Trim(drw(1))
f3 = Trim(drw(2))
MsgBox(F1)
MsgBox(f2)
MsgBox(f3)
Next
Catch ex As Exception
'my eror code
End Try
da.Dispose()
Any suggestions, i have a SQL2000 connection trunning just fine in the same
app...
slewis@caerus.net