Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Tutorials
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Tutorials Basic4ppc tutorials

Using MySQL in Basic4PPC

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2010, 10:33 PM
Junior Member
 
Join Date: Nov 2007
Posts: 18
Default Using MySQL in Basic4PPC

Hi all,
I have created a document to explain how to use a MySQL database in a Basic4PPC application. I hope it helps.
Sistemas
Attached Files
File Type: zip How to use MySQL in Basic4PPC.zip (303.8 KB, 679 views)

Last edited by Sistemas : 05-05-2010 at 10:36 PM.
Reply With Quote
  #2 (permalink)  
Old 05-06-2010, 11:59 AM
linum's Avatar
Senior Member
 
Join Date: Sep 2008
Posts: 108
Default

You are da man!

I was looking for a tutorial for using MySQL. I'll give this a shot. Thanks...
Reply With Quote
  #3 (permalink)  
Old 05-06-2010, 04:07 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Well done!

@Erel: What about moving this thread to the tutorial section?


specci48
Reply With Quote
  #4 (permalink)  
Old 05-06-2010, 04:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thank you for sharing this

Moved to 'Tutorials'.
Reply With Quote
  #5 (permalink)  
Old 07-04-2010, 12:58 PM
Junior Member
 
Join Date: Sep 2007
Location: Portugal
Posts: 15
Default Compiling

It's work fine on ide ... but when i try to compile it gives me an error saying that it can't find the

microsoft.data.obdc.dll

Can you help me on that?
Thanks
Reply With Quote
  #6 (permalink)  
Old 07-04-2010, 01:15 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by operprincipal
microsoft.data.obdc.dll

Can you help me on that?
Thanks
You need to install this.


specci48
Reply With Quote
  #7 (permalink)  
Old 07-04-2010, 07:12 PM
Junior Member
 
Join Date: Sep 2007
Location: Portugal
Posts: 15
Default Compiling error

Quote:
Originally Posted by specci48 View Post
You need to install this.


specci48
Thanks for your reply. It keeps giving me the same error but when i run the program without compiling it, works fine

Sub Globals
End Sub
Sub App_Start
form1.Show
con.New1
con.Open("DSN=STUFF;")
cmd.New1("",con.Value)
con.BeginTransaction(cmd.Value)
Cmd.CommandText="SELECT * FROM associados"
cmd.ExecuteTable("table1",0)
Cmd.CommandText="SELECT * FROM pagamentos"
cmd.ExecuteTable("table2",0)
Con.EndTransaction
End Sub
Reply With Quote
  #8 (permalink)  
Old 07-04-2010, 07:30 PM
Knows the basics
 
Join Date: May 2008
Posts: 53
Default

Have you try to copy microsoft.data.obdc.dll to your application folder?
Reply With Quote
  #9 (permalink)  
Old 07-04-2010, 07:47 PM
Junior Member
 
Join Date: Sep 2007
Location: Portugal
Posts: 15
Default

Quote:
Originally Posted by Pachuquin View Post
Have you try to copy microsoft.data.obdc.dll to your application folder?
well ... i cant find the file nowhere ... Can you you tell me where is it
placed?
Reply With Quote
  #10 (permalink)  
Old 07-04-2010, 11:31 PM
Knows the basics
 
Join Date: May 2008
Posts: 53
Default

You have to install the ODBC .Net provider first.

Then you will usually find the microsoft.data.odbc.dll file in:

C:\Program files\Microsoft.NET\Odbc.Net
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conexión remota a MySQL pakohappy Spanish Forum 7 12-05-2010 05:47 PM
Connecting to MySQL linum Questions (Windows Mobile) 2 05-05-2010 10:44 PM
MySQL Sistemas Basic4ppc Wishlist 2 05-05-2010 09:10 PM
Can I Use MySQL On My HTC Big Dave Questions (Windows Mobile) 3 04-12-2010 08:01 PM
Databasing with MySQL joegoh Questions (Windows Mobile) 4 08-03-2008 04:14 PM


All times are GMT. The time now is 01:30 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0