Showing posts with label bug. Show all posts
Showing posts with label bug. Show all posts

Thursday, March 8, 2012

Absurdal affair in trigger file

Hi!


I found a bug in my trigger and i don't know why it is error.

See small report:

After executing following code's fragment in my trigger:

print '************** koszt sadowe *****************' + str(@.orzecz_koszty_sadowe)
print '************** koszt mks *****************' + str(@.orzecz_mks_przyznane)
print '************** koszt korespondencji *****************' + str(@.orzecz_zasadzona_zaliczka_na_koresp)

-- Potrzebne do wstawienia pozycji 'Koszty sadowe'
IF @.orzecz_koszty_sadowe IS NULL
SET @.orzecz_koszty_sadowe = 0
IF @.orzecz_mks_przyznane IS NULL
SET @.orzecz_mks_przyznane = 0

IF @.orzecz_oplaty_pozostale IS NULL
SET @.orzecz_oplaty_pozostale = 0

IF @.orzecz_zasadzona_zaliczka_na_koresp IS NULL
SET @.orzecz_zasadzona_zaliczka_na_koresp = 0

-- Koniec sprawdzanie czy sa NULL


print '************** koszt sadowe *****************' + str(@.orzecz_koszty_sadowe)
print '************** koszt mks *****************' + str(@.orzecz_mks_przyznane)
print '************** koszt korespondencji *****************' + str(@.orzecz_zasadzona_zaliczka_na_koresp)

we have on consolle following result:

************** koszt sadowe ***************** 145
************** koszt mks ***************** 123
************** koszt korespondencji ***************** 43
************** koszt sadowe ***************** 0
************** koszt mks ***************** 123
************** koszt korespondencji ***************** 43


So, variable @.orzecz_koszty_sadowe was set to 0.
Previously it was 145, so why in the if statement it values to NULL?

After small change, code looks like this:

print '************** koszt sadowe *****************' + str(@.orzecz_koszty_sadowe)
print '************** koszt mks *****************' + str(@.orzecz_mks_przyznane)
print '************** koszt korespondencji *****************' + str(@.orzecz_zasadzona_zaliczka_na_koresp)

-- Potrzebne do wstawienia pozycji 'Koszty sadowe'
IF @.orzecz_koszty_sadowe IS NULL
SET @.orzecz_koszty_sadowe = 0
IF @.orzecz_mks_przyznane IS NULL
SET @.orzecz_mks_przyznane = 0

IF @.orzecz_oplaty_pozostale IS NULL
SET @.orzecz_oplaty_pozostale = 0

IF @.orzecz_zasadzona_zaliczka_na_koresp IS NULL
SET @.orzecz_zasadzona_zaliczka_na_koresp = 0

-- Koniec sprawdzanie czy sa NULL

print '************** koszt sadowe *****************' + str(@.orzecz_koszty_sadowe)
print '************** koszt mks *****************' + str(@.orzecz_mks_przyznane)
print '************** koszt korespondencji *****************' + str(@.orzecz_zasadzona_zaliczka_na_koresp)

and the result is following:

************** koszt sadowe ***************** 145
************** koszt mks ***************** 123
************** koszt korespondencji ***************** 43
************** koszt sadowe ***************** 145
************** koszt mks ***************** 123
************** koszt korespondencji ***************** 43



So the result is proper. Now I explain the difference between
above listings. Second listing arise from first by following
transformation:

1. Place the cursor after last character of comment preceding
first IF statement (ie. after ....pozycji 'Koszty sadowe')
2. Press Enter key
3. Press Delete key (the line comes back, to initial position)

And that's all :) There's no optical difference between two
listings. However first works bad, and the second works good.

Any idea? Explanation?
I used SQL Server 2000.
Best regards
Walter

Could you please post a script that demonstrates the problem?|||Probably there was a Unix-style newline in your SQL. The query editor displays CHR(13) without CHR(10) as a new line, but the SQL processor considers the text before and after CHR(13) to be part of the same line if there is no CHAR(10).

So the SQL processor interpreted
-- Potrzebne do wstawienia pozycji 'Koszty sadowe'
IF @.orzecz_koszty_sadowe IS NULL

to mean the same thing as

-- Potrzebne do wstawienia pozycji 'Koszty sadowe' IF @.orzecz_koszty_sadowe IS NULL

The typing you did changed the CHR(13) to a valid 2-character Windows newline marker.

Steve Kass
Drew University

Thursday, February 16, 2012

About ms06-040 memory bug

