Search found 20 matches

by skippy
Mon 11 Jan 2016 08:37
Forum: Universal Data Access Components
Topic: sqlite3 error: file is encrypted or is not a database
Replies: 3
Views: 7564

Re: sqlite3 error: file is encrypted or is not a database

Yes that was my assumption, but why do I get this error then ?
by skippy
Tue 05 Jan 2016 16:16
Forum: Universal Data Access Components
Topic: sqlite3 error: file is encrypted or is not a database
Replies: 3
Views: 7564

sqlite3 error: file is encrypted or is not a database

Hi,

I'm using UniDac 4.38 and user TUniConnection, TSQLiteUniProvider and TUniScript to create SQLite3 Database. Everything works fine, but when I try to use it in a SQLite client, I get the above error. I don't have any encryption on the db, but I heard that could be a version mismatch in SQLite. I presume that UniDac is creating SQLite3 db and not SQLIte2.

Any idea ?
Thanks

-------------------------------
I use the folowing code:

procedure Tdmod.CreateDB(AName: string);
begin
CloseDB;
// ---
Connection.SpecificOptions.Values['ForceCreateDatabase'] := 'True';
connection.Database := AName;
UniScript1.Execute;
end;

-------------- script: -----------------
DROP TABLE IF EXISTS "APP";

CREATE TABLE "APP" (
Name VARCHAR(30) PRIMARY KEY NOT NULL,
Prod CHAR(10),
Desc MEMO
);

DROP TABLE IF EXISTS "FIELD";

CREATE TABLE "FIELD" (
Name VARCHAR(30),
APP VARCHAR(30),
Desc MEMO
);

CREATE UNIQUE INDEX IDX_FieldApp ON Field (Name,App);
by skippy
Tue 23 Jul 2013 10:36
Forum: Universal Data Access Components
Topic: dclunidac.bpl needs recompilation
Replies: 7
Views: 1192

Re: dclunidac.bpl needs recompilation

Works now :)
After uninstall/install it again, I saw that I could activate the component now in the Install Packages dialog. Creating a new project was fine then, but the existing project couldn't find the components. This was because it was somewhere getting to ExcludedComponents section in the project file. Removed it and everything works fine now.

Luckily I don't need to reinstall the whole IDE again :D

Thanks.
by skippy
Mon 22 Jul 2013 21:57
Forum: Universal Data Access Components
Topic: dclunidac.bpl needs recompilation
Replies: 7
Views: 1192

Re: dclunidac.bpl needs recompilation

I have even uninstalled XE3 to avoid complications with it. Same problem....
After a new installation, unidac160.bpl is present in SYSTEM32 and SYSWOW64. No change after renaming.

So I'm really stuck....
by skippy
Mon 22 Jul 2013 20:31
Forum: Universal Data Access Components
Topic: dclunidac.bpl needs recompilation
Replies: 7
Views: 1192

Re: dclunidac.bpl needs recompilation

Hi,

after I uninstalled unidac there are no unidac*.bpl, uni*.dcu, mem*.dcu or dbacc*.dcu in the system. I install always using the install exe, after which the bpl dcus are there.

So I still don't see how to solve the issue.

Thanks.
by skippy
Mon 22 Jul 2013 11:39
Forum: Universal Data Access Components
Topic: dclunidac.bpl needs recompilation
Replies: 7
Views: 1192

Re: dclunidac.bpl needs recompilation

I have uninstalled, no bpls were found somewhere, installed again.
Still the same message comes up for dclunidac160,bpl. In the component list all other devart components are ok, but not sclunidac160.
by skippy
Sun 21 Jul 2013 21:14
Forum: Universal Data Access Components
Topic: dclunidac.bpl needs recompilation
Replies: 7
Views: 1192

dclunidac.bpl needs recompilation

Hi,

I have installed UnidDac for XE2 again since a while. Now when I load a project with unidac components, I get the message "dclunidac160.bpl" needs recompilation before installing (i get the message in german language, so it might be a bit different from the original english text).

I don't have the sources. Any idea how to solve this problem ?

Thanks.
by skippy
Mon 31 May 2010 11:58
Forum: Universal Data Access Components
Topic: Timeout for TUniConnection
Replies: 1
Views: 1887

Timeout for TUniConnection

Hi,

I'm using a Firebird Database and I'm having the problem, if the ip is not available (e.g. no connection to the local network), it tries to connect forever. Is it possible to give a time, 10 seconds for instance, after which it the connect will be cancelled if not successful ?

TIA
by skippy
Tue 23 Mar 2010 20:43
Forum: Universal Data Access Components
Topic: Firebird VERY slow with a VPN
Replies: 1
Views: 2865

Firebird VERY slow with a VPN

Hi,

I'm using a firebird database on a server which is connected through a VPN. The connection is VERY slow, about 30 seconds for 50 records with 6 memo and 10 other fields. Not much data. But I can use many other applications with no problems. Even Remote Desktop is usable.

Question 1: Does anybody know how I can locate any problems ?
Question 2: A connection without active VPN will last forever. Is there any timeout I can set ?

Thanks for any hint.
by skippy
Mon 15 Mar 2010 21:03
Forum: Universal Data Access Components
Topic: Error 104 in FB when using a Blob Field
Replies: 4
Views: 1569

:D

Thanks, works fine !!!
by skippy
Mon 15 Mar 2010 08:50
Forum: Universal Data Access Components
Topic: Error 104 in FB when using a Blob Field
Replies: 4
Views: 1569

...which is pretty much the same, isn't it ?
by skippy
Sun 14 Mar 2010 19:17
Forum: Universal Data Access Components
Topic: Error 104 in FB when using a Blob Field
Replies: 4
Views: 1569

Error 104 in FB when using a Blob Field

Hi,

I can't get a file saved in a blob field in a Firebird Database, here's the relevant code snippet:

// tblBinFILE is a TBlobField
// fn is a valid file name with complete path.

tblBin.Append;
tblBinFILENAME.AsString := fn;
tblBinTASK.AsInteger := id;
tblBinFILE.LoadFromFile(fn);
tblBin.Post;

I always get a

Dynamic SQL Error
SQL Error Code = -104
Token unknown - line 2, column 14
FILE.

I don't have any clue what's wrong :(

Can anybody help ?

TIA
by skippy
Sun 29 Nov 2009 10:37
Forum: Universal Data Access Components
Topic: ESQLiteError "constraint failed"
Replies: 4
Views: 2152

Yes, there was another unique index, I was first looking in an older version of the table... :(
Thanks for the hint and *this DB component is really great*

Rgds
by skippy
Wed 04 Nov 2009 15:12
Forum: Universal Data Access Components
Topic: ESQLiteError "constraint failed"
Replies: 4
Views: 2152

But the Primary Key Value is the AutoIncrement ID:

[ID] INTEGER PRIMARY KEY AUTOINCREMENT,
by skippy
Tue 03 Nov 2009 22:58
Forum: Universal Data Access Components
Topic: ESQLiteError "constraint failed"
Replies: 4
Views: 2152

ESQLiteError "constraint failed"

Hi,

using SQLite with UniDAC I always get an exception "constraint failed" at any point in time, can't really find out where exactly, or under which circumstances.

Anyone having an idea ?

Thanks