# How I can add a data\_source given an already existing SQLAlchemy engine rather than creating a data\_source from a connection\_string???

**URL:** https://discourse.greatexpectations.io/t/how-i-can-add-a-data-source-given-an-already-existing-sqlalchemy-engine-rather-than-creating-a-data-source-from-a-connection-string/1595
**Category:** GX Core Support
**Created:** [January 24, 2024, 10:27pm UTC](https://discourse.greatexpectations.io/t/how-i-can-add-a-data-source-given-an-already-existing-sqlalchemy-engine-rather-than-creating-a-data-source-from-a-connection-string/1595 "2024-01-24T22:27:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JeffreyHorn](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@JeffreyHorn](https://discourse.greatexpectations.io/u/JeffreyHorn)
#### Post date: [January 24, 2024, 10:27pm UTC](https://discourse.greatexpectations.io/t/how-i-can-add-a-data-source-given-an-already-existing-sqlalchemy-engine-rather-than-creating-a-data-source-from-a-connection-string/1595/1 "2024-01-24T22:27:05Z")

</div>

I am using 18.3 GX and trying to set up an SQL datasource using an existing SQLAlchemy connection. I have an SQLAlchemy connection created with an impyla connection to a Hive database that has parameters that cannot be put in a connection string. This used to work with 15.x GX:  
from great\_expectations.datasource import SqlAlchemyDatasource

```auto
datasource_name = "my_existing_datasource"
context.add_datasource(
    name=datasource_name,
    class_name="SqlAlchemyDatasource",
    execution_engine=engine,
)

```

and afterward I could use datasource named “my\_existing\_datasource” without a problem. 18.3 GX no longer has SqlAlchemyDatasource. Can this be done in 18.3 GX???

---

<div class="post-metadata">

### Author: ![HaebichanGX](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/haebichangx/32/211_2.png) [@HaebichanGX](https://discourse.greatexpectations.io/u/HaebichanGX)
#### Post date: [January 25, 2024, 3:00pm UTC](https://discourse.greatexpectations.io/t/how-i-can-add-a-data-source-given-an-already-existing-sqlalchemy-engine-rather-than-creating-a-data-source-from-a-connection-string/1595/2 "2024-01-25T15:00:04Z")

</div>

Hi @JeffreyHorn unfortunately no I believe with newer Fluent Data Source versions…I can double check just in case
