Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to run query with compatibility of 2000

Author  Topic 

vaibhavktiwari83
Aged Yak Warrior

843 Posts

Posted - 2010-05-04 : 07:29:21
I dont know whether this is the right place to post or not but anyways -

I set the compatibility of sql server 2005 to 2000 then now if i am running the query which is only compatible to 2005 then it should not work now as the compatiblity mode is sql server 2000

for example row_number function is not available in sql 2000
then it should not worked but it works...


Vaibhav T

To walk FAST walk ALONE
To walk FAR walk TOGETHER

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-05-04 : 08:03:54
Yes it works, that is normal.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-05-04 : 08:10:19
But this should not work without level 80:
select * from
(select 1 as id, 'test1' as xy)dt1,
(select 1 as id, 'test1' as xy union all select 2,'test2')dt2
where dt1.id =* dt2.id




No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

vaibhavktiwari83
Aged Yak Warrior

843 Posts

Posted - 2010-05-04 : 09:31:37
Okey I got it... Thanks

Vaibhav T

To walk FAST walk ALONE
To walk FAR walk TOGETHER
Go to Top of Page
   

- Advertisement -