T
tfs
I have the following code:
The following line is global
Dim sqlDS = New DataSet()
This is in a procedure
objConnect.Open()
sqlDA = New SqlDataAdapter("select * from
eventCalendar",objConnect)
sqlDA.Fill(sqlDS,"eventCalendar")
Dim totalRows as integer
Dim totalColumns as integer
Dim GetRows as DataTable =
sqlDS.tables("eventCalendar")
My problem is that when I do the fill, it seems to be appending to
what was in the old Dataset (sqlDS - Since it is global).
I want to clear the sqlDS before I do the fill.
How would I do this?
Thanks,
Tom.
The following line is global
Dim sqlDS = New DataSet()
This is in a procedure
objConnect.Open()
sqlDA = New SqlDataAdapter("select * from
eventCalendar",objConnect)
sqlDA.Fill(sqlDS,"eventCalendar")
Dim totalRows as integer
Dim totalColumns as integer
Dim GetRows as DataTable =
sqlDS.tables("eventCalendar")
My problem is that when I do the fill, it seems to be appending to
what was in the old Dataset (sqlDS - Since it is global).
I want to clear the sqlDS before I do the fill.
How would I do this?
Thanks,
Tom.