G
Guest
If you run the following query
select
'CategoryID = ' + c.CategoryID
from
northwind.dbo.Categories
In Query Analyzer against the Northwind database, QA returns an error saying it cannot convert 'CategoryID = ' to an int. However, if you execute this statement using ADO.NET, no error is returned, no infomessage event is fired, you essentially get nothing back even though there was an error
Is there any way to force ADO.NET to throw a SqlException or something when this error occurs
Thanks
Ashton Hobb
http://www.mssqled.co
(e-mail address removed)
select
'CategoryID = ' + c.CategoryID
from
northwind.dbo.Categories
In Query Analyzer against the Northwind database, QA returns an error saying it cannot convert 'CategoryID = ' to an int. However, if you execute this statement using ADO.NET, no error is returned, no infomessage event is fired, you essentially get nothing back even though there was an error
Is there any way to force ADO.NET to throw a SqlException or something when this error occurs
Thanks
Ashton Hobb
http://www.mssqled.co
(e-mail address removed)