Feedback
Did this article resolve your question/issue?

   

Article

Error occurs when attempting to get SQL Server Metadata using the SQL Server JDBC driver.

Information

 
TitleError occurs when attempting to get SQL Server Metadata using the SQL Server JDBC driver.
URL NameError-occurs-when-attempting-to-get-SQL-Server-Metadata-using-the-SQL-Server-JDBC-driver
Article Number000111555
EnvironmentProduct: Connect for JDBC SQL Server driver
Version: 6.0
OS: Java
Database: SQL Server Analytics Platform System (APS/PDW)
Application: All supported applications
Question/Problem Description
Error occurs when attempting to get SQL Server Metadata using the Connect for JDBC SQL Server driver.
 
Steps to Reproduce
Clarifying Information
Using the 6.0 SQL Server driver for JDBC, when connected to MS SQL Server Analytics Platform System (APS/PDW) attempting to get database metadata results an error occurs.
The problem only occurs when connecting to SQL Server Analytics Platform System (APS/PDW).
 
Error Message[DataDirect][SQLServer JDBC Driver][SQLServer]User does not have permission to perform this action.
Defect Number
Enhancement Number
Cause
When the driver makes a request to the server to gather database metadata, it gathers all of the metadata in order to cache this information to save future round trips to the server. The driver’s query for gathering the transaction isolation requires that the user have the VIEW SERVER STATE permission.
Resolution
To resolve the error, login to the ‘master’ database as an admin and grant VIEW SERVER STATE to the user id. 
Syntax:  GRANT VIEW SERVER STATE to USER_ID
 
Workaround
Notes
Last Modified Date10/8/2018 4:53 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.