WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: edmoran on November 05, 2014, 01:28:15 PM

Title: Winbatch with a local DB
Post by: edmoran on November 05, 2014, 01:28:15 PM
I'd like to setup a simple local database to run with Winbatch.  I've already done ODBC connections but now I'm looking to do something that is all self contained.  Products like FoxPro have their own databases.  Could Winbatch do similar local databases?
Title: Re: Winbatch with a local DB
Post by: JTaylor on November 05, 2014, 06:00:14 PM
SQLLite might be something to look at.

Jim
Title: Re: Winbatch with a local DB
Post by: stanl on November 06, 2014, 07:11:47 AM
or just use fabricated recordsets, easy to create with just the MDAC drivers which come with windows; can be updated, sorted, filtered and placed in Excel.

I wrote the below in 2003 but it gives the general idea.


http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/OLE~with~XML+XML~Recordset~Primer.txt (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/OLE~with~XML+XML~Recordset~Primer.txt)
Title: Re: Winbatch with a local DB
Post by: edmoran on November 06, 2014, 10:44:51 AM
There is a lot to chew on in that article but it seems like that is what I'm looking for.  I just have to understand it.  I'm diving in to try it.  Thanks.

Quote from: stanl on November 06, 2014, 07:11:47 AM
or just use fabricated recordsets, easy to create with just the MDAC drivers which come with windows; can be updated, sorted, filtered and placed in Excel.

I wrote the below in 2003 but it gives the general idea.


http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/OLE~with~XML+XML~Recordset~Primer.txt (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/OLE~with~XML+XML~Recordset~Primer.txt)
Title: Re: Winbatch with a local DB
Post by: edmoran on January 29, 2015, 02:20:16 PM
Getting back on this discussion.  Why did support for the LAFFDB Extender stop?  Will it still work if I try to include it today?

Ed
Title: Re: Winbatch with a local DB
Post by: td on January 29, 2015, 05:59:56 PM
Quote from: edmoran on January 29, 2015, 02:20:16 PM
Getting back on this discussion.  Why did support for the LAFFDB Extender stop? 

Simple answer is that it was too unreliable.

Quote
Will it still work if I try to include it today?

Don't know the answer to that one.  No users have asked any questions about it until now for quite some time.
Title: Re: Winbatch with a local DB
Post by: edmoran on January 30, 2015, 12:04:57 PM
So is the only option to go with XML at this time?  What about SQLite.  Will it work with Winbatch ok?

I think that Winbatch has been EVERYTHING for me for so many years.  But lacking true database functionality puzzles me.  I would think that many people would have  such needs to make more robust utilities.  That would make them true applications.
Title: Re: Winbatch with a local DB
Post by: JTaylor on January 30, 2015, 01:36:11 PM
Yes.  It will work.  Haven't done a lot but enough to know it works.

Not sure what you mean by "true database functionality".   I have used WinBatch with MSSQL Server, Sybase, Oracle, PostgreSQL, MySQL, SQLLite, Access and probably some other databases.   What other language does what you are wanting here that WinBatch doesn't do?


Jim
Title: Re: Winbatch with a local DB
Post by: JTaylor on January 31, 2015, 06:26:24 AM
To follow up....what features do you need?   If security isn't a real concern and your searching needs are very modest perhaps a delimited text file and using the Array functionality would work???

Jim
Title: Re: Winbatch with a local DB
Post by: DAG_P6 on February 01, 2015, 12:40:15 AM
Other options worth considering, all of which I have used from time to time, include XML documents, especially for data that has a naturally hierarchical structure, private profile (INI) files for simpler two-level hierarchies, and a flat file, about which I cannot find my notesat the moment; they may be in an archive.
Title: Re: Winbatch with a local DB
Post by: stanl on February 01, 2015, 04:03:51 AM
fabricated recordset
Title: Re: Winbatch with a local DB
Post by: edmoran on February 10, 2015, 09:24:43 AM
I have used Winbatch before with SQL.  That works fine.

But what I was looking for was built in local database functionality.  If anyone is familiar with FoxPro, that is what I am thinking about.  Foxpro can parse files just like Winbatch but it can also import it into a local DB file to do sorting, etc, of records easier.

I will play around with XML and arrays.  Also I'll try mysql and even the defunct laffdb extender.
Title: Re: Winbatch with a local DB
Post by: JTaylor on February 10, 2015, 10:18:08 AM
I'd forgotten about those type of products....I would still recommend SQLLite or a fabricated recordset (as Stan recommended) as good options unless you have tried them and dismissed them for some reason.   It will keep things simple but allow you to keep with the SQL form of processing.

I would recommend avoiding the LAFFDB extender...can't see that being a good solution for you.

Jim
Title: Re: Winbatch with a local DB
Post by: edmoran on February 26, 2015, 09:58:20 AM
fabricated recordset.  Can you elaborate?
Title: Re: Winbatch with a local DB
Post by: JTaylor on February 26, 2015, 10:52:17 AM
Didn't you reply to Stan early in this conversation that you were reading the article he posted?  I would refer you back to the beginning of the conversation and the links Stan posted.   He's the expert on Fabricated Recordsets.

Jim
Title: Re: Winbatch with a local DB
Post by: edmoran on February 26, 2015, 11:20:14 AM
Yes of course.  I had to re-read the beginning of the thread.  Thanks.