I want connect hive with superset but I got this error
An error occurred while creating databases: (configuration_method) Missing data for required field.
My sqlalchemy command is hive://myhost:10000/default
I start the hiveserver and hivemetastore before connecting.
Format for connection string of hive should be
hive://hive#{hostname}:{port}/{database}
Documentation can be found here:
https://superset.apache.org/docs/databases/installing-database-drivers
Related
I'm connecting to a SQL Server spatial database by using ogr2ogr with the MSSQL driver.
C:\>ogr2ogr -f "GeoJSON" C:\Users\usr_m\Documents\shape_odbc.geojson "MSSQL:Driver=SQL Server;server=hksql;database=ql51pd;trusted_Connection=yes;"
as specified here and here
But I'd like to connect to download a certain table, any suggestions how I do that?
Maybe I need to fetch it in python or make another workaround.
As suggested on a side-note here. The string has to look like this:
C:\>ogr2ogr -f "GeoJSON" C:\Users\usr_m\Documents\shape_odbc.geojson "MSSQL:Driver=SQL Server;server=hksql;database=ql51pd;trusted_Connection=yes;" **<table>**
I have SQL Server 2014 installed on my PC, working on a same project in my company, a worker send me a database to import.
I followed the steps described here, but I get this error :
Error 0xc002f210: Preparation SQL Task 1: Executing the query "CREATE TABLE [dbo].[~TMPCLP14521] (
[Champ1] nvar..." failed with the following error: "Culture is not supported.
Parameter name: culture
3072 (0x0c00) is an invalid culture identifier.".
Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
What is wrong?
Solved , after reading this issue i found that in order to make the import work ,apparently ,the sqlserver and the system should have the same language format ;
My Sql Server is in french ,my windows was in english format changing it to french format in setting>region>region format solved my problem.
Hi I am currently doing an automation testing script. And I have a portion where I would like to extract the data from the database and input them in text-fields.
This is how I have written my codes:
Retrieve and Input
Connect To Database Using Custom Params cx_Oracle '${Database Username}/${Database Password}#${Database Host}:${Database Port}/${DatabaseName}'
${ETD_Day}= Execute Sql String SELECT EXTRACT(DAY FROM 'DECL_UNBTHG_DT') FROM BAS_BERTH_APPLN_MASTER WHERE ABBR_VSL_M='APL';
Input Text ${FlexiStack_Day} ${ETD_Day}
Disconnect From Database
However when I am running for testing, this error showed up when trying to execute the sql string.
DatabaseError: ORA-00911: invalid character
I have tried to run the SQL statement in SQL developer and it works. May I know what is the issue here?
I've been getting this error when I try to drop, delete, truncate a table in SQL Server using SAS:
ERROR: CLI error trying to establish connection: [DataDirect][ODBC SQL
Server Wire Protocol driver]Error parsing connect string at
offset 74.
This is the code that's causing it:
proc sql;
connect to odbc(noprompt="Driver={DataDirect 6.1 SQL Server Wire Protocol};99.999.999.99;Port=1433;Database=AAA;Uid=sqluser;Pwd=sqlserverpass;");
execute (drop table dbo.BBB_SUMMARY) by odbc;
disconnect from odbc;
quit;
Append works okay. Does anybody know how to solve this?
"Error parsing connect string at offset 74." is a pretty big clue.
Presuming 99.999.999.99 in your connection string is the ip address of your SQL Server, you might need to change that to HOST=99.999.999.99.
See DataDirect docs
Couldn't speculate why the same seemingly malformed connection string would work for append.
I'm using pdo through freetds driver to connect to Mssql database and I'd like to output detailed sql errors against the generic one.
E.g. I got this generic error from PDO
SQLSTATE[HY000]: General error: 547 General SQL Server error: Check messages from the SQL Server [547] (severity 16) [(null)]
But SQL client gives me more details, and I'd like to get them in php. E.g. in the same case:
The DELETE statement conflicted with the REFERENCE constraint "FKORDINICLIENTI". The conflict occurred in database "dbo.Ordini", column 'IDCliente' of database "dbName".
I've already read this old note PHP / PDO / MSSQL how to get error informations?
and I'd prefer to avoid an additional query.
Thanks.
I think code doesn't matter, I know what's wrong in sql, just wanted to access the second code block from php.
I solved using odbc driver instead of freetds.