on 2012 Apr 20 10:00 AM
I am using sqla 11.0.01.2584 and it is oem database. The database has the authentication option set and only our main app can make changes to it. I have the authentication key and I am adding another app that will connect to this database, but the problem is that app is making connection from sql server via linked server and I am not sure how I can set this option from sql server stored procedure using linked server to sqla database. Another option we r looking at is dropping the authentication without rebuilding the database, is this posisble? any help would be much appreciated.
Just to add to Chris's answer: In order to work with a MS Linked Server, I guess you will have to
possibly by adding an OPENQUERY call the following with your according OEM string before you query the SQL Anywhere database (I'm not sure whether this does work as it would require that the Linked Server access does use the same database connection for both calls):
SELECT * FROM OPENQUERY(<YourSAProvider>,
'SET TEMPORARY OPTION connection_authentication=''company = ...'';')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are running OEM software, you must authenticate both the connection and the database. If the database is not authenticated and it is running on a OEM engine, there is no grace period - any write operation against the database will result in an -98 Authentication Violation error. If you leave database_authentication set, you are at least getting read-only access to the database,
To address this issue, you can use the InitString connection parameter. See Executing the authentication statement for a discussion in the context of authenticated applications.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
11 | |
10 | |
10 | |
9 | |
8 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.