schemabinding view creation issues

  • Hi all,

    I'm new to SQL Server 2005, I'm trying to create a schemabinding view and get the following error message:

    Msg 4512, Level 16, State 3, Procedure Policies, Line 2

    Cannot schema bind view 'tablename' because name 'schemaname.dbo.tablename' is invalid for schema binding. Names must be in two-part format and an object cannot reference itself.

    The table I'm trying to create the view from is in another schema of the same SQL Server 2005 database, to reference the table in a select statement I need to put schemaname.dbo.tablename - when trying to create the view I get the error message above.

    Does anybody know how I should reference the table in question when creating a schemabinding view as I need to use the indexing capabilities on this view.

    Thanks in advance for your suggestions,

    Graham.

  •  

    HI I am also facing the same issue.

    What did you do it get over it.

    Please respond at abhinav.nigam@gmail.com

    Regards

    Abhinav

     

     

     

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply