I am running a stored procedure through my Data Environment in Visual Basic 6.
The first time I call the stored procedure in my program :
DE.Connection1.dbo_mystoredprocedure dateParam1,dateParam2
dateParam1 = '05:00:00 AM'
dateParam2 = '05:00:00 PM'
I get back the results I expect.
Without closing the program, I can run the exact same line of code again:
DE.Connection1.dbo_mystoredprocedure dateParam1,dateParam2
dateParam1 = '05:00:00 AM'
dateParam2 = '05:00:00 PM'
I get no results on the second call.
I can close my program and rerun and it's the same results.
The stored procedure works the first time but not the second.
Does anyone have any ideas as to why this could be happening?
Is there a way to refresh the Data Environment in VB without having to close it and reopen it?
The first time I call the stored procedure in my program :
DE.Connection1.dbo_mystoredprocedure dateParam1,dateParam2
dateParam1 = '05:00:00 AM'
dateParam2 = '05:00:00 PM'
I get back the results I expect.
Without closing the program, I can run the exact same line of code again:
DE.Connection1.dbo_mystoredprocedure dateParam1,dateParam2
dateParam1 = '05:00:00 AM'
dateParam2 = '05:00:00 PM'
I get no results on the second call.
I can close my program and rerun and it's the same results.
The stored procedure works the first time but not the second.
Does anyone have any ideas as to why this could be happening?
Is there a way to refresh the Data Environment in VB without having to close it and reopen it?