hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : DB differences and syntax
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

DB differences and syntax

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-30-2006, 03:38 PM
rmfred rmfred is offline
Junior Guru Wannabe
 
Join Date: Aug 2006
Posts: 46

DB differences and syntax


Hello;
What programming I've done in the past has been done with ASP and MS Access databases. I've had a couple of requests to do a website and would use a little db functionality in them. It's hard to find hosting plans that allow Access db's
(that's another thread for another time and place); so... is there a lot of difference in syntax between ASP using Access and ASP using MySQL?

Would I have to change "loads" of my current ASP code in order for it to function using a MySQL db?

I understand that MySQL is more robust and faster than Access, but the sites I've done with Access work just fine.

Thanks in advance for helping a newbie

ps... I mistakenly posted this in the tutorial section first... would a MOD plz delete that one

Reply With Quote


Sponsored Links
  #2  
Old 08-30-2006, 04:04 PM
osteoarthitis osteoarthitis is offline
Junior Guru Wannabe
 
Join Date: Aug 2006
Posts: 60
the connection string

i think you only will have to modify the connection string or you can say the connection developed at run time .

Reply With Quote
  #3  
Old 09-02-2006, 06:28 AM
Czaries Czaries is offline
Junior Guru
 
Join Date: Aug 2001
Location: Central USA
Posts: 200
Access may "work just fine", but it only allows ONE connection at a time. Page requests that are made simultaniously are queued, and visitors have to wait in line for db access. This means that if 2 requests are sent at the same time, one is served, all data requested is retrieved, the connection is closed, and then the second person is served in a similar fashon after all of that. This is the #1 reason Access is slower, and should NEVER be used for ANY type of high-traffic website. SQL databases support and allow simultanious connections and requests for data.

That being said... The differences between the actual SQL INSERT/UPDATE/DELETE code you write are minimal. The most dramatic changes will be in the code to create a new table. Access' TOP will have to be changed to LIMIT for MySQL, and a few other small things. Best thing to do it setup a localhost environment with MySQL, get it to connect to the database, and try out your application. PHP will let you know where the MySQL error are through the 'mysql_error()' function, and you can begin a fix-and-retry process from there.

__________________
InvoiceMore - Online Billing & Invoicing
phpDataMapper - Object-Oriented PHP5 Data Mapper ORM

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cloud Popular in US Data Centers, Colocation in Europe, says Gartner Web Hosting News 2012-03-27 11:19:24
Web Host OneNeck IT Services Completes SSAE 16 Audit for Arizona Data Centers Web Hosting News 2012-01-04 21:10:40
Google Clean Energy Guru Weihl Joining Facebook Web Hosting News 2011-12-20 15:53:32
Web Host Hostek.com Launches Range of Linux ColdFusion Hosting Plans Web Hosting News 2011-09-12 19:12:41
Register Reports Apple iCloud Operating on Microsoft Azure and Amazon AWS Web Hosting News 2011-09-06 14:36:55


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?