• nzhang6666 (9/5/2012)


    Just found out. The compatible level of the database is set to sql server 2000 (8.0).

    I didn't know function can not be used in parameters of a table valued function in 2000...

    But I can run a query with recursive CTE on the database, does 2000 supports CTE?

    best way to find out is to try it yourself...but no, CTE's will not work in 2000/ 80 compatibility...you have to change it to subqueries.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!