Hi people
I'm trying to change the SQL Server service account to a domain account and
got error 0x80070534. I explain a little...
I have three servers, a DC, another DC with SQL Server installed and a
member server with SQL Server installed.
In the member server I wasable to successfully change the SQL Server service
account (and for other SQL services also), so the doman user has needed
privileges in domain and in member server files.
In the second DC, I installed SQ Server prior to promote it to DC. In this
server, if I use domain administrator account to start SQL Server, it starts
without problem. But I want to make it start with same domain account the
other SQL Server starts. So I try to assign the service account using SQL
Configuration Manager and error 0x80070534 "No mapping between account names
and security IDs was done" appears.
Any help will be geatly appreaciated.
Thank you
AlexYou can get the error when the account can't be mapped to
the correct SID - did you try another account? With the DC
issue, you may also want to try without the domain prefix -
along the lines of ServiceAcctName (instead of
Domain\ServiceAcctName)
-Sue
On Tue, 13 Feb 2007 15:35:01 -0800, Alex Luna
<AlexLuna@.discussions.microsoft.com> wrote:
>Hi people
>I'm trying to change the SQL Server service account to a domain account and
>got error 0x80070534. I explain a little...
>I have three servers, a DC, another DC with SQL Server installed and a
>member server with SQL Server installed.
>In the member server I wasable to successfully change the SQL Server servic
e
>account (and for other SQL services also), so the doman user has needed
>privileges in domain and in member server files.
>In the second DC, I installed SQ Server prior to promote it to DC. In this
>server, if I use domain administrator account to start SQL Server, it start
s
>without problem. But I want to make it start with same domain account the
>other SQL Server starts. So I try to assign the service account using SQL
>Configuration Manager and error 0x80070534 "No mapping between account name
s
>and security IDs was done" appears.
>Any help will be geatly appreaciated.
>Thank you
>Alex|||Hello Sue,
Thank you or your help. If I try using the account name without domain name
prefix, an error 0x80070056 "The specified network password is not correct."
shows up.
I also tried to use another domain account as service account and error
0x80070534 appears. I added the desired service account to domain admin grou
p
and still got the same error. So, only with admin user account I'm able to
start SQL Server.
Any suggestions?
Alex
"Sue Hoegemeier" wrote:
> You can get the error when the account can't be mapped to
> the correct SID - did you try another account? With the DC
> issue, you may also want to try without the domain prefix -
> along the lines of ServiceAcctName (instead of
> Domain\ServiceAcctName)
> -Sue
> On Tue, 13 Feb 2007 15:35:01 -0800, Alex Luna
> <AlexLuna@.discussions.microsoft.com> wrote:
>
>|||When you create a new account, make sure to set the correct
settings for the service account. Then add the account to
the sysadmins server role in SQL Server. Then change the
service account using the Configuration Manager.
-Sue
On Wed, 14 Feb 2007 06:19:03 -0800, Alex Luna
<AlexLuna@.discussions.microsoft.com> wrote:
[vbcol=seagreen]
>Hello Sue,
>Thank you or your help. If I try using the account name without domain name
>prefix, an error 0x80070056 "The specified network password is not correct.
"
>shows up.
>I also tried to use another domain account as service account and error
>0x80070534 appears. I added the desired service account to domain admin gro
up
>and still got the same error. So, only with admin user account I'm able to
>start SQL Server.
>Any suggestions?
>Alex
>"Sue Hoegemeier" wrote:
>|||Thank you Sue, but still got the same error at Configuration Manager.
The account has granted Logon as Service right in the domain and in Domain
Controllers. I had set the same permissions for that account in both SQL
Server. The only difference I see is that the SQL Server where the account i
s
able to start the service is not a domain controller, and the other SQL
Server it is.
-Alex
"Sue Hoegemeier" wrote:
> When you create a new account, make sure to set the correct
> settings for the service account. Then add the account to
> the sysadmins server role in SQL Server. Then change the
> service account using the Configuration Manager.
> -Sue
> On Wed, 14 Feb 2007 06:19:03 -0800, Alex Luna
> <AlexLuna@.discussions.microsoft.com> wrote:
>
>|||Which same error? One error you are getting due to running
SQL Server on a domain controller is using the domain
prefix. When you removed the prefix, the error was:
"The specified network password is not correct."
Which means the password you used for the account was
incorrect.
-Sue
On Thu, 22 Feb 2007 13:02:47 -0800, Alex Luna
<AlexLuna@.discussions.microsoft.com> wrote:
[vbcol=seagreen]
>Thank you Sue, but still got the same error at Configuration Manager.
>The account has granted Logon as Service right in the domain and in Domain
>Controllers. I had set the same permissions for that account in both SQL
>Server. The only difference I see is that the SQL Server where the account
is
>able to start the service is not a domain controller, and the other SQL
>Server it is.
>-Alex
>"Sue Hoegemeier" wrote:
>|||Sue
If I use the prefix, I got error 0x80070534, if I don't use the prefix I got
the error 0x80070056, incorrect network password, but I'm sure the password
is correct. Something similar happens when I use RUN AS command (or screen)
on the DC, if I type the user with domain prefix, it starts the app as that
user (the same I want SQL services start with), but if I don't use the prefi
x
at RUN AS window or command, the password error appears. Maybe, I have a
misconfiguration at domain level...?
Thank you for your help
-Alex
"Sue Hoegemeier" wrote:
[vbcol=seagreen]
> Which same error? One error you are getting due to running
> SQL Server on a domain controller is using the domain
> prefix. When you removed the prefix, the error was:
> "The specified network password is not correct."
> Which means the password you used for the account was
> incorrect.
> -Sue
> On Thu, 22 Feb 2007 13:02:47 -0800, Alex Luna
> <AlexLuna@.discussions.microsoft.com> wrote:
>|||Hi Alex,
Managing this on a domain controller can be a pain. The
permissions don't always get set correctly due to security
issues - it's a different risk when you install SQL Server
on a domain controller.
You'll need to start by walking through all the permissions
for the service account. The following link is probably the
best resource on this:
http://support.microsoft.com/?id=283811
-Sue
On Mon, 26 Feb 2007 08:11:08 -0800, Alex Luna
<AlexLuna@.discussions.microsoft.com> wrote:
[vbcol=seagreen]
>Sue
>If I use the prefix, I got error 0x80070534, if I don't use the prefix I go
t
>the error 0x80070056, incorrect network password, but I'm sure the password
>is correct. Something similar happens when I use RUN AS command (or screen)
>on the DC, if I type the user with domain prefix, it starts the app as that
>user (the same I want SQL services start with), but if I don't use the pref
ix
>at RUN AS window or command, the password error appears. Maybe, I have a
>misconfiguration at domain level...?
>Thank you for your help
>-Alex
>"Sue Hoegemeier" wrote:
>
Showing posts with label explain. Show all posts
Showing posts with label explain. Show all posts
Friday, March 9, 2012
Friday, February 17, 2012
Error
Can anyone explain me this error message and why am i
getting it:
Distributed transaction completed. Either enlist this
session in a new transaction or the NULL transaction.
[SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
7312). The step failed.
thanxs!Hi,
Your transaction may be timing out. By default DTC transaction Timeout is
set to 60 seconds .
If this is not long enough In component services\computers\my computer
right click. select properties and select
the options tab and increase the transaction timeout (you may set this to 0
and the transaction will not time out)
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
transaction Timeout is
services\computers\my computer
may set this to 0
message
Can you tell me where do you get the error?
I thought that you are using some components.
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
getting it:
Distributed transaction completed. Either enlist this
session in a new transaction or the NULL transaction.
[SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
7312). The step failed.
thanxs!Hi,
Your transaction may be timing out. By default DTC transaction Timeout is
set to 60 seconds .
If this is not long enough In component services\computers\my computer
right click. select properties and select
the options tab and increase the transaction timeout (you may set this to 0
and the transaction will not time out)
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
quote:|||where can i find the "component services"'
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!
quote:
>--Original Message--
>Hi,
>Your transaction may be timing out. By default DTC
transaction Timeout is
quote:
>set to 60 seconds .
> If this is not long enough In component
services\computers\my computer
quote:
>right click. select properties and select
>the options tab and increase the transaction timeout (you
may set this to 0
quote:
>and the transaction will not time out)
>Thanks
>Hari
>MCDBA
>
>"cs" <anonymous@.discussions.microsoft.com> wrote in
message
quote:|||Hi,
>news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
>
>.
>
Can you tell me where do you get the error?
I thought that you are using some components.
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
quote:
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!
Labels:
completed,
database,
enlist,
error,
explain,
igetting,
itdistributed,
message,
microsoft,
mysql,
oracle,
server,
sql,
thissession,
transaction
Error
Can anyone explain me this error message and why am i
getting it:
Distributed transaction completed. Either enlist this
session in a new transaction or the NULL transaction.
[SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
7312). The step failed.
thanxs!Hi,
Your transaction may be timing out. By default DTC transaction Timeout is
set to 60 seconds .
If this is not long enough In component services\computers\my computer
right click. select properties and select
the options tab and increase the transaction timeout (you may set this to 0
and the transaction will not time out)
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!|||where can i find the "component services"'
>--Original Message--
>Hi,
>Your transaction may be timing out. By default DTC
transaction Timeout is
>set to 60 seconds .
> If this is not long enough In component
services\computers\my computer
>right click. select properties and select
>the options tab and increase the transaction timeout (you
may set this to 0
>and the transaction will not time out)
>Thanks
>Hari
>MCDBA
>
>"cs" <anonymous@.discussions.microsoft.com> wrote in
message
>news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
>> Can anyone explain me this error message and why am i
>> getting it:
>> Distributed transaction completed. Either enlist this
>> session in a new transaction or the NULL transaction.
>> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
>> 7312). The step failed.
>> thanxs!
>
>.
>|||Hi,
Can you tell me where do you get the error?
I thought that you are using some components.
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!
getting it:
Distributed transaction completed. Either enlist this
session in a new transaction or the NULL transaction.
[SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
7312). The step failed.
thanxs!Hi,
Your transaction may be timing out. By default DTC transaction Timeout is
set to 60 seconds .
If this is not long enough In component services\computers\my computer
right click. select properties and select
the options tab and increase the transaction timeout (you may set this to 0
and the transaction will not time out)
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!|||where can i find the "component services"'
>--Original Message--
>Hi,
>Your transaction may be timing out. By default DTC
transaction Timeout is
>set to 60 seconds .
> If this is not long enough In component
services\computers\my computer
>right click. select properties and select
>the options tab and increase the transaction timeout (you
may set this to 0
>and the transaction will not time out)
>Thanks
>Hari
>MCDBA
>
>"cs" <anonymous@.discussions.microsoft.com> wrote in
message
>news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
>> Can anyone explain me this error message and why am i
>> getting it:
>> Distributed transaction completed. Either enlist this
>> session in a new transaction or the NULL transaction.
>> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
>> 7312). The step failed.
>> thanxs!
>
>.
>|||Hi,
Can you tell me where do you get the error?
I thought that you are using some components.
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!
Error
Can someone please explain what is this? That happend when I clicked on a
plus sign to collapse a node in the repport.
Server Error in '/Reports' Application.
----
Execution '2ns4uy45lycd42r4fhindozx' cannot be found (rsExecutionNotFound)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: Microsoft.Reporting.WebForms.ReportServerException:
Execution '2ns4uy45lycd42r4fhindozx' cannot be found (rsExecutionNotFound)
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[ReportServerException: Execution '2ns4uy45lycd42r4fhindozx' cannot be found
(rsExecutionNotFound)]
Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +286
Microsoft.Reporting.WebForms.ServerReport.SetExecutionId(String
executionId, Boolean fullReportLoad) +109
Microsoft.Reporting.WebForms.ServerReport.LoadFromUrlQuery(NameValueCollection
requestParameters, Boolean fullReportLoad) +90
Microsoft.Reporting.WebForms.ReportDataOperation..ctor() +322
Microsoft.Reporting.WebForms.HttpHandler.GetHandler() +508
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext
context) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+303
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64
----
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
Version:2.0.50727.832On Sep 11, 7:32 am, "Mark Goldin" <mgol...@.ufandd.com> wrote:
> Can someone please explain what is this? That happend when I clicked on a
> plus sign to collapse a node in the repport.
> Server Error in '/Reports' Application.
> ----
> Execution '2ns4uy45lycd42r4fhindozx' cannot be found (rsExecutionNotFound)
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
> Exception Details: Microsoft.Reporting.WebForms.ReportServerException:
> Execution '2ns4uy45lycd42r4fhindozx' cannot be found (rsExecutionNotFound)
> Source Error:
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of the
> exception can be identified using the exception stack trace below.
> Stack Trace:
> [ReportServerException: Execution '2ns4uy45lycd42r4fhindozx' cannot be found
> (rsExecutionNotFound)]
> Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +286
> Microsoft.Reporting.WebForms.ServerReport.SetExecutionId(String
> executionId, Boolean fullReportLoad) +109
> Microsoft.Reporting.WebForms.ServerReport.LoadFromUrlQuery(NameValueCollection
> requestParameters, Boolean fullReportLoad) +90
> Microsoft.Reporting.WebForms.ReportDataOperation..ctor() +322
> Microsoft.Reporting.WebForms.HttpHandler.GetHandler() +508
> Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext
> context) +9
> System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
> +303
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously) +64
> ----
> Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
> Version:2.0.50727.832
You may just need to close and reopen Report Mgr/Visual Studio or
restart IIS (via 'iisreset' at the command line). If you have MS CRM
installed, you may need to install the latest update (http://
support.microsoft.com/kb/829888 ). Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant
plus sign to collapse a node in the repport.
Server Error in '/Reports' Application.
----
Execution '2ns4uy45lycd42r4fhindozx' cannot be found (rsExecutionNotFound)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: Microsoft.Reporting.WebForms.ReportServerException:
Execution '2ns4uy45lycd42r4fhindozx' cannot be found (rsExecutionNotFound)
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[ReportServerException: Execution '2ns4uy45lycd42r4fhindozx' cannot be found
(rsExecutionNotFound)]
Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +286
Microsoft.Reporting.WebForms.ServerReport.SetExecutionId(String
executionId, Boolean fullReportLoad) +109
Microsoft.Reporting.WebForms.ServerReport.LoadFromUrlQuery(NameValueCollection
requestParameters, Boolean fullReportLoad) +90
Microsoft.Reporting.WebForms.ReportDataOperation..ctor() +322
Microsoft.Reporting.WebForms.HttpHandler.GetHandler() +508
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext
context) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+303
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64
----
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
Version:2.0.50727.832On Sep 11, 7:32 am, "Mark Goldin" <mgol...@.ufandd.com> wrote:
> Can someone please explain what is this? That happend when I clicked on a
> plus sign to collapse a node in the repport.
> Server Error in '/Reports' Application.
> ----
> Execution '2ns4uy45lycd42r4fhindozx' cannot be found (rsExecutionNotFound)
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
> Exception Details: Microsoft.Reporting.WebForms.ReportServerException:
> Execution '2ns4uy45lycd42r4fhindozx' cannot be found (rsExecutionNotFound)
> Source Error:
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of the
> exception can be identified using the exception stack trace below.
> Stack Trace:
> [ReportServerException: Execution '2ns4uy45lycd42r4fhindozx' cannot be found
> (rsExecutionNotFound)]
> Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +286
> Microsoft.Reporting.WebForms.ServerReport.SetExecutionId(String
> executionId, Boolean fullReportLoad) +109
> Microsoft.Reporting.WebForms.ServerReport.LoadFromUrlQuery(NameValueCollection
> requestParameters, Boolean fullReportLoad) +90
> Microsoft.Reporting.WebForms.ReportDataOperation..ctor() +322
> Microsoft.Reporting.WebForms.HttpHandler.GetHandler() +508
> Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext
> context) +9
> System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
> +303
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously) +64
> ----
> Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
> Version:2.0.50727.832
You may just need to close and reopen Report Mgr/Visual Studio or
restart IIS (via 'iisreset' at the command line). If you have MS CRM
installed, you may need to install the latest update (http://
support.microsoft.com/kb/829888 ). Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant
Wednesday, February 15, 2012
Erroneous behaviour of COALESCE versus ISNULL??
I am getting very
of why COALESCE doesnt report NULL as NULL.
Can somebody please explain the behavoiour described below?
Create these tables:
create table dbo.Warrants (
WarrantId bigint not null
constraint WarrantsPKCO primary key nonclustered (WarrantId)
)
go
create table dbo.TextLimitations (
WarrantId bigint not null,
LimitationText text not null,
constraint TextLimitationsPKCO primary key clustered (WarrantId)
)
go
EXECUTE SP_TABLEOPTION 'dbo.TextLimitations',
'TEXT IN ROW', 'ON'
go
Insert this data:
insert into dbo.Warrants values (1)
insert into dbo.Warrants values (2)
go
insert into dbo.TextLimitations values (1, 'a very long text')
go
Run this query:
SELECT W.WarrantId
,Text1 = COALESCE(LimitationText, '')
,Text2 = CASE
WHEN (LimitationText IS NOT NULL) THEN LimitationText
WHEN (LimitationText IS NULL) THEN 'it is null'
ELSE 'else null'
END
,Text3 = ISNULL(LimitationText, '')
FROM dbo.Warrants W
LEFT JOIN dbo.TextLimitations T
ON W.WarrantId = T.WarrantId
WHERE W.WarrantId = 2
go
Why is text1 and text2 NULL?
/kHi
I get
WarrantId Text1 Text2 Text3
-- -- -- --
2 it is null
Which is what I would expect. Text1 and Text3 are both empty strings (which
is different to NULL)
You may want to check version and compatibility settings.
John
"kurt sune" wrote:
> I am getting very
of why COALESCE doesnt report NULL as NULL.
> Can somebody please explain the behavoiour described below?
> Create these tables:
> create table dbo.Warrants (
> WarrantId bigint not null
> constraint WarrantsPKCO primary key nonclustered (WarrantId)
> )
> go
> create table dbo.TextLimitations (
> WarrantId bigint not null,
> LimitationText text not null,
> constraint TextLimitationsPKCO primary key clustered (WarrantId)
> )
> go
> EXECUTE SP_TABLEOPTION 'dbo.TextLimitations',
> 'TEXT IN ROW', 'ON'
> go
> Insert this data:
> insert into dbo.Warrants values (1)
> insert into dbo.Warrants values (2)
> go
> insert into dbo.TextLimitations values (1, 'a very long text')
> go
> Run this query:
> SELECT W.WarrantId
> ,Text1 = COALESCE(LimitationText, '')
> ,Text2 = CASE
> WHEN (LimitationText IS NOT NULL) THEN LimitationText
> WHEN (LimitationText IS NULL) THEN 'it is null'
> ELSE 'else null'
> END
> ,Text3 = ISNULL(LimitationText, '')
> FROM dbo.Warrants W
> LEFT JOIN dbo.TextLimitations T
> ON W.WarrantId = T.WarrantId
> WHERE W.WarrantId = 2
> go
>
> Why is text1 and text2 NULL?
>
> /k
>
>|||Addendum:
on two machines I get
2 NULL NULL emptystring
on all others I get
2 emptystring it is null emptystring
What makes the first two machines answer incorrectly?
/k
"kurt sune" <apa@.apa.com> wrote in message
news:uzi99p%23xFHA.3408@.TK2MSFTNGP09.phx.gbl...
> I am getting very
of why COALESCE doesnt report NULL as NULL.
> Can somebody please explain the behavoiour described below?
> Create these tables:
> create table dbo.Warrants (
> WarrantId bigint not null
> constraint WarrantsPKCO primary key nonclustered (WarrantId)
> )
> go
> create table dbo.TextLimitations (
> WarrantId bigint not null,
> LimitationText text not null,
> constraint TextLimitationsPKCO primary key clustered (WarrantId)
> )
> go
> EXECUTE SP_TABLEOPTION 'dbo.TextLimitations',
> 'TEXT IN ROW', 'ON'
> go
> Insert this data:
> insert into dbo.Warrants values (1)
> insert into dbo.Warrants values (2)
> go
> insert into dbo.TextLimitations values (1, 'a very long text')
> go
> Run this query:
> SELECT W.WarrantId
> ,Text1 = COALESCE(LimitationText, '')
> ,Text2 = CASE
> WHEN (LimitationText IS NOT NULL) THEN LimitationText
> WHEN (LimitationText IS NULL) THEN 'it is null'
> ELSE 'else null'
> END
> ,Text3 = ISNULL(LimitationText, '')
> FROM dbo.Warrants W
> LEFT JOIN dbo.TextLimitations T
> ON W.WarrantId = T.WarrantId
> WHERE W.WarrantId = 2
> go
>
> Why is text1 and text2 NULL?
>
> /k
>|||On Mon, 3 Oct 2005 09:40:53 +0200, kurt sune wrote:
>Addendum:
>on two machines I get
>2 NULL NULL emptystring
>on all others I get
>2 emptystring it is null emptystring
>
>What makes the first two machines answer incorrectly?
Hi Kurt,
Maybe an older service pack? What's the output of SELECT @.@.VERSION on
each of the machines?
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)|||One machine that answers correctly:
Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
Dec 17 2002 14:22:05
One machine that answers wrong:
Microsoft SQL Server 2000 - 8.00.534 (Intel X86)
Nov 19 2001 13:23:50
/k
"Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
news:lp63k1pjr8uh3us6o63abhiirh6lhkfcra@.
4ax.com...
> On Mon, 3 Oct 2005 09:40:53 +0200, kurt sune wrote:
>
> Hi Kurt,
> Maybe an older service pack? What's the output of SELECT @.@.VERSION on
> each of the machines?
> Best, Hugo
> --
> (Remove _NO_ and _SPAM_ to get my e-mail address)|||Hi
After you have upgraded to SP3a or possibly standardised on SP4, check out
differences in the output sp_dboption and sp_dbcmptlevel for each of the
databases.
John
"kurt sune" wrote:
> One machine that answers correctly:
> Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
> Dec 17 2002 14:22:05
> One machine that answers wrong:
> Microsoft SQL Server 2000 - 8.00.534 (Intel X86)
> Nov 19 2001 13:23:50
> /k
>
> "Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
> news:lp63k1pjr8uh3us6o63abhiirh6lhkfcra@.
4ax.com...
>
>|||On Tue, 4 Oct 2005 08:14:09 +0200, kurt sune wrote:
>One machine that answers correctly:
>Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
> Dec 17 2002 14:22:05
>One machine that answers wrong:
>Microsoft SQL Server 2000 - 8.00.534 (Intel X86)
> Nov 19 2001 13:23:50
Hi Kurt,
Upgrade all your machines to at least SP 3a (version 8.00.760) ASAP.
This will probably remove your bug. But even better is that it will cure
your current vulnerability to the SQL Slammer worm.
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)|||Unfortunately I work for a very bureaucratic company and upgrading is a
veeery slow affair.
Thanks for the tip of slammer, now I have three arguments in my
argumentation box.
(the coalesce bug, length of mail message body bug, slammer worm)
/k
"Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
news:jgv5k1dh91hno6m50l1a8gtk85ufumrr66@.
4ax.com...
> On Tue, 4 Oct 2005 08:14:09 +0200, kurt sune wrote:
>
> Hi Kurt,
> Upgrade all your machines to at least SP 3a (version 8.00.760) ASAP.
> This will probably remove your bug. But even better is that it will cure
> your current vulnerability to the SQL Slammer worm.
> Best, Hugo
> --
> (Remove _NO_ and _SPAM_ to get my e-mail address)|||Hi Hugo
Is there a KB for this COALESCE bug?
John
"Hugo Kornelis" wrote:
> On Tue, 4 Oct 2005 08:14:09 +0200, kurt sune wrote:
>
> Hi Kurt,
> Upgrade all your machines to at least SP 3a (version 8.00.760) ASAP.
> This will probably remove your bug. But even better is that it will cure
> your current vulnerability to the SQL Slammer worm.
> Best, Hugo
> --
> (Remove _NO_ and _SPAM_ to get my e-mail address)
>|||Also have a look at
http://toponewithties.blogspot.com/...es.blogspot.com
"kurt sune" <apa@.apa.com> wrote in message
news:eovaSQXyFHA.3312@.TK2MSFTNGP09.phx.gbl...
> Unfortunately I work for a very bureaucratic company and upgrading is a
> veeery slow affair.
> Thanks for the tip of slammer, now I have three arguments in my
> argumentation box.
> (the coalesce bug, length of mail message body bug, slammer worm)
> /k
>
> "Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
> news:jgv5k1dh91hno6m50l1a8gtk85ufumrr66@.
4ax.com...
>
Can somebody please explain the behavoiour described below?
Create these tables:
create table dbo.Warrants (
WarrantId bigint not null
constraint WarrantsPKCO primary key nonclustered (WarrantId)
)
go
create table dbo.TextLimitations (
WarrantId bigint not null,
LimitationText text not null,
constraint TextLimitationsPKCO primary key clustered (WarrantId)
)
go
EXECUTE SP_TABLEOPTION 'dbo.TextLimitations',
'TEXT IN ROW', 'ON'
go
Insert this data:
insert into dbo.Warrants values (1)
insert into dbo.Warrants values (2)
go
insert into dbo.TextLimitations values (1, 'a very long text')
go
Run this query:
SELECT W.WarrantId
,Text1 = COALESCE(LimitationText, '')
,Text2 = CASE
WHEN (LimitationText IS NOT NULL) THEN LimitationText
WHEN (LimitationText IS NULL) THEN 'it is null'
ELSE 'else null'
END
,Text3 = ISNULL(LimitationText, '')
FROM dbo.Warrants W
LEFT JOIN dbo.TextLimitations T
ON W.WarrantId = T.WarrantId
WHERE W.WarrantId = 2
go
Why is text1 and text2 NULL?
/kHi
I get
WarrantId Text1 Text2 Text3
-- -- -- --
2 it is null
Which is what I would expect. Text1 and Text3 are both empty strings (which
is different to NULL)
You may want to check version and compatibility settings.
John
"kurt sune" wrote:
> I am getting very
> Can somebody please explain the behavoiour described below?
> Create these tables:
> create table dbo.Warrants (
> WarrantId bigint not null
> constraint WarrantsPKCO primary key nonclustered (WarrantId)
> )
> go
> create table dbo.TextLimitations (
> WarrantId bigint not null,
> LimitationText text not null,
> constraint TextLimitationsPKCO primary key clustered (WarrantId)
> )
> go
> EXECUTE SP_TABLEOPTION 'dbo.TextLimitations',
> 'TEXT IN ROW', 'ON'
> go
> Insert this data:
> insert into dbo.Warrants values (1)
> insert into dbo.Warrants values (2)
> go
> insert into dbo.TextLimitations values (1, 'a very long text')
> go
> Run this query:
> SELECT W.WarrantId
> ,Text1 = COALESCE(LimitationText, '')
> ,Text2 = CASE
> WHEN (LimitationText IS NOT NULL) THEN LimitationText
> WHEN (LimitationText IS NULL) THEN 'it is null'
> ELSE 'else null'
> END
> ,Text3 = ISNULL(LimitationText, '')
> FROM dbo.Warrants W
> LEFT JOIN dbo.TextLimitations T
> ON W.WarrantId = T.WarrantId
> WHERE W.WarrantId = 2
> go
>
> Why is text1 and text2 NULL?
>
> /k
>
>|||Addendum:
on two machines I get
2 NULL NULL emptystring
on all others I get
2 emptystring it is null emptystring
What makes the first two machines answer incorrectly?
/k
"kurt sune" <apa@.apa.com> wrote in message
news:uzi99p%23xFHA.3408@.TK2MSFTNGP09.phx.gbl...
> I am getting very
> Can somebody please explain the behavoiour described below?
> Create these tables:
> create table dbo.Warrants (
> WarrantId bigint not null
> constraint WarrantsPKCO primary key nonclustered (WarrantId)
> )
> go
> create table dbo.TextLimitations (
> WarrantId bigint not null,
> LimitationText text not null,
> constraint TextLimitationsPKCO primary key clustered (WarrantId)
> )
> go
> EXECUTE SP_TABLEOPTION 'dbo.TextLimitations',
> 'TEXT IN ROW', 'ON'
> go
> Insert this data:
> insert into dbo.Warrants values (1)
> insert into dbo.Warrants values (2)
> go
> insert into dbo.TextLimitations values (1, 'a very long text')
> go
> Run this query:
> SELECT W.WarrantId
> ,Text1 = COALESCE(LimitationText, '')
> ,Text2 = CASE
> WHEN (LimitationText IS NOT NULL) THEN LimitationText
> WHEN (LimitationText IS NULL) THEN 'it is null'
> ELSE 'else null'
> END
> ,Text3 = ISNULL(LimitationText, '')
> FROM dbo.Warrants W
> LEFT JOIN dbo.TextLimitations T
> ON W.WarrantId = T.WarrantId
> WHERE W.WarrantId = 2
> go
>
> Why is text1 and text2 NULL?
>
> /k
>|||On Mon, 3 Oct 2005 09:40:53 +0200, kurt sune wrote:
>Addendum:
>on two machines I get
>2 NULL NULL emptystring
>on all others I get
>2 emptystring it is null emptystring
>
>What makes the first two machines answer incorrectly?
Hi Kurt,
Maybe an older service pack? What's the output of SELECT @.@.VERSION on
each of the machines?
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)|||One machine that answers correctly:
Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
Dec 17 2002 14:22:05
One machine that answers wrong:
Microsoft SQL Server 2000 - 8.00.534 (Intel X86)
Nov 19 2001 13:23:50
/k
"Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
news:lp63k1pjr8uh3us6o63abhiirh6lhkfcra@.
4ax.com...
> On Mon, 3 Oct 2005 09:40:53 +0200, kurt sune wrote:
>
> Hi Kurt,
> Maybe an older service pack? What's the output of SELECT @.@.VERSION on
> each of the machines?
> Best, Hugo
> --
> (Remove _NO_ and _SPAM_ to get my e-mail address)|||Hi
After you have upgraded to SP3a or possibly standardised on SP4, check out
differences in the output sp_dboption and sp_dbcmptlevel for each of the
databases.
John
"kurt sune" wrote:
> One machine that answers correctly:
> Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
> Dec 17 2002 14:22:05
> One machine that answers wrong:
> Microsoft SQL Server 2000 - 8.00.534 (Intel X86)
> Nov 19 2001 13:23:50
> /k
>
> "Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
> news:lp63k1pjr8uh3us6o63abhiirh6lhkfcra@.
4ax.com...
>
>|||On Tue, 4 Oct 2005 08:14:09 +0200, kurt sune wrote:
>One machine that answers correctly:
>Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
> Dec 17 2002 14:22:05
>One machine that answers wrong:
>Microsoft SQL Server 2000 - 8.00.534 (Intel X86)
> Nov 19 2001 13:23:50
Hi Kurt,
Upgrade all your machines to at least SP 3a (version 8.00.760) ASAP.
This will probably remove your bug. But even better is that it will cure
your current vulnerability to the SQL Slammer worm.
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)|||Unfortunately I work for a very bureaucratic company and upgrading is a
veeery slow affair.
Thanks for the tip of slammer, now I have three arguments in my
argumentation box.
(the coalesce bug, length of mail message body bug, slammer worm)
/k
"Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
news:jgv5k1dh91hno6m50l1a8gtk85ufumrr66@.
4ax.com...
> On Tue, 4 Oct 2005 08:14:09 +0200, kurt sune wrote:
>
> Hi Kurt,
> Upgrade all your machines to at least SP 3a (version 8.00.760) ASAP.
> This will probably remove your bug. But even better is that it will cure
> your current vulnerability to the SQL Slammer worm.
> Best, Hugo
> --
> (Remove _NO_ and _SPAM_ to get my e-mail address)|||Hi Hugo
Is there a KB for this COALESCE bug?
John
"Hugo Kornelis" wrote:
> On Tue, 4 Oct 2005 08:14:09 +0200, kurt sune wrote:
>
> Hi Kurt,
> Upgrade all your machines to at least SP 3a (version 8.00.760) ASAP.
> This will probably remove your bug. But even better is that it will cure
> your current vulnerability to the SQL Slammer worm.
> Best, Hugo
> --
> (Remove _NO_ and _SPAM_ to get my e-mail address)
>|||Also have a look at
http://toponewithties.blogspot.com/...es.blogspot.com
"kurt sune" <apa@.apa.com> wrote in message
news:eovaSQXyFHA.3312@.TK2MSFTNGP09.phx.gbl...
> Unfortunately I work for a very bureaucratic company and upgrading is a
> veeery slow affair.
> Thanks for the tip of slammer, now I have three arguments in my
> argumentation box.
> (the coalesce bug, length of mail message body bug, slammer worm)
> /k
>
> "Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
> news:jgv5k1dh91hno6m50l1a8gtk85ufumrr66@.
4ax.com...
>
Subscribe to:
Posts (Atom)