Irish SEO,  Marketing & Webmaster Discussion

 

Visual Basic 2005 and MySql

This is a discussion on Visual Basic 2005 and MySql within the Coding Help forums, part of the Webmaster Help category; Did any of you managed to make a connection to live mySql database and how?...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-07-2007, 08:34 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default Visual Basic 2005 and MySql

Did any of you managed to make a connection to live mySql database and how?
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 20-07-2007, 09:29 PM
Hardcore Geek
 
Join Date: Nov 2006
Location: Navan, Meath
Posts: 566
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
davidbehan is a name known to alldavidbehan is a name known to alldavidbehan is a name known to alldavidbehan is a name known to alldavidbehan is a name known to alldavidbehan is a name known to all
Send a message via Skype™ to davidbehan
Default

Using ASP?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 20-07-2007, 09:31 PM
Hardcore Geek
 
Join Date: Nov 2006
Location: Navan, Meath
Posts: 566
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
davidbehan is a name known to alldavidbehan is a name known to alldavidbehan is a name known to alldavidbehan is a name known to alldavidbehan is a name known to alldavidbehan is a name known to all
Send a message via Skype™ to davidbehan
Default

Here's a snippet of code for connecting to MySQL database using ASP:

sConn = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=your.mysqlserver.ie;DATABASE=databa se;USER=user;PASSWORD=password;OPTION=3;"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 20-07-2007, 09:57 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

Tx Dave. Is not for ASP - i did asp for several years.
I want to create a desktop application for off-line use.
The data resides on mysql server (live server).
My idea was to make connection passing few variables, pull the right data in and create a local MS Access db to work with it. When i am finished, upload the data back to the server.
That was just an idea.
I think I'll be better off working with XML.
Have a page on the server (php) to create the XML or csv format, create the local db then send back to the server the data in the same format (XML or csv) for updating the mysql db.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 21-07-2007, 03:12 PM
SMB.
 
Join Date: Oct 2006
Posts: 454
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
3rigena will become famous soon enough
Default

what happens if the live database gets updated after you have done the download but before you re-upload. Are you locking the db / using transactions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 21-07-2007, 03:30 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

It can't happen and I can not use transaction either. Let me explain why.
100 user, each have their own records(let's say 50 each).
when requested we get a copy of his own records, time-stamp them, and populate the local db. each record on update will also update the time-stamp used to compare it with the live data, also they have a unique id.

On upload some work has to be done to make sure the data doesn't get duplicated or changed if it doesn't have to.
The logic is simple, putting in practise is the hard part.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 08-08-2007, 01:19 PM
Frontpage User
 
Join Date: Aug 2007
Posts: 7
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Gianni will become famous soon enough
Default

Quote:
Originally Posted by louie View Post
Tx Dave. Is not for ASP - i did asp for several years.
I want to create a desktop application for off-line use.
The data resides on mysql server (live server).
My idea was to make connection passing few variables, pull the right data in and create a local MS Access db to work with it. When i am finished, upload the data back to the server.
That was just an idea.
I think I'll be better off working with XML.
Have a page on the server (php) to create the XML or csv format, create the local db then send back to the server the data in the same format (XML or csv) for updating the mysql db.
Hi

Just a question. You're creating this for offiline use but in the next lines you make references to making connections, downlaoding, updating and uploading back to the server.

Is it offline or not ?

Cheers
G
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 08-08-2007, 02:20 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

it is for off-line but i want to be able when finished to press a button and update the live db and vice-versa.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
2005, basic, mysql, visual

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Sponsored links

Paid On Results


All times are GMT +1. The time now is 04:28 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0