Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / New Plugin for DBP: DBP_TPC_Databases

Author
Message
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Jun 2005 06:43 Edited at: 30th Jun 2005 01:14
Howdy folks. Working on a Database TPC for DBP that will encompass MS Access, SQL Server, and hopefully MySQL. The current version is the beta release for the MS Access (.mdb) portion so far. The TPC is free for use and redist etc. The download includes the tpc dll file, documentation as a word .doc file, and a keyword ini file. Hopefully some of you can give it a go and let me know what you think.

Download the TPC from:
http://www.mod2software.com/dbp/dbp.htm
(located at bottom of table, requires DBP and .NET Framework 1.1 or higher)



DBP Plugins Latest Plugin: DBP_TPC_Databases
Vues3d on Kalimee
20
Years of Service
User Offline
Joined: 12th May 2004
Location: NYON (SWITZERLAND)
Posted: 29th Jun 2005 19:03
Excellent idea & exactly what I was wishing for!
I will have a try this week-end!!!!!!




Guido
http://www.vues3d.com
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Jun 2005 23:37
Thanks

Update: I added the keyword file to the zip. If you already downloaded the zip you can redownload it to obtain the keyword file. Copy the keyword ini file to your Editor/Keywords directory. The doc and the dll have not changed.

Here is some sample DBP code I was using during testsing. It contains a Connection String example (i had mdb file in same dir with dbp exe), as well as a bunch of the commands. Its not a single piece of code so I wouldnt suggest unremming the whole thing and running it The database file contained the following format

tbl_Test
col: RID - AutoNumber, not for replication, primary key
col: Test1 - Text 50
col: Test2 - Text 50
col: Test3 - Text 50



DBP Plugins-Latest: Databases Plugin!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 29th Jun 2005 23:57
Encroaching on mySQL database access, eh ?

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 30th Jun 2005 00:34 Edited at: 30th Jun 2005 00:36
Actually I'll gladly bypass MySQL and just do Access and SQL Server, I wasnt sure if your tpc was still around/supported/fully functional/etc...

I'll take your post as a "yes it is".



DBP Plugins Latest Plugin: DBP_TPC_Databases
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 30th Jun 2005 01:45
Jimmy
21
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 30th Jun 2005 03:16
Why couldn't you do MySQL? You're using .NET so isn't it all pretty much the same?

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 30th Jun 2005 03:47
I never said "couldn't", I said "hopefully" since I never worked with mysql nor do I have an mysql dbl to develop against. That whole point is moot anyway since TCA has a mysql tpc already. I will finish MSAccess and add SQL Server.

DBP Plugins Latest Plugin: DBP_TPC_Databases
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 30th Jun 2005 15:38
Great work Rustler, if I hadnt just sorted out how im storing all my data id use this !
Keep it up.

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 30th Jun 2005 22:28
Thanks. Once I have some feedback on the ms access bit I'll add the SQL Server stuff.

DBP Plugins Latest Plugin: DBP_TPC_Databases
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 1st Jul 2005 02:20
CR, you PWN!


Home of the Cartography Shop - DarkBASIC Professional map importer
David R
21
Years of Service
User Offline
Joined: 9th Sep 2003
Location: 3.14
Posted: 1st Jul 2005 02:47
Wow this is great stuff ! Fantastic and very useful.

One thing though; Doesn't M$ have some legal restriction on the usage/manipulation of Jet-based databases? Not sure if that's true, but I'm sure I've heard it somewhere.

Anyway. Good stuff

[url=www.lightningstudios.co.uk][/url]
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 1st Jul 2005 07:26
lol Pex.

DavidR, I'm not sure. I dont think I am breaking any m$ laws by bridging the gap between dbp and mssql/access As long as the database files you manipulate are your own, or used by permission from their creators I dont see a problem. Let me know how you get on, and/or if you get arrested j/k

DBP Plugins Latest Plugin: DBP_TPC_Databases
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 5th Jul 2005 01:05 Edited at: 10th Jul 2005 01:37
UPDATE: DBP_TPC_MSAccess.zip

