-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection info needed in SQLalchemy format for ibm_db_sa #235
Comments
@swaroop-k are you sure the pip packages installed correctly? Try importing these, is it passing?
FYI @edublancas |
in those cases, it's usually easier to ensure you can establish a connection using create_engine and then pass the engine object: https://jupysql.ploomber.io/en/latest/howto.html#connect-to-existing-engine |
Hi, To Connect Db2 to IBM Watson Studio, in the project you should add "new asset" select Db2 Cloud and complete credentials. Make sure that location is set same as Db2 (London, Dalas...). Once successfully connected, you can add your credentials and query to the notebook by clicking up right (icon looks like 0010). I think that other kind of connections wouldn't work. |
can you try connecting via
if that works, you can pass the engine object. e.g, if you do:
then:
Note that this feature is only available on JupySQL, it won't work on ipython-sql:
|
Hello,
I am trying to connect to IBM db2 from the notebook in IBM watson studio itself.
I am connecting with the proper format:
(%sql ibm_db_sa://my-username:my-password@my-hostname:my-port/my-db-name?security=SSL)
%sql ibm_db_sa://jl9:ReG*****kkz@ea286ace--4d5b-8******************od8lcg.data
bases.appdomain.cloud:35/bludb?security=SSL
Still it is not connecting and prompting the error ::
Connection info needed in SQLAlchemy format, example:
postgresql://username:password@hostname/dbname
or an existing connection: dict_keys([])
The text was updated successfully, but these errors were encountered: