PC Review


Reply
Thread Tools Rate Thread

documenation for '.NET Data Provider for SQL Server' errors

 
 
Vikram Vamshi
Guest
Posts: n/a
 
      11th Aug 2005
Hi,
I was trying to find documenation for the error messages and the
corresponding error numbers for the errors that are raised by the .net data
provider for SQL Server.

For example:
The following is the message when the provider times out
Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding.
and the corresponding error number is:-2

I was trying to get a list of all the possible errors along with their error
numbers, so that we can handle them in our code if it is appropriate.
It would help us a lot if someone can point me to the documentation.

Thanks in advance.
--
Vikram Vamshi
Database Engineer
Eclipsys Corporation


 
Reply With Quote
 
 
 
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      11th Aug 2005
Okay, before I can answer the below, I need to ask you another question :-)

Are you talking about errors that occur in TSQL? (Because that is what kinda
sounds like from your description - Error Numbers i.e), or are you talking
about Errors that occur in ADO.NET?

Also, if it is ADO.NET, then are you talking about ADO.NET 2.0 or 1.1?


--

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
----------------------------------------------------------------------------
---------------

"Vikram Vamshi" <(E-Mail Removed)> wrote in message
news:#LW$(E-Mail Removed)...
> Hi,
> I was trying to find documenation for the error messages and the
> corresponding error numbers for the errors that are raised by the .net

data
> provider for SQL Server.
>
> For example:
> The following is the message when the provider times out
> Timeout expired. The timeout period elapsed prior to completion of the
> operation or the server is not responding.
> and the corresponding error number is:-2
>
> I was trying to get a list of all the possible errors along with their

error
> numbers, so that we can handle them in our code if it is appropriate.
> It would help us a lot if someone can point me to the documentation.
>
> Thanks in advance.
> --
> Vikram Vamshi
> Database Engineer
> Eclipsys Corporation
>
>



 
Reply With Quote
 
Vikram Vamshi
Guest
Posts: n/a
 
      11th Aug 2005
I was looking for the errors in ADO.NET 1.1 (specifically the ones for the
sql server provider)
Errors like 'Time out expired' and initiated from the client side.
--
Vikram Vamshi
Database Engineer
Eclipsys Corporation

"Sahil Malik [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Okay, before I can answer the below, I need to ask you another question
> :-)
>
> Are you talking about errors that occur in TSQL? (Because that is what
> kinda
> sounds like from your description - Error Numbers i.e), or are you talking
> about Errors that occur in ADO.NET?
>
> Also, if it is ADO.NET, then are you talking about ADO.NET 2.0 or 1.1?
>
>
> --
>
> - Sahil Malik [MVP]
> ADO.NET 2.0 book -
> http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
> ----------------------------------------------------------------------------
> ---------------
>
> "Vikram Vamshi" <(E-Mail Removed)> wrote in message
> news:#LW$(E-Mail Removed)...
>> Hi,
>> I was trying to find documenation for the error messages and the
>> corresponding error numbers for the errors that are raised by the .net

> data
>> provider for SQL Server.
>>
>> For example:
>> The following is the message when the provider times out
>> Timeout expired. The timeout period elapsed prior to completion of the
>> operation or the server is not responding.
>> and the corresponding error number is:-2
>>
>> I was trying to get a list of all the possible errors along with their

> error
>> numbers, so that we can handle them in our code if it is appropriate.
>> It would help us a lot if someone can point me to the documentation.
>>
>> Thanks in advance.
>> --
>> Vikram Vamshi
>> Database Engineer
>> Eclipsys Corporation
>>
>>

>
>



 
Reply With Quote
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      11th Aug 2005
Okay so the errors are basically Exceptions, and what I'd recommend is to
pick up a tool like Reflector and try and understand the exception structure
first.

Many of these errors donot have error numbers because they are exceptions.

Once you filter out the exception structure, then you can segregate all the
errors raised by the underlying Sql Server binaries under SqlException, and
those you can get a list from SQL server books online.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
----------------------------------------------------------------------------
---------------

"Vikram Vamshi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I was looking for the errors in ADO.NET 1.1 (specifically the ones for the
> sql server provider)
> Errors like 'Time out expired' and initiated from the client side.
> --
> Vikram Vamshi
> Database Engineer
> Eclipsys Corporation
>
> "Sahil Malik [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Okay, before I can answer the below, I need to ask you another question
> > :-)
> >
> > Are you talking about errors that occur in TSQL? (Because that is what
> > kinda
> > sounds like from your description - Error Numbers i.e), or are you

