# SQLite Driver (C11)

**URL:** <https://clarionhub.com/t/sqlite-driver-c11/4971>\
**Category:** questions\
**Tags:** sqlite, drivers\
**Created:** [April 7, 2022, 5:29pm UTC](https://clarionhub.com/t/sqlite-driver-c11/4971 "2022-04-07T17:29:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RexCalifornia](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@RexCalifornia](https://clarionhub.com/u/RexCalifornia)\
**Post date:** [April 7, 2022, 5:29pm UTC](https://clarionhub.com/t/sqlite-driver-c11/4971/1 "2022-04-07T17:29:26Z")

</div>

Hello -

What's the correct syntax to assign OWER(Password) when using SQLite driver in Clarion? SV shipping sqlite example school - has this

```
GLO:SQLiteTableName = 'school.sqlite'

Will it be:

GLO:SQLiteTableName = 'school.sqlite; Password=myPassword'

```

Thanks,  
Rex

---

<div class="post-metadata">

**Author:** ![Rick\_UpperPark](https://clarionhub.com/user_avatar/clarionhub.com/rick_upperpark/32/346_2.png) [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Post date:** [April 7, 2022, 5:39pm UTC](https://clarionhub.com/t/sqlite-driver-c11/4971/2 "2022-04-07T17:39:57Z")

</div>

Looks like it:

> **[SQLite connection strings - ConnectionStrings.com](https://www.connectionstrings.com/sqlite/)**
>
> Connection strings for SQLite. Connect using SQLite.NET, Finisar.SQLite .NET Provider, SQLite3 ODBC and ODBC .NET Provider.

---

<div class="post-metadata">

**Author:** ![RexCalifornia](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@RexCalifornia](https://clarionhub.com/u/RexCalifornia)\
**Post date:** [April 7, 2022, 7:18pm UTC](https://clarionhub.com/t/sqlite-driver-c11/4971/3 "2022-04-07T19:18:46Z")

</div>

Apparently, that’s not working. It ends up creating actual file with that name:

![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/f/f4ed806587bcadb755b8790be850e48d4beb3a9a.png)

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [April 7, 2022, 7:42pm UTC](https://clarionhub.com/t/sqlite-driver-c11/4971/4 "2022-04-07T19:42:48Z")

</div>

Encryption is not supported on the SQLite driver.

---

<div class="post-metadata">

**Author:** ![FedericoNavarro](https://clarionhub.com/letter_avatar_proxy/v4/letter/f/2acd7d/32.png) [@FedericoNavarro](https://clarionhub.com/u/FedericoNavarro)\
**Post date:** [April 7, 2022, 9:18pm UTC](https://clarionhub.com/t/sqlite-driver-c11/4971/5 "2022-04-07T21:18:07Z")

</div>

Hi, I did not try it, but assuming you have the correct extensions, I imagine you could open a non password protected database and ATTACH the protected one with an early PROP:SQL.

[https://www.sqlite.org/see/doc/trunk/www/readme.wiki](https://www.sqlite.org/see/doc/trunk/www/readme.wiki)

```
ATTACH DATABASE 'file2.db' AS two KEY 'xyzzy';

```

---

<div class="post-metadata">

**Author:** ![RexCalifornia](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@RexCalifornia](https://clarionhub.com/u/RexCalifornia)\
**Post date:** [April 7, 2022, 9:44pm UTC](https://clarionhub.com/t/sqlite-driver-c11/4971/6 "2022-04-07T21:44:09Z")

</div>

Thank you.

I was just trying to password protect the db. to prevented opening by another app, not trying to encrypt data. It seems that password only works if Encryption Extension is purchased.