Hi ,
i have read this KB but this applied also to SQL with AWE enabled for more
then 4 Gbyte ?
http://support.microsoft.com/kb/924054
ThanksHi,
It is a Windows Server bug, regardless which application you launched on
the Server.
Thanks.
Best regards,
Vincent Xu
Microsoft Online Partner Support
========================================
==============
Get Secure! - www.microsoft.com/security
========================================
==============
When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties,and confers no rights.
========================================
==============
--[vbcol=seagreen]
more[vbcol=seagreen]|||"Vincent Xu [MSFT]" <v-xuwen@.online.microsoft.com> wrote in message
news:pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl...
> Hi,
> It is a Windows Server bug, regardless which application you launched on
> the Server.
So is affecting also SQL Server with my configuration ?
Bye !|||Hi,
Glad to hear the information I provided is helpful.
Thanks.
Best regards,
Vincent Xu
Microsoft Online Partner Support
========================================
==============
Get Secure! - www.microsoft.com/security
========================================
==============
When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties,and confers no rights.
========================================
==============
--[vbcol=seagreen]
<pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl>[vbcol=seagreen]|||Thanks!
"Vincent Xu [MSFT]" <v-xuwen@.online.microsoft.com> wrote in message
news:FoE0V8nxGHA.3392@.TK2MSFTNGXA01.phx.gbl...
> Hi,
> Glad to hear the information I provided is helpful.
> Thanks.
>
> Best regards,
> Vincent Xu
> Microsoft Online Partner Support
> ========================================
==============
> Get Secure! - www.microsoft.com/security
> ========================================
==============
> When responding to posts, please "Reply to Group" via your newsreader so
> that others
> may learn and benefit from this issue.
> ========================================
==============
> This posting is provided "AS IS" with no warranties,and confers no rights.
> ========================================
==============
>
> --
> <pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl>
>|||Vincent,
Has anyone found a solution for this bug. We have been trying partner
support channels but keep getting tranferred to different groups over the
last two weeks and we still have customers that are having the problem. even
with the hotfix applied.
I would appreciate any help you could provide.
"Vincent Xu [MSFT]" wrote:

> Hi,
> Glad to hear the information I provided is helpful.
> Thanks.
>
> Best regards,
> Vincent Xu
> Microsoft Online Partner Support
> ========================================
==============
> Get Secure! - www.microsoft.com/security
> ========================================
==============
> When responding to posts, please "Reply to Group" via your newsreader so
> that others
> may learn and benefit from this issue.
> ========================================
==============
> This posting is provided "AS IS" with no warranties,and confers no rights.
> ========================================
==============
>
> --
> <pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl>
>

About ms06-040 memory bug

