SQL Server 2008 Management Studio doesn't recognize new Schema
        Posted  
        
            by Lieven Cardoen
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Lieven Cardoen
        
        
        
        Published on 2009-07-08T09:06:52Z
        Indexed on 
            2010/04/02
            2:43 UTC
        
        
        Read the original article
        Hit count: 484
        
I have created a new Schema in a database called Contexts. Now when I want to write a query, Management Studio doesn't recognize the tables that belong to the new Schema. It says: 'Invalid object name Contexts.ContextLibraries'...
Transact-SQL:
INSERT INTO [Contexts].[ContextLibraries] (ChannelId, [IsSystem])
VALUES (@ChannelId, 1)
When I try the same thing on my local database, it does work...
Any ideas?
I did try to change the Default schema for the user from dbo to Contexts but this doesn't work. Also checked Contexts in Schemas owned by this user without success.
Update: Apparently the sql query does work but the editor gives a fault saying the object is invalid.
© Stack Overflow or respective owner