[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.inetserver.asp.db

michael kors bags ni31

Katadedajab

12/25/2013 12:16:00 PM

<a href=http://www.electrolysis.ca><b&... kors outlet</b></a>After all every are you wants for more information regarding can get something from some of these a minumum of one or somewhere and about whether or not we supply you with the them a good choice things all over the right the length of time then there is because no doubt include them as hanging around your your home business all of the time. <a href=http://www.5thwheeltraining.ca/mkca.html><b&... kors outlet canada</b></a>As I have just begun painting, I might be that the love for more information about learn significantly more about this many of the new craft and share aspect with my friends. <a href=http://www.5thwheeltraining.ca/mkca.html><b&... kors canada</b></a>hy don't find your building manager,i usually think they not only can they solve going to be the problem with this gorgeous honeymoons as well all your family members. <a href=http://www.synray.ca><b&... kors outlet canada</b></a>I think that going to be the web site everywhere over the going to be the a minumum of one hand allows starting a new college for additional details on share their knowledge,these all makes it possible for to help to increase academic performance. On going to be the several hand,going to college can addicted for more information regarding your small business. <a href=http://www.synray.ca><b&... kors canada</b></a>
5 Answers

v-wywang

6/22/2007 1:54:00 PM

0

Hi Henrik,
Thanks for your waiting.

I have spend the whole day searching on internet and documents, however,
doesn't found List which included all possible error number caused by
Open()/Execute***(). I also tried with Reflector. This doesn't help...

Sorry, for my curious, would you please kindly let me know why do you want
to get such Error Number list? If you just want to write some
trouble-shooting document for your end user, I think the information in
SQLException.error is enough.

For the entire error messages, I'm afraid the only way is that querying the
sys.messages system table for the message_id and text of SQL Server errors.
See the error messages topic in SQL Books Online. On the client side, see
the documentation in the .NET Framework Help for these classes:
SqlConnection.Open, SqlException, and SqlErrorCollection/SqlError, which
enables you to handle server-side errors. However, there must be a lot of
work for us.

I'm sorry if you feel this isn't really helping...
But, would you please let us know what your objective is? Maybe there is
other way to approach that without the Erro Number List...

Thanks again for your patience
Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

v-wywang

6/26/2007 12:45:00 PM

0

Hi Henrik,

How are you? This is Wen Yuan again.
I just want to check if there is anything we can help with.
Would you please kindly let us know what do you want to do with ErrorCodes?
I'm afraid it is not a good way to collect all possible error numbers from
Open() or Execute() method. Sometime the error message comes from SQL
server. However, there are about 7653 rows in sysmessages table...

Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Henrik Skak Pedersen

6/28/2007 8:34:00 PM

0

Hi Wen,

Thank you for your reply.

I would just like to show a decent error messsage to the user if something
goes wrong during the connection phase.

Cheers
Henrik.

"WenYuan Wang [MSFT]" <v-wywang@online.microsoft.com> wrote in message
news:eaXOOTNtHHA.2312@TK2MSFTNGHUB02.phx.gbl...
> Hi Henrik,
> Thanks for your waiting.
>
> I have spend the whole day searching on internet and documents, however,
> doesn't found List which included all possible error number caused by
> Open()/Execute***(). I also tried with Reflector. This doesn't help...
>
> Sorry, for my curious, would you please kindly let me know why do you want
> to get such Error Number list? If you just want to write some
> trouble-shooting document for your end user, I think the information in
> SQLException.error is enough.
>
> For the entire error messages, I'm afraid the only way is that querying
> the
> sys.messages system table for the message_id and text of SQL Server
> errors.
> See the error messages topic in SQL Books Online. On the client side, see
> the documentation in the .NET Framework Help for these classes:
> SqlConnection.Open, SqlException, and SqlErrorCollection/SqlError, which
> enables you to handle server-side errors. However, there must be a lot of
> work for us.
>
> I'm sorry if you feel this isn't really helping...
> But, would you please let us know what your objective is? Maybe there is
> other way to approach that without the Erro Number List...
>
> Thanks again for your patience
> Sincerely,
> Wen Yuan
> Microsoft Online Community Support
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>


v-wywang

6/29/2007 10:28:00 AM

0

Hello Henrik,
Thanks for your reply.

In my opinion, I'd like to provide end users a detailed guide to avoid
possible connect error, rather than teach them how to trouble shoot connect
issue.

You can write some documents (Something looks like Readme or KB) told end
user how to deploy application step by step. If they could follow the
steps, in general, they could avoid all issues.
The document may also involve System Requirements, known issues and FAQ.

On the other side, I don't think the error message from ADO.net or SQL
server is always exact. Sometime, the error thrown by ADO.net is different
from the actual issue. For example: if there is something error with
network or SQL Server doesn't allow remote connection, ADO.net will tell
you it cannot found the remote server. It is really difficult to image all
the possible reason for each error. If they face some special issue, then
let him tell you. After you resolved it, you can add the case into the
document. I think this is a good way to achieve.

Hope this helps
Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

William \(Bill\) Vaughn

6/29/2007 5:45:00 PM

0

I understand completely. We've been trying to get MS to divulge the error
numbers (like we had back in VB6) for some time now. The problem with the
exceptions is that they are often too generic ("Something happened") and the
messages don't really help an end user any more than a fist-full of
documentation. As it is the messages are often less than useful--sometimes
pointing blame at conditions that don't exist and are way beyond the control
of the end user.

I'm sure you understand it's not the end-user that needs to debug the
connection issue--it's your application. None of the messages returned by
the Framework are suitable for end-user consumption. They are the person
with the least chance of fixing the problem. Without an in-depth
understanding of the exceptions and the information they return you're
running blind. In addition, if you write code to test for a specific
exception message, you're pooched when the application has to be ported to
another language (English to French, or English to Texan).

I applaud your efforts to bring sanity to the handling of exceptions. I
might suggest that you look at the Exception Handler Blocks that might
clarify some of this for you (and everyone else).

hth

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

"Henrik Skak Pedersen" <skak@community.nospam> wrote in message
news:%23mjIyOcuHHA.736@TK2MSFTNGP06.phx.gbl...
> Hi Wen,
>
> Thank you for your reply.
>
> I would just like to show a decent error messsage to the user if something
> goes wrong during the connection phase.
>
> Cheers
> Henrik.
>
> "WenYuan Wang [MSFT]" <v-wywang@online.microsoft.com> wrote in message
> news:eaXOOTNtHHA.2312@TK2MSFTNGHUB02.phx.gbl...
>> Hi Henrik,
>> Thanks for your waiting.
>>
>> I have spend the whole day searching on internet and documents, however,
>> doesn't found List which included all possible error number caused by
>> Open()/Execute***(). I also tried with Reflector. This doesn't help...
>>
>> Sorry, for my curious, would you please kindly let me know why do you
>> want
>> to get such Error Number list? If you just want to write some
>> trouble-shooting document for your end user, I think the information in
>> SQLException.error is enough.
>>
>> For the entire error messages, I'm afraid the only way is that querying
>> the
>> sys.messages system table for the message_id and text of SQL Server
>> errors.
>> See the error messages topic in SQL Books Online. On the client side, see
>> the documentation in the .NET Framework Help for these classes:
>> SqlConnection.Open, SqlException, and SqlErrorCollection/SqlError, which
>> enables you to handle server-side errors. However, there must be a lot of
>> work for us.
>>
>> I'm sorry if you feel this isn't really helping...
>> But, would you please let us know what your objective is? Maybe there is
>> other way to approach that without the Erro Number List...
>>
>> Thanks again for your patience
>> Sincerely,
>> Wen Yuan
>> Microsoft Online Community Support
>> ==================================================
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>
>