Hi ,
i have read this KB but this applied also to SQL with AWE enabled for more
then 4 Gbyte ?
http://support.microsoft.com/kb/924054
ThanksHi,
It is a Windows Server bug, regardless which application you launched on
the Server.
Thanks.
Best regards,
Vincent Xu
Microsoft Online Partner Support
======================================================
Get Secure! - www.microsoft.com/security
======================================================When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
======================================================This posting is provided "AS IS" with no warranties,and confers no rights.
======================================================>>From: <io.com@.newsgroup.nospam>
>>Subject: About ms06-040 memory bug
>>Date: Mon, 21 Aug 2006 22:39:25 +0200
>>Lines: 10
>>X-Priority: 3
>>X-MSMail-Priority: Normal
>>X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
>>X-RFC2646: Format=Flowed; Original
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
>>Message-ID: <exuolHWxGHA.3964@.TK2MSFTNGP04.phx.gbl>
>>Newsgroups: microsoft.public.sqlserver.server
>>NNTP-Posting-Host: 62.241.4.149
>>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP04.phx.gbl
>>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.server:442636
>>X-Tomcat-NG: microsoft.public.sqlserver.server
>>Hi ,
>>i have read this KB but this applied also to SQL with AWE enabled for
more
>>then 4 Gbyte ?
>>http://support.microsoft.com/kb/924054
>>Thanks
>>|||"Vincent Xu [MSFT]" <v-xuwen@.online.microsoft.com> wrote in message
news:pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl...
> Hi,
> It is a Windows Server bug, regardless which application you launched on
> the Server.
So is affecting also SQL Server with my configuration ?
Bye !|||Hi,
Glad to hear the information I provided is helpful.
Thanks.
Best regards,
Vincent Xu
Microsoft Online Partner Support
======================================================Get Secure! - www.microsoft.com/security
======================================================When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
======================================================This posting is provided "AS IS" with no warranties,and confers no rights.
======================================================>>From: <io.com@.newsgroup.nospam>
>>References: <exuolHWxGHA.3964@.TK2MSFTNGP04.phx.gbl>
<pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl>
>>Subject: Re: About ms06-040 memory bug
>>Date: Tue, 22 Aug 2006 10:09:13 +0200
>>Lines: 12
>>X-Priority: 3
>>X-MSMail-Priority: Normal
>>X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
>>X-RFC2646: Format=Flowed; Original
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
>>Message-ID: <OglHDJcxGHA.1224@.TK2MSFTNGP03.phx.gbl>
>>Newsgroups: microsoft.public.sqlserver.server
>>NNTP-Posting-Host: 62.241.4.149
>>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP03.phx.gbl
>>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.server:442675
>>X-Tomcat-NG: microsoft.public.sqlserver.server
>>"Vincent Xu [MSFT]" <v-xuwen@.online.microsoft.com> wrote in message
>>news:pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl...
>> Hi,
>> It is a Windows Server bug, regardless which application you launched on
>> the Server.
>>So is affecting also SQL Server with my configuration ?
>>Bye !
>>|||Thanks!
"Vincent Xu [MSFT]" <v-xuwen@.online.microsoft.com> wrote in message
news:FoE0V8nxGHA.3392@.TK2MSFTNGXA01.phx.gbl...
> Hi,
> Glad to hear the information I provided is helpful.
> Thanks.
>
> Best regards,
> Vincent Xu
> Microsoft Online Partner Support
> ======================================================> Get Secure! - www.microsoft.com/security
> ======================================================> When responding to posts, please "Reply to Group" via your newsreader so
> that others
> may learn and benefit from this issue.
> ======================================================> This posting is provided "AS IS" with no warranties,and confers no rights.
> ======================================================>
> --
>>From: <io.com@.newsgroup.nospam>
>>References: <exuolHWxGHA.3964@.TK2MSFTNGP04.phx.gbl>
> <pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl>
>>Subject: Re: About ms06-040 memory bug
>>Date: Tue, 22 Aug 2006 10:09:13 +0200
>>Lines: 12
>>X-Priority: 3
>>X-MSMail-Priority: Normal
>>X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
>>X-RFC2646: Format=Flowed; Original
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
>>Message-ID: <OglHDJcxGHA.1224@.TK2MSFTNGP03.phx.gbl>
>>Newsgroups: microsoft.public.sqlserver.server
>>NNTP-Posting-Host: 62.241.4.149
>>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP03.phx.gbl
>>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.server:442675
>>X-Tomcat-NG: microsoft.public.sqlserver.server
>>"Vincent Xu [MSFT]" <v-xuwen@.online.microsoft.com> wrote in message
>>news:pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl...
>> Hi,
>> It is a Windows Server bug, regardless which application you launched
>> on
>> the Server.
>>So is affecting also SQL Server with my configuration ?
>>Bye !
>>
>|||Vincent,
Has anyone found a solution for this bug. We have been trying partner
support channels but keep getting tranferred to different groups over the
last two weeks and we still have customers that are having the problem. even
with the hotfix applied.
I would appreciate any help you could provide.
"Vincent Xu [MSFT]" wrote:
> Hi,
> Glad to hear the information I provided is helpful.
> Thanks.
>
> Best regards,
> Vincent Xu
> Microsoft Online Partner Support
> ======================================================> Get Secure! - www.microsoft.com/security
> ======================================================> When responding to posts, please "Reply to Group" via your newsreader so
> that others
> may learn and benefit from this issue.
> ======================================================> This posting is provided "AS IS" with no warranties,and confers no rights.
> ======================================================>
> --
> >>From: <io.com@.newsgroup.nospam>
> >>References: <exuolHWxGHA.3964@.TK2MSFTNGP04.phx.gbl>
> <pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl>
> >>Subject: Re: About ms06-040 memory bug
> >>Date: Tue, 22 Aug 2006 10:09:13 +0200
> >>Lines: 12
> >>X-Priority: 3
> >>X-MSMail-Priority: Normal
> >>X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
> >>X-RFC2646: Format=Flowed; Original
> >>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
> >>Message-ID: <OglHDJcxGHA.1224@.TK2MSFTNGP03.phx.gbl>
> >>Newsgroups: microsoft.public.sqlserver.server
> >>NNTP-Posting-Host: 62.241.4.149
> >>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP03.phx.gbl
> >>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.server:442675
> >>X-Tomcat-NG: microsoft.public.sqlserver.server
> >>
> >>"Vincent Xu [MSFT]" <v-xuwen@.online.microsoft.com> wrote in message
> >>news:pHl$wtZxGHA.1592@.TK2MSFTNGXA01.phx.gbl...
> >> Hi,
> >>
> >> It is a Windows Server bug, regardless which application you launched on
> >> the Server.
> >>
> >>So is affecting also SQL Server with my configuration ?
> >>
> >>Bye !
> >>
> >>
> >>
>