Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 22nd, 2005, 12:10 PM
aymenzant aymenzant is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 144 aymenzant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 28 m 18 sec
Reputation Power: 4
SQL connection question

Hi guys, so far i'm only using MS Access database, and i'm also using the following connection:

Code:
<%
DIM Conn
Set Conn = Server.CreateObject("ADODB.Connection")
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath ("swc.mdb") & ";"
Conn.Open ConnStr
%>


my question is, if i decide to move to MySQL, can i still use the same connection as above, and if not what should be changed?

also does the Access database need to be converted to MySQL database and how can i do that ?

Finally i'm using 7host.com to host the asp files and the database, how can i upload the MySQL database and access it from the asp files?

also would the code in the asp files change if the database is changed, like( SQL commands) ?

thx in adv..

Reply With Quote
  #2  
Old April 24th, 2005, 12:33 AM
lewy's Avatar
lewy lewy is offline
Alter Ego Wizard
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Edinburg Tx
Posts: 4,381 lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 1009 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 1 Day 23 h 7 m 43 sec
Reputation Power: 1488
Quote:
Originally Posted by aymenzant
1 my question is, if i decide to move to MySQL, can i still use the same connection as above, and if not what should be changed?

2 also does the Access database need to be converted to MySQL database and how can i do that ?

3 Finally i'm using 7host.com to host the asp files and the database, how can i upload the MySQL database and access it from the asp files?

also would the code in the asp files change if the database is changed, like( SQL commands) ?

thx in adv..

1. Each driver has it's own connection string format. For more info on connection strings visit ConnectionStrings

2. To convert your access db to mysql, well, can't do that, they are two different products, For one, you'll have to create the MySQL db using command line or if your host provides for MySQLAdmin utility, you can create it like MSSQL Enterprise Mgr.
Then you'll have to import your data, I believe you can import a csv into MySQL

3. You're going to have to find out if your host supports MySQL and ASP.
Without this, I'm afraid that you simply cannot do parts 1 and 2.

HTH
__________________
................... ASCII and ye shall receive ..................
Knowledge is the only resource on earth that multiplies when shared


Support the Shemzilla Project
Powered by C#

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > SQL connection question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT