I fixed the issue by adding the schema name in front of all table references:
select [..] from schema_name.table_name
Related Contents:
- Can I have a foreign key referencing a column in a view in SQL Server?
- Create a view with ORDER BY clause
- Cannot create index on view ‘View_Table_Name’ because the view is not schema bound
- Why can’t indexed views have a MAX() aggregate?
- Update a table using JOIN in SQL Server?
- SQL Server: Database stuck in “Restoring” state
- What is the difference between Integrated Security = True and Integrated Security = SSPI?
- Cannot Connect to Server – A network-related or instance-specific error
- How do you specify a different port number in SQL Management Studio?
- How do I move a table into a schema in T-SQL
- How do you kill all current connections to a SQL Server 2005 database?
- How can I select from list of values in SQL Server
- SQL Server Management Studio, how to get execution time down to milliseconds
- When should I use semicolons in SQL Server?
- How to drop all tables in a SQL Server database?
- How to get a float result by dividing two integer values using T-SQL?
- SQL Server String or binary data would be truncated
- When/Why to use Cascading in SQL Server?
- Escape Character in SQL Server
- T-SQL: Opposite to string concatenation – how to split string into multiple records [duplicate]
- Missing artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0
- How to generate auto increment field in select query
- Is there a way to suppress “x rows affected” in SQLCMD from the command line?
- VarBinary vs Image SQL Server Data Type to Store Binary Data?
- Is it OK to run perfmon on production servers? And why?
- Is there a good way to backup a petabyte of data and store it?
- I cannot connect to my local SQL Server 2008?
- Is there a secure way to allow IIS 7 in a DMZ to access a DB server behind the firewall?
- In SQL Server, when should you split your PRIMARY Data FileGroup into secondary data files?
- Convert a SQL Server datetime to a shorter date format
- SQL Error with Order By in Subquery
- When must we use NVARCHAR/NCHAR instead of VARCHAR/CHAR in SQL Server?
- How to convert empty spaces into null values, using SQL Server?
- Combine two tables that have no common fields
- What is this hacker trying to do?
- How to get just the date part of getdate()? [duplicate]
- Should I INCLUDE the primary key in a covering index?
- Hitting the 2100 parameter limit (SQL Server) when using Contains()
- Round *UP* to the nearest 100 in SQL Server
- Why is “close existing connections to destination database” grayed out on SQL Server 2012 Management Studio?
- tsql returning a table from a function or store procedure
- Sql Data Type for Primary Key – SQL Server?
- Unique index or unique key?
- row_number() Group by?
- How do you add a NOT NULL Column to a large table in SQL Server?
- Primary and Foreign Key at the same time
- TSQL ORDER BY with nulls first or last (at bottom or top)
- Joining to MAX date record in group
- Windows could not start the SQL Server (MSSQLSERVER) on Local Computer… (error code 3417)
- How to convert number of minutes to hh:mm format in TSQL?