# IP driver: the data server fails when the owner comes from a CSTRING variable

**URL:** <https://forums.softvelocity.com/t/ip-driver-the-data-server-fails-when-the-owner-comes-from-a-cstring-variable/1290>\
**Category:** Knowledge Base\
**Tags:** unverified, database-drivers\
**Created:** [November 9, 2026, 1:56am UTC](https://forums.softvelocity.com/t/ip-driver-the-data-server-fails-when-the-owner-comes-from-a-cstring-variable/1290 "2026-11-09T01:56:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 1:56am UTC](https://forums.softvelocity.com/t/ip-driver-the-data-server-fails-when-the-owner-comes-from-a-cstring-variable/1290/1 "2026-11-09T01:56:58Z")

</div>

**Applies to:** Clarion 6 with the IP driver and IP Data Server (2004, as reported); the STRING-versus-CSTRING advice is general Clarion file-declaration advice.

**Problem**

An IP-enabled application serves a SQL table. The table's owner field in the dictionary is a variable, `!glo:source`. With the data source name written as a literal in the dictionary the IP-enabled application works. With a global `glo:source CSTRING(64)` declared in the server program and set in its setup code (`glo:source = 'data source name'`), the data server (claipdat.exe) fails.

**Solution**

1. Declare the owner variable as a STRING, not a CSTRING. The original poster changed the declaration and reported "it works".
2. The same advice applies to a variable used as a file NAME: CSTRINGs for owners and file names were reported to cause GPFs, and the poster answering pointed out that the documentation asks for a STRING there anyway.

**Caveats**

- The thread did not say why the CSTRING fails; it recorded the symptom and the fix only.
- A side question in the thread asked whether CSTRING columns save disk space in SQL tables. The answer given: do not design for disk space; inside a Clarion program STRING comparisons ignore trailing spaces as with any other driver, but in a separate SQL query tool the spaces count, so CSTRING columns are neater there. Whether changing existing columns is worth it was left to the reader.

**Today (2026)**

Likely unchanged: the file NAME() and OWNER attributes still take a STRING variable, and the documentation still says so. Not re-tested with the current IP driver.

**Sources:** Marc L. (Nov 2004, the question), Bruce J. of CapeSoft, Sukhendu B. (Nov-Dec 2004) in softvelocity.clarion.databasedrivers.
