# SQLiteDataBase: Incompete Input?

**URL:** <https://forum.xojo.com/t/sqlitedatabase-incompete-input/88020>\
**Category:** Databases\
**Created:** [April 5, 2026, 5:45pm UTC](https://forum.xojo.com/t/sqlitedatabase-incompete-input/88020 "2026-04-05T17:45:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [April 5, 2026, 5:45pm UTC](https://forum.xojo.com/t/sqlitedatabase-incompete-input/88020/1 "2026-04-05T17:45:46Z")

</div>

I got this error:

 ![image](https://forum.xojo.com/uploads/default/original/3X/b/6/b67253e83690c15d4d730d9b5c5ffc94ad613cde.jpeg)

It was in this line:  
`rowsFound = db.SelectSQL("SELECT * FROM " + db_Table_Name)`

Erreur de lecture is Read Error.

I found it: `db_Table_Name` was certainly empty because when I put manually the table name, the code runs correctly.

So, this is not a question, buta “For Your Info” if you ran into this error…

---

<div class="post-metadata">

**Author:** ![Jose\_Fernandez\_del\_Valle](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/9de0a6/32.png) [@Jose\_Fernandez\_del\_Valle](https://forum.xojo.com/u/Jose_Fernandez_del_Valle)\
**Post date:** [April 5, 2026, 6:06pm UTC](https://forum.xojo.com/t/sqlitedatabase-incompete-input/88020/2 "2026-04-05T18:06:00Z")

</div>

> [@Emile\_Schwarz](#):
>
> rowsFound = db.SelectSQL("SELECT \* FROM " + db\_Table\_Name)

Try this :

```auto
rowsFound = db.SelectSQL("SELECT * FROM " + db_Table_Name + ";")

```

OR

```auto
Var Qbe_Sintax As String

Qbe_Sintax = "SELECT * FROM " + db_Table_Name + ";"
rowsFound = db.SelectSQL(Qbe_Sintax)

```

---

<div class="post-metadata">

**Author:** ![Jose\_Fernandez\_del\_Valle](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/9de0a6/32.png) [@Jose\_Fernandez\_del\_Valle](https://forum.xojo.com/u/Jose_Fernandez_del_Valle)\
**Post date:** [April 5, 2026, 6:08pm UTC](https://forum.xojo.com/t/sqlitedatabase-incompete-input/88020/3 "2026-04-05T18:08:26Z")

</div>

If db\_Table\_Name contains spaces.

Try this:

```auto
Var Qbe_Sintax As String

Qbe_Sintax = "SELECT * FROM " + db_Table_Name.Trim + ";"
rowsFound = db.SelectSQL(Qbe_Sintax)

```

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [April 5, 2026, 6:15pm UTC](https://forum.xojo.com/t/sqlitedatabase-incompete-input/88020/4 "2026-04-05T18:15:34Z")

</div>

Thank you for trying to help.

“;” is not needed with Xojo (apparently).

I do not checked, but I made it working when I delete the variable (Table Name) and replace it with the table name. For Debug it was OK.

Now (back home), I have to check where I forget to store the TABLE name into the `db_Table_Name` property.

---

<div class="post-metadata">

**Author:** ![Jose\_Fernandez\_del\_Valle](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/9de0a6/32.png) [@Jose\_Fernandez\_del\_Valle](https://forum.xojo.com/u/Jose_Fernandez_del_Valle)\
**Post date:** [April 5, 2026, 6:20pm UTC](https://forum.xojo.com/t/sqlitedatabase-incompete-input/88020/5 "2026-04-05T18:20:35Z")

</div>

> [@Jose\_Fernandez\_del\_Valle](#):
>
> `SelectSQL`

Remember that what you’re sending in `SELECT SQL()` is syntax compatible with the database you’re currently using.

Databases like PostgreSQL require the semicolon. It’s good practice to use it if the database allows it, to delimit the end of the SQL syntax.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [April 5, 2026, 6:32pm UTC](https://forum.xojo.com/t/sqlitedatabase-incompete-input/88020/6 "2026-04-05T18:32:08Z")

</div>

SQLite is the DB I use.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [April 5, 2026, 6:35pm UTC](https://forum.xojo.com/t/sqlitedatabase-incompete-input/88020/7 "2026-04-05T18:35:41Z")

</div>

That was that, I forgot to store the `TABLE` name in the `db_Table_Name` Property.

I forget (I think) to say that I never get that error ! Thus this thread.
