In VB.net windows application I use following
code implementing SqlBulkCopy import:
Using connODBC As New OdbcConnection( ConnStrODBC)
connODBC.Open()
Dim dbcmd As New OdbcCommand(Str ing.
Format("select * from {0}", TableName), connODBC)
dbcmd.CommandTi meout = SQL_TIMEOUT
bulkcopy.WriteT oServer(dbcmd.E xecuteReader())
connODBC.Close( )
connODBC.Dispos e()
End Using
with connection string:
Dim connbuilderODBC As New OdbcConnectionS tringBuilder()
connbuilderODBC ("Driver") = "{Microsoft Visual FoxPro
Driver}"
connbuilderODBC ("SourceType ") = "DBF"
connbuilderODBC ("SourceDB") = Path.
GetDirectoryNam e(DBFileName)
connbuilderODBC ("Exclusive" ) = "No"
ConnStrODBC = connbuilderODBC .ConnectionStri ng
this code leak to memory leak problems on big files.
After visual studio closing memory is busy.
Please,help
code implementing SqlBulkCopy import:
Using connODBC As New OdbcConnection( ConnStrODBC)
connODBC.Open()
Dim dbcmd As New OdbcCommand(Str ing.
Format("select * from {0}", TableName), connODBC)
dbcmd.CommandTi meout = SQL_TIMEOUT
bulkcopy.WriteT oServer(dbcmd.E xecuteReader())
connODBC.Close( )
connODBC.Dispos e()
End Using
with connection string:
Dim connbuilderODBC As New OdbcConnectionS tringBuilder()
connbuilderODBC ("Driver") = "{Microsoft Visual FoxPro
Driver}"
connbuilderODBC ("SourceType ") = "DBF"
connbuilderODBC ("SourceDB") = Path.
GetDirectoryNam e(DBFileName)
connbuilderODBC ("Exclusive" ) = "No"
ConnStrODBC = connbuilderODBC .ConnectionStri ng
this code leak to memory leak problems on big files.
After visual studio closing memory is busy.
Please,help
Comment