Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between SQL Server 7 and 2000 to set ansi_padding.

Status
Not open for further replies.

pctest

Programmer
Apr 12, 2004
89
0
0
US
Are there any difference between SQL Server 7 and SQL Server 2000 regarding set ansi_padding?

I have the following script:

set ansi_padding on
declare @x integer
select @x = 1
select case when @x = 1 then 'test ' else 'test2 ' end + 'result'

Running the script in SQL Server 2000 will get this:

test result

Running the script in SQL Server 7 will get this:

testresult

Why are the results be different?


Thank you for any help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top