G
Guest
Scenero:
Run a batch file..
Multiple Querys...
An error occours in 1 query and in QA all other querys will run and return
results.
In dot net I can't get past the error..
ie
Select top 1 lastname from northwind.dbo.employees
raiserror ('Error Here',14,2)
Select top 1 firstname from northwind.dbo.employees
In QA I would see Davilo - Error here - and Nancy
2 recordsets / datatables and an error...
In ADO.Net the best I get is the first Recordset(datatable - set of records
- whatever you want to think of it as.....)
If I use a datareader I end up getting a wonderfull error of
"A severe error occurred on the current command. The results, if any,
should be discarded."
As soon as I try to access the second recordset/set of records/group of
readonly rows.
It won't let me see the second recordset, it just dies at that point...
Any clues as to how to get a valid result like QA are welcome.!
TIA
Rob
PS this seems kind of buggy to me... If I shouldn't be able to get the
results in DotNet, why does the SQL Server tool let me?
Run a batch file..
Multiple Querys...
An error occours in 1 query and in QA all other querys will run and return
results.
In dot net I can't get past the error..
ie
Select top 1 lastname from northwind.dbo.employees
raiserror ('Error Here',14,2)
Select top 1 firstname from northwind.dbo.employees
In QA I would see Davilo - Error here - and Nancy
2 recordsets / datatables and an error...
In ADO.Net the best I get is the first Recordset(datatable - set of records
- whatever you want to think of it as.....)
If I use a datareader I end up getting a wonderfull error of
"A severe error occurred on the current command. The results, if any,
should be discarded."
As soon as I try to access the second recordset/set of records/group of
readonly rows.
It won't let me see the second recordset, it just dies at that point...
Any clues as to how to get a valid result like QA are welcome.!
TIA
Rob
PS this seems kind of buggy to me... If I shouldn't be able to get the
results in DotNet, why does the SQL Server tool let me?