How do I avoid the Object reference not set error when ExecuteXmlReader has no records?
If have a SQL Server 2000 stored procedure that returns xml using "for xml auto" and also returns a return value. If I use ExecuteXmlReader, I get an "Object reference not set to an instance of an object" error when there are no records that meet the criteria in my stored procedure because no xml is returned. Is there anyway to avoid this error?
As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.