talking
> > about Errors that occur in ADO.NET?
> >
> > Also, if it is ADO.NET, then are you talking about ADO.NET 2.0 or 1.1?
> >
> >
> > --
> >
> > - Sahil Malik [MVP]
> > ADO.NET 2.0 book -
> > http://codebetter.com/blogs/sahil.ma.../13/63199.aspx

>
> --------------------------------------------------------------------------

--
> > ---------------
> >
> > "Vikram Vamshi" <(E-Mail Removed)> wrote in message
> > news:#LW$(E-Mail Removed)...
> >> Hi,
> >> I was trying to find documenation for the error messages and the
> >> corresponding error numbers for the errors that are raised by the .net

> > data
> >> provider for SQL Server.
> >>
> >> For example:
> >> The following is the message when the provider times out
> >> Timeout expired. The timeout period elapsed prior to completion of the
> >> operation or the server is not responding.
> >> and the corresponding error number is:-2
> >>
> >> I was trying to get a list of all the possible errors along with their

> > error
> >> numbers, so that we can handle them in our code if it is appropriate.
> >> It would help us a lot if someone can point me to the documentation.
> >>
> >> Thanks in advance.
> >> --
> >> Vikram Vamshi
> >> Database Engineer
> >> Eclipsys Corporation
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
Vikram Vamshi
Guest
Posts: n/a
 
      11th Aug 2005
Maybe I was not clear earlier.
If the error was raised by SQL Server, the SqlException that generated has
the proper error message and number documented in SQL books online, and our
code handles these properly.

The problem is only if it is a client side exception (like timeout expired).
I need to know all the possible client side exceptions the provider can
raise, so that we can determine how to react to it. Say if it is a driver
timeout, we will retry couple of times by incrementing the timeout value.

--
Vikram Vamshi
Database Engineer
Eclipsys Corporation
"Sahil Malik [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Okay so the errors are basically Exceptions, and what I'd recommend is to
> pick up a tool like Reflector and try and understand the exception
> structure
> first.
>
> Many of these errors donot have error numbers because they are exceptions.
>
> Once you filter out the exception structure, then you can segregate all
> the
> errors raised by the underlying Sql Server binaries under SqlException,
> and
> those you can get a list from SQL server books online.
>
> - Sahil Malik [MVP]
> ADO.NET 2.0 book -
> http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
> ----------------------------------------------------------------------------
> ---------------
>
> "Vikram Vamshi" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> I was looking for the errors in ADO.NET 1.1 (specifically the ones for
>> the
>> sql server provider)
>> Errors like 'Time out expired' and initiated from the client side.
>> --
>> Vikram Vamshi
>> Database Engineer
>> Eclipsys Corporation
>>
>> "Sahil Malik [MVP]" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Okay, before I can answer the below, I need to ask you another question
>> > :-)
>> >
>> > Are you talking about errors that occur in TSQL? (Because that is what
>> > kinda
>> > sounds like from your description - Error Numbers i.e), or are you

> talking
>> > about Errors that occur in ADO.NET?
>> >
>> > Also, if it is ADO.NET, then are you talking about ADO.NET 2.0 or 1.1?
>> >
>> >
>> > --
>> >
>> > - Sahil Malik [MVP]
>> > ADO.NET 2.0 book -
>> > http://codebetter.com/blogs/sahil.ma.../13/63199.aspx

>>
>> --------------------------------------------------------------------------

> --
>> > ---------------
>> >
>> > "Vikram Vamshi" <(E-Mail Removed)> wrote in message
>> > news:#LW$(E-Mail Removed)...
>> >> Hi,
>> >> I was trying to find documenation for the error messages and the
>> >> corresponding error numbers for the errors that are raised by the .net
>> > data
>> >> provider for SQL Server.
>> >>
>> >> For example:
>> >> The following is the message when the provider times out
>> >> Timeout expired. The timeout period elapsed prior to completion of
>> >> the
>> >> operation or the server is not responding.
>> >> and the corresponding error number is:-2
>> >>
>> >> I was trying to get a list of all the possible errors along with their
>> > error
>> >> numbers, so that we can handle them in our code if it is appropriate.
>> >> It would help us a lot if someone can point me to the documentation.
>> >>
>> >> Thanks in advance.
>> >> --
>> >> Vikram Vamshi
>> >> Database Engineer
>> >> Eclipsys Corporation
>> >>
>> >>
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Mark Ashton
Guest
Posts: n/a
 
      13th Aug 2005
