Share via

Invalid Urn filter on server level SQL Server error

SQLLover21 201 Reputation points
2021-08-02T15:40:50.453+00:00

I am trying to alter permissions to some of my users using GUI. When I press Script Out or OK, I am receiving this error attached. Has anyone experienced this error and what did you to resolve this issue?

119899-error1.png

Developer technologies | Transact-SQL
Developer technologies | Transact-SQL

A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

Answer accepted by question author

  1. YufeiShao-msft 7,156 Reputation points
    2021-08-03T07:21:13.993+00:00

    Hi @SQLLover21 ,

    According to my test, this error occurs when the computer name is inconsistent with the server name stored in the SQL server instance.

    SQL Server Setup sets the server name to the computer name during the installation, it seems the Hostname of the computer has been changed in your environment.

    To check this, you can use the following script:

    select host_name()  
    select @@servername  
    

    If the result is different, you can use the following script to change it:

    EXEC sp_dropserver '<old_name>';    
    GO    
    EXEC sp_addserver '<new_name>', local;    
    GO  
    

    After executing the above command, please restart the instance of SQL Server.

    See below for more information:
    https://learn.microsoft.com/en-us/sql/database-engine/install-windows/rename-a-computer-that-hosts-a-stand-alone-instance-of-sql-server?view=sql-server-ver15

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.