dbexpress

How does a .NET program behave differently when run with and without debugging in Visual Studio?

I'm getting an Access Violation in DBEXPSDA40.DLL (Dev Art MS SQL Server dbexpress driver) on closing down my .NET application. My application (VB.NET) calls a Delphi written COM Server which uses dbexpress to connect to SQL Server. If I do the same thing, but my host application is a native Delphi application, or Excel VBA, then I do n...

TSQLConnection to a user chosen DSN at runtime

Hi, I want to use dbExpress and a TSQLConnection object to allow the user of my application to connect to any of their ODBC dsn and run a SQL query against it. I have it so the user can select a DSN, (by DSN i mean all the configured data sources listed in control panel - administrative tools - Data Sources (ODBC)), but once they have ...

Is it possible to tweak TStringField to work like TWideStringField in Delphi?

We want to use Unicode with Delphi 2009 and Interbase, and found that to switch the character encoding from WIN1252 to UNICODE_FSS or UTF8 we first have to replace all instances of TStringField with TWideStringField in all datamodules. For around 60 datamodules, we can not simply do this over one weekend. I can see only two options for a...

Problems upgrading MySQL application from Delphi 2006 to 2010

I upgraded my Delphi to 2010 version and I tried to open and run application written in Delphi 2006. The app is using mysql by dbexpress with libmysql.dll and a second driver found somewhere on the Internet. I can't run it on 2010. I'm always getting "missing libmysql.dll library". I tried to get new version of it but it didn't help. C...

Connecting to SQL Server 2005 via web service

Delphi 2010, dbExpress, and SQL Server 2005 DB I am trying to make a connection to a SQL Server 2005 DB using Delphi 2010 & DBExpress. If I create a standard delphi application and hard code my connection (IT WORKS!): procedure TForm1.Button1Click(Sender: TObject); var Conn: TSQLConnection; begin Conn:= TSQLConnection.Create(nil); ...

Connecting to SQL Server database via Web service

1.) I can create a simple application which has one routine called function ConnectToDB: Boolean and run it from my virtual directory (wwwroot/cgi-bin) and it connects and reports back connected . 2.) I can create a simple web service helloWorld function helloWorld: String;stdcall; I can create a client and call my web service ca...

Mysql latin1 turkish data and delphi 2010 utf8

Hello, I have tables collating latin1_general_ci and have turkish character values. And i can use this data on delphi 7+zeos with no problem. but i want to upgrade my delphi to 2010 version but zeos too slow as i saw. so i want to use odbc+ado or dbexpress solution. dbexpress solution works fine , display my data as entered and write ...

SQL Server 2005 and 'General network error'

I know there is a lot of information in the Internet about solving this problem, but it didn't help me. My Delphi application uses dbExpress controls to access the database and execute SQL queries. Once every couple of days, however, it stops working because the database connection fails. This happens on several different computers wit...

DBExpress connecting SQL 2008 at runtime with Delphi 2009

Hi, I'm trying to connect at runtime with SQL Server 2008 with Delphi 2009 using DBExpress, it it's not working. When I set all the properties at design time, it works great, but at RunTime, I'm getting "unknown driver: mssql". Below is the code: scnConexao := TSQLConnection.Create(nil); scnConexao.DriverName := 'MSSQL'; scnCone...

sql server 2005 delphi 2010 dbexpress connection

Trying to connect to sql server 2005 with delphi 2010 gives me the following error after configuring the data explorer: 'Borland.data.TDBXError: DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, or wrong version' I know there is a work around by installing the sql server 2008 man...

Delphi 2010 and Firebird - what DLL need to be included to deploy

Assuming the Firebird client is installed what additional files need to be included with a Delphi 2010 application that uses dbExpress to access the Firebird database. I assume dbxfb.dll (midas is included in the project 'uses') is required. Any others? ...

String Truncation on Transfer to ClientDataset

I'm using Firebird 2.1, DBExpress Driver from DevArt and Delphi 2010. Some of my reports that used to work with Delphi 2006 stopped working and produced an error message indicating that "arithmetic exception, numeric overflow, or string truncation" had occurred. The error occurred at this point in my code: cds.Data := dsProvider.Data;...

delphi 2010 and dbexpress firebird driver

I am getting to know the dbexpress firebird driver from Chau Chee-Yang (http://sites.google.com/site/dbxfirebird/) I find it hard to install because there is very little information, I succeded making a connection, but several questions arise: When using the data explorer and I want to connect to the database sends me the following erro...

Stack corruption when using TSQLConnection.SetTraceEvent ?

I've multithreaded application where new TSQLConnection is created for each thread. If I try to use tracing (TSQLConnection.SetTraceEvent or TSQLMonitoring) I get the trace results as expected, but after that the main thread seems to beserk when I try to use any database functionality. Application throws excpetion "access violation at 0x...

copy records in a master/detail clientdataset delphi dbexpress

Hello everyone How can I copy the information of a record from a master/detail clientdataset to a new record or to an existing one. For example I want to copy te data of invoice No. 100 to Invoice No. 150 or the information of invoice No. 100 to a new Invoice With IBX I did that with storedprocedures but I am running into trouble with ...

Which dbExpress ServerCharSet do I need for utf8 data in MySQL 5?

We tried ServerCharSet=utf8 and ServerCharSet=UTF8, based on information found in newsgroups - but still, special characters / Umlauts do not appear correctly in the client data. We use Delphi 2009 and the built-in dbExpress driver. Field data is retrieved using AsWideString. ...

Should I use ApplyUpdates(0) or ApplyUpdates(-1)?

The Delphi XE dbExpress tutorial in the online documentation uses ApplyUpdates(-1): // Client data set has provider do update. ClientDataSet1.ApplyUpdates(-1); Some online sources however say it would have advantages to use ApplyUpdates(0), and it would be a widespread mistake or bad practice to use -1. Is this true? And when and ...