For System.Data.SqlClient, it will generally throw a SqlException if the
error comes from the server or for things like timeout. To distinguish
between the two, you have to start looking at the error codes and messages.

Other possible exceptions are more programming like mistakes with exceptions
like InvalidArgumentException & InvalidOperationException.

--
This posting is provided "AS IS", with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Vikram Vamshi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Maybe I was not clear earlier.
> If the error was raised by SQL Server, the SqlException that generated has
> the proper error message and number documented in SQL books online, and
> our code handles these properly.
>
> The problem is only if it is a client side exception (like timeout
> expired).
> I need to know all the possible client side exceptions the provider can
> raise, so that we can determine how to react to it. Say if it is a driver
> timeout, we will retry couple of times by incrementing the timeout value.
>
> --
> Vikram Vamshi
> Database Engineer
> Eclipsys Corporation
> "Sahil Malik [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Okay so the errors are basically Exceptions, and what I'd recommend is to
>> pick up a tool like Reflector and try and understand the exception
>> structure
>> first.
>>
>> Many of these errors donot have error numbers because they are
>> exceptions.
>>
>> Once you filter out the exception structure, then you can segregate all
>> the
>> errors raised by the underlying Sql Server binaries under SqlException,
>> and
>> those you can get a list from SQL server books online.
>>
>> - Sahil Malik [MVP]
>> ADO.NET 2.0 book -
>> http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
>> ----------------------------------------------------------------------------
>> ---------------
>>
>> "Vikram Vamshi" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> I was looking for the errors in ADO.NET 1.1 (specifically the ones for
>>> the
>>> sql server provider)
>>> Errors like 'Time out expired' and initiated from the client side.
>>> --
>>> Vikram Vamshi
>>> Database Engineer
>>> Eclipsys Corporation
>>>
>>> "Sahil Malik [MVP]" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>> > Okay, before I can answer the below, I need to ask you another
>>> > question
>>> > :-)
>>> >
>>> > Are you talking about errors that occur in TSQL? (Because that is what
>>> > kinda
>>> > sounds like from your description - Error Numbers i.e), or are you

>> talking
>>> > about Errors that occur in ADO.NET?
>>> >
>>> > Also, if it is ADO.NET, then are you talking about ADO.NET 2.0 or 1.1?
>>> >
>>> >
>>> > --
>>> >
>>> > - Sahil Malik [MVP]
>>> > ADO.NET 2.0 book -
>>> > http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
>>>
>>> --------------------------------------------------------------------------

>> --
>>> > ---------------
>>> >
>>> > "Vikram Vamshi" <(E-Mail Removed)> wrote in message
>>> > news:#LW$(E-Mail Removed)...
>>> >> Hi,
>>> >> I was trying to find documenation for the error messages and the
>>> >> corresponding error numbers for the errors that are raised by the
>>> >> .net
>>> > data
>>> >> provider for SQL Server.
>>> >>
>>> >> For example:
>>> >> The following is the message when the provider times out
>>> >> Timeout expired. The timeout period elapsed prior to completion of
>>> >> the
>>> >> operation or the server is not responding.
>>> >> and the corresponding error number is:-2
>>> >>
>>> >> I was trying to get a list of all the possible errors along with
>>> >> their
>>> > error
>>> >> numbers, so that we can handle them in our code if it is appropriate.
>>> >> It would help us a lot if someone can point me to the documentation.
>>> >>
>>> >> Thanks in advance.
>>> >> --
>>> >> Vikram Vamshi
>>> >> Database Engineer
>>> >> Eclipsys Corporation
>>> >>
>>> >>
>>> >
>>> >
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server Query Analyzer faster than ADO.Net SQL Data Provider vidya Microsoft Dot NET 2 7th Jan 2005 06:10 PM
Server Explorer - Add Data Connection - Add new Data Provider to l =?Utf-8?B?TWFyc2hh?= Microsoft C# .NET 1 5th Jan 2005 07:33 PM
Re: Ado.net performance question (SQL server vs OleDB data provider) Jonathan Allen Microsoft ADO .NET 0 4th Aug 2004 11:33 PM
.NET Framework Data Provider for SQL Server Doug Microsoft ASP .NET 2 10th Nov 2003 09:00 PM
Oracle Data Provider for .NET: Data provider internal error(-3000) Heidi Hundåla Microsoft ADO .NET 1 29th Oct 2003 02:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 PM.