SQLWIN question

SQLWIN question

Postby Marc Vanzegbroeck » Sat Dec 06, 2008 9:34 am

Hi,

Is it already possible to open SQLITE-files with SQLWIN?
I downloaded it,but I don't find the include-files.

Thanks,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Antonio Linares » Sat Dec 06, 2008 9:54 am

Marc,

No, not yet. SQLWIN is on a very early development stage.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Marc Vanzegbroeck » Sat Dec 06, 2008 10:15 am

Thanks for ths info.

By the way, do you know I can open/edit sqlite with foxpro? I need to change some data in a sqlite-database and wanted to do it with FWH, but because it doesn't work yet, I want to open it in foxpro and maybe convert it to dbf.

Thanks,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Antonio Linares » Sat Dec 06, 2008 11:35 am

Marc,

You may try ourxdbu from Miguel Marchuet:

http://sourceforge.net/projects/ourxdbu/
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Carlos Mora » Sat Dec 06, 2008 8:36 pm

Hi Mark,

if you use Firefox, the browser, try to install an extention called 'Sqlite manager'. It is like a DBU, but runs inside the browser. It' only a few Kb to download. This extention surprised me buecause its small, and very complete.

I'm not sure, but may be you con try to access sqlite using ADO. Rafa Carmona (aka thefull) wrote some time ago some functions to access sqlite, but i never used them.

best regards,
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Postby Marc Vanzegbroeck » Sun Dec 07, 2008 9:13 pm

Antonio, OurXdbu can't read the SQLite-file.

Carlos, I wiil try the firefox with Sqlite manager.

Thanks,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Antonio Linares » Sun Dec 07, 2008 10:33 pm

Marc,

> OurXdbu can't read the SQLite-file

If you report it to its developer, M.A. Marchuet, he will surely add support for it.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Marc Vanzegbroeck » Mon Dec 08, 2008 8:22 am

Hi,

I found this example on a Foxpro-forum. It's working very nice in VFP.
Can it be translated to FWH?

Code: Select all  Expand view
Local lcDatabase, lcUser, lcPassword, lnHandle
lcDatabase = "my.db"
lcUser = "user"
lcPassword = "password"

lnHandle = db_connect(lcDatabase, lcUser, lcPassword)

If lnHandle>=0
   Local lcAlias
   lcAlias = "mycursor"
   SQLExec(lnHandle,"select * from mytable",lcAlias)
   Select (lcAlias)
   Browse
   db_disconnect(lnHandle)
Else
   ? "connect failed"
Endif

Procedure db_connect()
   Lparameters tcDatabase, tcUser, tcPassword
   Local lnHandle
   strng="DRIVER=SQLite3 ODBC Driver;Database=d:\mydb.db;LongNames=0;Timeout=1000;NoTXN=0;SyncPragma=NORMAL;StepAPI=0;"
   lnHandle = Sqlstringconnect(strng)
   Return lnHandle
Endproc

Procedure db_disconnect()
   Lparameters tnHandle

   SQLDisconnect(tnHandle)
Endproc


You have to install the ODBC-driver http://www.ch-werner.de/sqliteodbc/ first.

Thanks,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Antonio Linares » Mon Dec 08, 2008 8:50 am

Marc,

This code from Rafa (TheFull) may help you:

http://forums.fivetechsoft.com/viewtopic.php?t=7358
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Marc Vanzegbroeck » Mon Dec 08, 2008 10:21 am

Antonio,

Thanks for the link. I have follow the link to thefull's blog. Maybe my Spanish translator didn't translate it very good, but I didn't found the code :cry:

Regards,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Antonio Linares » Mon Dec 08, 2008 10:25 am

Marc,

It looks as you have to use CVS to download it:
cvs -z3 -d:pserver:anonymous@t-gtk.cvs.sourceforge.net:/cvsroot/t-gtk co -P sqlite3

or simply copy it from here :-)
http://t-gtk.cvs.sourceforge.net/viewvc/t-gtk/sqlite3/
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Marc Vanzegbroeck » Mon Dec 08, 2008 11:03 am

Thanks,

I will give it a try...

Regards,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Antonio Linares » Fri Dec 12, 2008 4:18 pm

Marc,

This is a great free tool to manage SQLite tables:

http://sqliteadmin.orbmu2k.de/
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Marc Vanzegbroeck » Fri Dec 12, 2008 5:50 pm

Thanks Antonio,

Regards,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 110 guests