PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Strange Data Truncation problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Strange Data Truncation problem

Réponse
 
LinkBack Outils de la discussion
Vieux 05/09/2008, 23h42   #1
Chris Wood
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Strange Data Truncation problem

We are seeing an 8152 truncation message on one server that is not showing
on another server. This message should be showing up as we are trying to
squeeze 9 characters into a 7 character column. As this showed up in
Acceptance testing when it works in Development I was wondering what options
could be set to stop the warning. To the best of my knowledge the stored
proc has the same ANSI settings set in both servers.

I believe that it would be the ANSI_WARNINGS setting.

Thanks

Chris


  Réponse avec citation
Vieux 06/09/2008, 18h46   #2
Dan Guzman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange Data Truncation problem

> Acceptance testing when it works in Development I was wondering what
> options could be set to stop the warning. To the best of my knowledge the
> stored proc has the same ANSI settings set in both servers.
>
> I believe that it would be the ANSI_WARNINGS setting.


ANSI_NULLS and QUOTED_IDENTIFIERS are locked in when the stored procedure is
created. However, ANSI_WARNINGS is connection specific and is typically set
at the connection level using SET ANSI_WARNINGS ON. Note that an ODBC DSNs
have a checkbox to set this so perhaps that is the difference.

--
Hope this s.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"Chris Wood" <anonymous@microsoft.com> wrote in message
news:%23zmWQB6DJHA.4720@TK2MSFTNGP02.phx.gbl...
> We are seeing an 8152 truncation message on one server that is not showing
> on another server. This message should be showing up as we are trying to
> squeeze 9 characters into a 7 character column. As this showed up in
> Acceptance testing when it works in Development I was wondering what
> options could be set to stop the warning. To the best of my knowledge the
> stored proc has the same ANSI settings set in both servers.
>
> I believe that it would be the ANSI_WARNINGS setting.
>
> Thanks
>
> Chris
>


  Réponse avec citation
Vieux 10/09/2008, 17h47   #3
Chris Wood
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange Data Truncation problem

Thanks Dan.

The only difference I can see is that development is using Standard Edition
and the acceptance server is using Enterprise Edition. Could this make the
difference?

Thanks

Chris

"Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
news:upws1AEEJHA.680@TK2MSFTNGP03.phx.gbl...
>> Acceptance testing when it works in Development I was wondering what
>> options could be set to stop the warning. To the best of my knowledge the
>> stored proc has the same ANSI settings set in both servers.
>>
>> I believe that it would be the ANSI_WARNINGS setting.

>
> ANSI_NULLS and QUOTED_IDENTIFIERS are locked in when the stored procedure
> is created. However, ANSI_WARNINGS is connection specific and is
> typically set at the connection level using SET ANSI_WARNINGS ON. Note
> that an ODBC DSNs have a checkbox to set this so perhaps that is the
> difference.
>
> --
> Hope this s.
>
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
>
> "Chris Wood" <anonymous@microsoft.com> wrote in message
> news:%23zmWQB6DJHA.4720@TK2MSFTNGP02.phx.gbl...
>> We are seeing an 8152 truncation message on one server that is not
>> showing on another server. This message should be showing up as we are
>> trying to squeeze 9 characters into a 7 character column. As this showed
>> up in Acceptance testing when it works in Development I was wondering
>> what options could be set to stop the warning. To the best of my
>> knowledge the stored proc has the same ANSI settings set in both servers.
>>
>> I believe that it would be the ANSI_WARNINGS setting.
>>
>> Thanks
>>
>> Chris
>>

>



  Réponse avec citation
Vieux 11/09/2008, 03h51   #4
Dan Guzman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Strange Data Truncation problem

> The only difference I can see is that development is using Standard
> Edition and the acceptance server is using Enterprise Edition. Could this
> make the difference?


I can't think of what the edition would make a difference here. You might
check sys.dm_exec_sessions in both environments to verify the session
settings are as expected.

--
Hope this s.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"Chris Wood" <anonymous@microsoft.com> wrote in message
news:%23gwxOy1EJHA.4712@TK2MSFTNGP02.phx.gbl...
> Thanks Dan.
>
> The only difference I can see is that development is using Standard
> Edition and the acceptance server is using Enterprise Edition. Could this
> make the difference?
>
> Thanks
>
> Chris
>
> "Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
> news:upws1AEEJHA.680@TK2MSFTNGP03.phx.gbl...
>>> Acceptance testing when it works in Development I was wondering what
>>> options could be set to stop the warning. To the best of my knowledge
>>> the stored proc has the same ANSI settings set in both servers.
>>>
>>> I believe that it would be the ANSI_WARNINGS setting.

>>
>> ANSI_NULLS and QUOTED_IDENTIFIERS are locked in when the stored procedure
>> is created. However, ANSI_WARNINGS is connection specific and is
>> typically set at the connection level using SET ANSI_WARNINGS ON. Note
>> that an ODBC DSNs have a checkbox to set this so perhaps that is the
>> difference.
>>
>> --
>> Hope this s.
>>
>> Dan Guzman
>> SQL Server MVP
>> http://weblogs.sqlteam.com/dang/
>>
>> "Chris Wood" <anonymous@microsoft.com> wrote in message
>> news:%23zmWQB6DJHA.4720@TK2MSFTNGP02.phx.gbl...
>>> We are seeing an 8152 truncation message on one server that is not
>>> showing on another server. This message should be showing up as we are
>>> trying to squeeze 9 characters into a 7 character column. As this showed
>>> up in Acceptance testing when it works in Development I was wondering
>>> what options could be set to stop the warning. To the best of my
>>> knowledge the stored proc has the same ANSI settings set in both
>>> servers.
>>>
>>> I believe that it would be the ANSI_WARNINGS setting.
>>>
>>> Thanks
>>>
>>> Chris
>>>

>>

>
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h24.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10938 seconds with 12 queries