Hi
I got a bit of problem. Im converting from and old sql 6.5 server to a new sql 2000 server(in 6.5 mode, and withansi defaults off)
Ill try to illustrate the problem with the following select
create table #test
(
test int
)
go
truncate table #test
insert into #test values (1)
insert into #test values (2)
insert into #test values (3)
declare @test int
select @test = test
from #test
where (test = @test or @test is null)
select @@rowcount
In 6.5 @@rowcount =1
in 2000 @@rowcount = 3
Is there an easy way to make a select the does the same in 2000 as in sql 6.5
I got a bit of problem. Im converting from and old sql 6.5 server to a new sql 2000 server(in 6.5 mode, and withansi defaults off)
Ill try to illustrate the problem with the following select
create table #test
(
test int
)
go
truncate table #test
insert into #test values (1)
insert into #test values (2)
insert into #test values (3)
declare @test int
select @test = test
from #test
where (test = @test or @test is null)
select @@rowcount
In 6.5 @@rowcount =1
in 2000 @@rowcount = 3
Is there an easy way to make a select the does the same in 2000 as in sql 6.5