SqlConnection for now..to put error checking in it...
since that class can't be inherited..
I think i'll create a class...manage the possible errors
and return a reference of SqlConnection Class
other ways or ideas very welcome
thanks
dave
When you wrap your code that uses the SqlConnection in appropriate try/ catch
/ finally blocks, you can catch any SqlExceptions. This Exception class
provides a great deal of information about any errors, including specific
error messages returned by SQL Server. No need to inherit anything.
Peter
Thanks peter
Thats Exactly what i did.....
thanks for the info....new to c#.....but getting there
working on exception handling today.....just
putting all the pieces together..at this point....
thanks again
dave
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.