Part of Database drivers: the hub. 37 entries under this heading; every entry opens as its own topic.
- MySQL deployment: what goes on each client machine besides the application - the ODBC client driver on every workstation, a DSN only when the owner names one.
- PostgreSQL: installing the server and the psqlODBC driver at customer sites - SetupBuilder + a small Clarion setup app, or the regular installer plus pgpass.conf and psql.
- MySQL / MariaDB / PostgreSQL: can the Clarion application create the database itself on a clean server? - the installer, a starter backup, PROP:SQL with the right privilege, or the engine's command-line client.
- PostgreSQL: where are my databases on disk, and how do I keep several on one machine? - one cluster, databases by OID, tablespaces, initdb.
- Firebird: Classic, SuperClassic or SuperServer for a small Clarion application? - the installer default; a 2012 view.
- Does a Clarion 6 application work against SQL Server 2008, and what about the new DATE and TIME columns? - yes in the posters' shops; driver builds 9058 / 9059 for the new types.
- Business rules in the app, the dictionary or the SQL server, when the backend may change later? - dictionary metadata travels; plain SQL, simple views.
- SQL Server service will not start: "The service did not start due to a logon failure" (error 1069) - edit the Log On account in the Services list; a stray
.\in front of the user name was the cause. - Can one application switch between SQL back ends at run time (ODBC, ADO, connection strings)? (Reported, not reproduced) - yes with care: the auto-number method and the data types differ; ODBC or ADO with plain SQL or conditional code per back end.
- SQL Server 2005 Express: setting mixed-mode authentication from the command line of the installer (Reported, not reproduced) - one poster uses
/qb INSTANCENAME=MSSQL ADDLOCAL=All SECURITYMODE=SQL SAPWD=... DISABLENETWORKPROTOCOLS=0; the LoginMode registry value was the other lead; no outcome was posted. - Moving from embedded Firebird to a Firebird server: where to install the program and the data (Reported, not reproduced) - install the program on a share or once on the server; keep the database in one folder, define an alias in alias.conf and put the alias in the connection string; nothing was confirmed.
- PostgreSQL: two sites working on the same data - live replication or one remote database? (Reported, not reproduced) - postgreSQL can replicate (PGPOOL and EnterpriseDB were named) and UUID keys make a sync easier; moving the desktop application next to the data was the other idea; no choice was posted.
- Testing a SQL Server 2000 application on a laptop with MSDE: how to move the database across - three ways were offered: backup and restore into an empty database, or attach the files; the poster did not say which he used.
- PostgreSQL 8.2 service starts and then stops after a Vista and PostgreSQL reinstall (Reported, not reproduced) - the event logs and a web forum thread with the same message were suggested; the thread did not help the poster and no fix was posted.
- A client's other contractor wants read and write access to your application's SQL tables - three posters advised controlled export and import functions with your application the only program touching the tables; if direct access is unavoidable, get a written waiver first.
- Managing record layout changes in a SQL database (other than FM3) - four ways were given, all running scripts against the server, the first a version number in the dictionary compared at start-up with the database.
- One application for an ERP that runs on MSSQL at some sites and DB2 (iSeries) at others: one dictionary, ODBC for both - use the ODBC driver for both and keep one connection string per site; if one system needs both at once, avoid views across them and use a linked server on the MSSQL side.
- Free administration tools for Firebird and PostgreSQL - FlameRobin, IBExpert and EMS SQL Manager for Firebird; pgAdmin III and the free EMS SQL Manager Lite for PostgreSQL.
- MySQL: which storage engine to choose, InnoDB or MyISAM? - InnoDB when you need transactions (LOGOUT and COMMIT) or foreign-language characters; the poster chose InnoDB.
- MSSQL: how to get the script that upgrades an original database to a changed copy with new tables - a schema comparison tool (SQL Compare from Red Gate was named) produced the upgrade script and worked for the poster; the Synchronizer was suggested but not tried.
- Moving 400+ TopSpeed tables to PostgreSQL: export CSV and load with COPY - a small app exports one CSV per table, with dates and times formatted for COPY, and a script loads each file with COPY; TopScan can export a table you cannot rebuild otherwise.
- Nightly sync of a TopSpeed table to MySQL: write a small scheduled app over ODBC - skip the text file: a scheduled convert utility reads the TPS file and writes to MySQL directly; Perl with the TopSpeed ODBC driver was another route.
- MSDE: the silent install accepts only Windows authentication, and SQL logins are refused - the INI file was not found, so MSDE took its default mode; pass SECURITYMODE=SQL on the command line, or switch an installed engine to mixed mode through a registry entry (Microsoft KB 285097).
- MSSQL: "Invalid Instance" on a freshly installed PC, and which client software the customer needs - the fresh PC lacked a SQL Server ODBC driver; Management Studio does not supply it, so install the driver with the app.
- Trying a TopSpeed application on a free SQL database: which driver, and where does the DSN live? - pick PostgreSQL, Firebird or MySQL, install its ODBC driver on the client, switch the file driver to ODBC and start with a DSN; the free dct2sql templates create the tables.
- Firebird embedded mode with a Clarion application: what it is and how the ODBC driver reaches it - the embedded library runs inside the application with no service; rename it to fbclient.dll or gds32.dll so the ODBC driver loads it.
- Firebird 2.0: a third-party tool asks for GDS32.dll and a copy of fbclient.dll did not help (Reported, not reproduced) - the instclient.exe utility in the Firebird bin folder generates the compatibility client; the tool's author said the message is only a hint; no outcome was posted.
- MS SQL Server: the transaction log keeps growing although a nightly backup runs, and does Clarion issue a CHECKPOINT? - back up regularly; if the log still does not shrink, backup, shrink and backup again, and check the recovery model; whether Clarion issues a CHECKPOINT was not answered.
- Which database server can I run on Linux for a Windows/Clarion client application? - SQL Anywhere, Firebird and Pervasive were named, and one poster listed commercial servers he trusts; opinions from 2004, nothing tested with a Clarion driver.
- XAMPP: mysqld is listed as a service but will not start (portable setup, port conflicts) - run setup_xampp.bat again and choose the absolute path instead of the portable one; Skype using port 80 was another poster's cause.
- Firebird: is there a tool that turns a Clarion dictionary into a Firebird SQL script? - the DCT 2 SQL templates write Firebird scripts; give each file an auto-increment first LONG field, let the template write the triggers, and post the errors.
- Firebird: creating users and roles, from a tool or from inside the Clarion application - IBExpert's User Manager creates users; roles take CREATE ROLE and then GRANT, and the application can send the same two statements.
- MSSQL Express 2005: how to find the size of a database before it reaches the 4 GB cap - Read the database size from the server (DataSpaceUsage) or use a free size-checking tool, and warn the user before the 4 GB per-database cap of Express is reached.
- Dictionary changes on a SQL database: how to get the ALTER TABLE statements, and how to move DAT data into SQL - Write ALTER statements by hand, diff old and new generated scripts, or use File Manager 3; DAT data goes in via a Clarion program, BCP/DTS or an import template.
- Shipping MS SQL tables to clients: generating create and alter scripts from a data model - Generate create and alter scripts from an ER data model tool and run them on the client; the tool can compare a model to a database and import the changes.
- MSDE databases hit the 2 GB size cap: shrinking the records did not help, a second database might - Normalize and use varchar; shrinking records gained little, and the size cap is per database, so a second database was suggested.
- Determining if MSDE is installed before the application connects - Detect MSDE or SQL Server instances and their version with SQL-DMO COM objects or the ODBC SQLBrowseConnect call; FM3 examples also cover it.