Create folder sqldrivers in your app folder. Put qsqlodbc.dll here.
Create folder sqldrivers in your app folder. Put qsqlodbc.dll here.
a life without programming is like an empty bottle![]()
Hi,
If i copy everything on the client and make a new directory "sqldrivers" and put my plugin there it works.
Maybe i have not explain exactly: I copyed everything on a server and i created a shortcut on a client. I was able to run the app from the client, but not to use the odbc plugin. I get the error message on the client "DRIVER NOT LOADED".
Have i a solution for that?
THX
Think DigitalGasoline
Problem with paths!
Use something like FileMonitor for searching what dll and where needed by your app in other comp
a life without programming is like an empty bottle![]()
You might be missing some ODBC client libraries.
hi wysota,
where should i find the client libs? I have compiled qsqlodbc from qt source..
Think DigitalGasoline
how did you bild it if you havent needed libs?
I surly recomended you use FileMonitor![]()
p.s. ODBC its not best way conect to database server,use native database driver for it![]()
a life without programming is like an empty bottle![]()
hi
i tried to copy "libqlqlodbc.a" to the server, but i get the same error message
FileMonitor should help me,its true.
I read about native driver. The Docs say that on should use native driver instead of odbc..
But i found nothing how to create a native driver and how to connect with..
Have you informations about native drivers?
Think DigitalGasoline
Try copying the .dll file instead. That .a file is needed only for linking.Originally Posted by raphaelf
Hi Jacek,
I tried allready to copy qsqlodbc.dll to the app directory and tried also to create a folder "sqldrivers" and copy the qsqlodbc.dll there.
I have a problem with starting the app from a client via shortcut
If i copy the app, dlls on the client it works..But we want to create on every client just a shortcut from the app that is on the server. If we change something on the app, we will have to make nothing on every client..
Think DigitalGasoline
Try changing the working directory to the one where the app binary resides before running the application, so that the driver for sql database is in "$PWD/sqldrivers".Originally Posted by raphaelf
BTW. You must have Qt libraries on every host anyway. Can't you place the sql driver on every host too along those libraries?
hi,
yes i will install on every host the qsqlodbc.dll file and make a user variable, of course with installshield![]()
thx for all reply..
Think DigitalGasoline
sorry but what database server you use ?Originally Posted by raphaelf
Postgre? Firebird? Oracle? ...![]()
a life without programming is like an empty bottle![]()
MS SQL SERVER 7.0![]()
Think DigitalGasoline
Hm..Qt havnt direct driver for it..You must use odbc...
I think you must have 2 dll:
one - qsqlodbc.dll what must be copied in sqldrivers folder
second - someodbc.dll what must be in the same with app folder
Dont ask me what is someodbc.dll![]()
a life without programming is like an empty bottle![]()
Bookmarks