Name resolution of SQL objects
Informix®
database[@dbservername]:][{owner|"owner"}.]identifier
The ANSI convention is to use double quotes for identifier delimiters (For example:
"customer"."cust_name"
).
Informix database object names are not case-sensitive in non-ANSI databases. When using double-quoted identifiers, Informix becomes case sensitive.
SELECT ... FROM customer WHERE ...
- The table name must include "owner", unless the connected user is the owner of the database object.
- The database server shifts the owner name to uppercase letters before the statement executes, unless the owner name is enclosed in double quotes.
Microsoft™ SQL Server
[[database.]owner.]identifier
Object names are limited to 128 characters in SQL Server and cannot start with one of the following characters: @ (local variable) # (temp object).
To support double quotes as string delimiters in SQL Server, you can switch OFF the database option "Use quoted identifiers" in the database properties panel. But quoted table and column names are not supported when this option is OFF.
Solution
- Use simple database object names (without any owner/schema prefix)
- Do not use double quotes to surround database object identifiers.
- If needed, define public synonyms to reference database objects in others databases/schema.
- Specify database object identifiers in lowercase.
With Microsoft SQL Server, use a "CS" case-sensitive collation at server and database level. See Case sensitivity for more details.
Check for single or double quoted table or column names in your source and remove them.
dbname:tabname
Informix
notation), consider to create views in the main database in SQL Server, to allow program to access
the distant table from the same database
connection:CREATE VIEW myotherdb_customers AS SELECT * FROM myotherdb.dbo.customers