Forum Discussion

Robert Tigwell's avatar
Robert Tigwell
Copper Contributor
Apr 13, 2017

Reference to database and/or server name in 'Azure.dbo.XXX' is not supported in this version of SQL

I am getting an error that seemingly indicates that I'm trying to use linked server or cross-database query when I am in no way trying to.   I've opened a stackexchange question w/ full details but...
  • Robert Tigwell's avatar
    Apr 14, 2017

    David from MSDN forum put me on the right track:

     

    1. See what CASCADE DELETE FK constraints there are
    2. Inspect other table(s)
    3. See trigger on table with 3 part name in FROM clause
    4. Correct to 2 part name
    5. Dance

    To see if there are FK relationships w/ DELETE CASCADE:

    select * from INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS where DELETE_RULE ='CASCADE'

     

Share

Resources