on 2011 Feb 25 12:04 PM
Hello,
i have migrate my database from 7.7 to 7.8 i get a problem that i have to add the schema name dba (my database schema) in every query, is there a solution
Thanks
Hi,
there has indeed been a change from 7.7 to 7.8 in regards to schema name requirements. SAP MaxDB now handles this more strict and requires the schema to be specified.
So, in your case you now have two options:
1. Rewrite all SQL statements by adding the schema name
2. Create a 'public synonym' for each table allowing the table to be queried without schema.
I would expect option (2) to be easier as I assume that you have more SQL statements than tables and you could create all those synonyms at the beginning of your code.
Here is the syntax:
'create public synonym <synonymname> for <schemaname>.<synonymname>'
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
57 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.