Hello,
is there a way to use NexusDB as embedded Server with UniDAC?
If so, can you give me an example to create a database and connect at runtime?
NexusDB Embedded
-
AndreyZ
Hello,
Yes, you can use NexusDB as Embedded database server and work with it using UniDAC. NexusDB database is represented by a folder (with the .nx1 files in it) on the hard disk. To work with such folder, you can use the following code:
Yes, you can use NexusDB as Embedded database server and work with it using UniDAC. NexusDB database is represented by a folder (with the .nx1 files in it) on the hard disk. To work with such folder, you can use the following code:
Code: Select all
UniConnection.ProviderName := 'NexusDB';
UniConnection.Database := 'path';
UniConnection.LoginPrompt := False;
UniConnection.Open;
UniConnection.ExecSQL('create table test(id int)', []); // here the new table 'test' is created (test.nx1)-
PixAndMore
- Posts: 11
- Joined: Mon 16 Aug 2010 04:13
- Location: Holzwickede
Hello,
thank you for your answer. I have tried to recompile the NexusDB provider, but I can't. In your source there are used "nexus...308" but from Nexus I have got the version 3.09. Changing the uses lines brings no solution, because there are some units unknown and in another module is a compilation failure...
Any ideas?
Regards, Kai
thank you for your answer. I have tried to recompile the NexusDB provider, but I can't. In your source there are used "nexus...308" but from Nexus I have got the version 3.09. Changing the uses lines brings no solution, because there are some units unknown and in another module is a compilation failure...
Any ideas?
Regards, Kai
-
AndreyZ