Connecting JetBrains DataGrip to Google BigQuery - Error in connection - google-bigquery

I am trying to connect DataGrip to Google BigQuery exactly following the steps on the JetBrains blog (https://blog.jetbrains.com/datagrip/2018/07/10/using-bigquery-from-intellij-based-ide/) but I keep getting the same error message when I test the connection:
The specified database user/password combination is rejected: com.simba.googlebigquery.support.exceptions.GeneralException: EXEC_JOB_EXECUTION_ERR
And on that same pop up box, it is asking me to enter my login credentials for BigQuery. I shouldn't need to do this as I created a service account in GCP with the correct level of access, and used the json key stored on my local machine (and linked to this service account).
Any ideas?
Expected result: Successful connection
Actual result: Error message above

Related

Sql Database sync error in azure Database Sync Group

I'm trying to connect my local database with online database. I've followed the full procedure but Database Sync Group is showing a log error of following type
Database provisioning failed with the exception "SqlException
Database provisioning failed with the exception "SqlException ID: ebcc6489-1083-4635-aa5e-a34deecb61c1, Error Code: -2146232060 - SqlError Number:18456, Message: Login failed.
For more information, provide tracing ID ‘3b685498-b462-4bde-b99b-0f1a156369c7’ to customer support."
Moreover hub database is not showing any table to select for sync but sync agent database is showing up.
Kindly please help me out.
Try to verify the SQL login you used to configure the hub database on the sync group has been disabled or the password has been changed.
On the Azure Database, provide the SQL Admin login with its current password. If you have provided this information before try to do this again.
Follow these steps:
Click on the Azure DBClick “Sync to other database”
Click on the sync group which you have created.
Click on the databases.
Click on your hub server.
Enter your username and current password.
Try to sync.
Reference: Configure SQL Data Sync

SQL Server - Enable TDE Encryption trying to connect to Azure Key Vault

The goal here is to: Assist client in configuring his Key Vault so that he would be able to enable TDE encryption and access it over the government portal url
Customer Verbatim:
"I am running into an issue when trying to enable TDE for SQL Server 2016. I have attached a few files with show the problem. Basically the problem is when SQL tries to connect to the Azure Key Vault it is using the public suffix (azure.net) instead of the the govcloud suffix (usgovcloudapi.net).
How do I force it to use the correct URL?"
https://vant4gekeyvault.vault.usgovcloudapi.net/
I think the issue is this is a gov tenant and he's stuck using the commercial URL but we were unable to force the correct URL. I sent him instructions on how to
Set-AzureRmEnvironment for AzureKeyVaultServiceEndpointResourceId as *.vault.usgovcloudapi.net, should be https://vault.usgovcloudapi.net.
but that didn't seem to work. I may be way off on this assumption too, as I'm not really that great in KV. Any Ideas or a known fix?
Here is his error message:
---SQL
Msg 33049, Level 16, State 2, Line 17
Key with name 'SqlTDEKey' does not exist in the provider or access is denied. Provider error code: 2058. (Provider Error - No explanation is available, consult EKM Provider for details)
---EVENT LOG
The description for Event ID 2 from source SQL Server Connector for Microsoft Azure Key Vault cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Vault Name: EKM Operation
Operation: SqlCryptGetKeyInfoByName
Key Name: N/A
Message: Error when accessing registry:5
Read the message again, the account doesn't have permission to modify the registry. It's an issue introduced in the feb release of the connector. I ran into a similar issue, the provider tries to create a registry key but doesn't have permissions to do so, therefore it fails. Try the following steps taken from this blogpost [1]
Open regedit
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft
Create a new Key called “SQL Server Cryptographic Provider” (without quotes)
Right click the key, from the context menu select ‘permissions.
Give Full Control permissions to this key to the Windows service account that runs SQL Server
[1] https://www.visualstudiogeeks.com/devops/SqlServerKeyVaultConnectorProviderError2058RegistryConsultEKMProvider

Create public database link to SQL Server using Windows Authentication

Is it possible to create public database link to SQL Server using Windows Authentication from an Oracle DB?
I can create the link
CREATE PUBLIC DATABASE LINK DB_LINK CONNECT TO "domain\user" IDENTIFIED BY "password" USING 'tns_name_entry';
But when I try a select statement
Select * from dual#DB_LINK
I get the following:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from DB_LINK
28545. 0000 - "error diagnosed by Net8 when connecting to an agent"
*Cause: An attempt to call an external procedure or to issue SQL
to a non-Oracle system on a Heterogeneous Services database link
failed at connection initialization. The error diagnosed
by Net8 NCR software is reported separately.
*Action: Refer to the Net8 NCRO error message. If this isn't clear,
check connection administrative setup in tnsnames.ora
and listener.ora for the service associated with the
Heterogeneous Services database link being used, or with
'extproc_connection_data' for an external procedure call.
Error at Line: 9 Column: 20
I can connect to the db, so it's not an issue of connection. The heterogeneous service has been created, and the listener.ora and tnsnames.ora have been edited. I'm wondering if I'm getting the error because I'm using Windows authentication. Thanks.
Figured out my problem. It has something to do with Oracle12. You have to start the listener as the local account. Go into services --> right click properties of the listener --> Log On. Also you don't need the domain when creating the database link.

Simba BigQuery ODBC connection error

I have downloaded and install the Simba Big Query ODBC connector.
When I try to configure following the instructions on Simba's website, when I enter the confirmation code at which point the refresh token should populate I get error :-
[Simba]BigQuery Error interacting with REST API: Problem with the SSL CA cert (path ? access rights?)
I get this on both my works laptop and my home PC.
I have also tried the Service Authentication and have selected the key file path and also get the error.
It should be noted I can successfully access Biq Query through other methods using my authorized credentials.
Can anyone help ?
Platform is Windows 64Bit
Regards,
Ian

Microsoft Azure: There was an error while creating data connection 'SQL data connection'. Deployment to resource group failed

I am trying to create an Android Mobile app via the Azure app service and while doing so, I am trying to create a database, but I am getting the error 'there was an error while creating data connection 'SQL data connection'. Deployment to resource group failed'. Please help as soon as possible.
$
This error is due to server limit exceeding the quote associated with your account. Under all resources, check if there's a new SQL server created with a random name- you will need to delete that. Attempt to create again.
(just done- it worked!)
I've faced the exact issue.
First time it failed giving the error - Data Connection Creation Error..!
When Configuring for the first time it didn't work for me.
i.e.,
Creating a Database
Creating a New Server
Entering Server Admin Login
Entering Server Admin Password
I've noted down all the above information.
Tried Second time setting up the Connection String with the above details IT WORKED.
Hope this information helps.