I decided to repackage this plugin as a separate plugin per type. I realized it would be silly to have it all jammed in one tpc, and thusly all compiled into your dbp exe when you are probably only going to use a single type at any one time.

The package that was posted on the web page has been replaced with DBP_TPC_MSAccess.zip. The core code hasnt changed but the files have been renamed accordingly. You may want to delete the old files from your system and replace them with the newly named ones for clarity.

I will be adding the DBP_TPC_SQLServer.zip package to the website either today or tomorrow. Any feedback that you can provide regarding the MSAccess package is greatly appreciated. Has anyone tried it out?

DBP Plugins Latest: MSAccess, SQLServer, MySQL plugins for DBP
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 5th Jul 2005 04:26 Edited at: 10th Jul 2005 01:38
UPDATE: DBP_TPC_SQLServer.zip

The SQL Server plugin has been posted on the site. The file is DBP_TPC_SQLServer.zip, located at the bottom of the page. It contains the dll, a document, and a keywords ini file. All feedback is welcome.

Sample DBP code.
You'll need to adjust your connection string to contain your workstation and/or SQL server machine names, and the database name. The code below is not a complete program so don't unrem the whole thing and expect to run it straight away. It's posted as a reference only.


For this, or any of my other plugins, click the link in my sig.
(home of DBP_NETLIB, EZ_Serv(1.4 coming soon), EZS Tutorials for DBP, TCP/IP plugins, Database plugins)

DBP Plugins Latest: MSAccess, SQLServer, MySQL plugins for DBP
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 10th Jul 2005 01:49
UPDATE: DBP_TPC_MySQL.zip

The MySQL Server plugin (generic ODBC) has been posted on the site. The file is DBP_TPC_MySQL.zip, located at the bottom of the page. It contains the dll, a document, and a keywords ini file. All feedback is welcome.

Sample DBP code.
You'll need to adjust your connection string to contain your MySQL server machine name, the database name, and any user/password credentials. The code below is not a complete program so don't unrem the whole thing and expect to run it straight away. It's posted as a reference only.


You may find it necessary to download and install an ODBC driver for your operating system in order for this tpc to work correctly. The driver I installed was named MyODBC-3.51.11-2-win.exe. After this installation it was not necessary to create a *DSN entry in the ODBC system entries. This tpc was developed on a win2k pro system using .NET 1.1, and mysql version 5.0.7 beta release.

For this, or any of my other plugins, click the link in my sig.
(home of DBP_NETLIB, EZ_Serv(1.4 coming soon), EZS Tutorials for DBP, TCP/IP plugins, and Database plugins)

DBP Plugins Latest: MSAccess, SQLServer, MySQL plugins for DBP
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 11th Jul 2005 23:32
can i use this in VB? as its a .NET dll?

Always available to help
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 12th Jul 2005 00:17
they are exported for DBP, so I wouldn't attempt to. Also, why would you want to? do you mean vb6 or .net? The plugins are dumbed down for dbp since dbp cant pass/return complex objects to/from tpcs. I am going to make a pure .NET version of these for my own needs in .net programming, which can pass Param() objects and entire dataset objects etc, so there is no need for the iteration functions etc.

DBP Plugins Latest: MSAccess, SQLServer, MySQL plugins for DBP
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 12th Jul 2005 00:37
Ah,

Yea i just want to be able to have a portable database with my *secret application*

Always available to help
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 12th Jul 2005 09:57
ok.
use ms access (.mdb)

but for vb/vbnet you can use ado/ado.net respectively. no need for these dll's in those langs.

DBP Plugins Latest: MSAccess, SQLServer, MySQL plugins for DBP
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 12th Jul 2005 15:05
Quote: "That whole point is moot anyway"

hehehe, you said 'moot'

Jimmy wannabe
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 12th Jul 2005 18:38
Ah rite, cheers

Always available to help

Login to post a reply

Server time is: 2024-09-29 08:34:27
Your offset time is: 2024-09-29 08:34:27