473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Preferred ASP database

The provider I host my website on gives me three options when it comes to
databases:

1. Microsoft Access
2. MySQL
3. MSSQL

I have used Access in the past, and it is adequate for the minor database
work I plan on doing.

However, I would like to learn some quality skills, just in case a client
wants to hire me to do some database work one day.

Which database would be the best to learn? What are the strengths of one
verses the other? What are their weaknesses? Which one is the simplest to
write code for? Which has the most code examples using Classic ASP?

Thanks for the help!
~Joe
Oct 22 '07 #1
6 1604
jp2code wrote:
The provider I host my website on gives me three options when it
comes to databases:

1. Microsoft Access
2. MySQL
3. MSSQL

I have used Access in the past, and it is adequate for the minor
database work I plan on doing.

However, I would like to learn some quality skills, just in case a
client wants to hire me to do some database work one day.

Which database would be the best to learn? What are the strengths of
one verses the other? What are their weaknesses? Which one is the
simplest to write code for? Which has the most code examples using
Classic ASP?
I have never seen online examples for using ASP with MySQL. Of course, I
have never looked at their website either ...

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Oct 22 '07 #2
jp2code wrote:
How would I start with one of these databases? I can tell my host to
create a database and give it a name, but then I need to add tables,
then items, and eventually relationships.
This may also be useful as well:
http://www.aspfaq.com/show.asp?id=2214
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Oct 22 '07 #3
Thanks Mr. Barrows. You have answered my question.

If I have other questions about databases, I will ask them in another
thread.

"Bob Barrows [MVP]" wrote:
This may also be useful as well:
http://www.aspfaq.com/show.asp?id=2214

Oct 22 '07 #4
Gazing into my crystal ball I observed "jp2code" <poojo.com/mail>
writing in news:uo**************@TK2MSFTNGP04.phx.gbl:
The provider I host my website on gives me three options when it comes
to databases:

1. Microsoft Access
2. MySQL
3. MSSQL

I have used Access in the past, and it is adequate for the minor
database work I plan on doing.

However, I would like to learn some quality skills, just in case a
client wants to hire me to do some database work one day.

Which database would be the best to learn? What are the strengths of
one verses the other? What are their weaknesses? Which one is the
simplest to write code for? Which has the most code examples using
Classic ASP?

Thanks for the help!
~Joe

A lot of hosts will offer only MySQL or access. If you're ever going to
get into PHP, that comes almost only with MySQL.

The coding differences between MySQL and MSSQL are few, but important.
For example, date() in ASP produces MM-DD-YYYY, and MySQL stores dates
as YYYY-MM-DD. I just created a function to swap it around. MSSQL uses
AUTOINCREMENT and MySQL uses AUTO_INCREMENT. There are other
differences, but for the most part, MySQL is pretty much the same.

Personally, I like MySQL better and MSSQL. If you have Access tables,
MySQL has a nice conversion tool, and there are some nice GUI
applications for MySQL as well, HeidiSQL comes to mind.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Oct 23 '07 #5
Adrienne Boswell wrote on 23 okt 2007 in
microsoft.public.inetserver.asp.general:
The coding differences between MySQL and MSSQL are few, but important.
For example, date() in ASP produces MM-DD-YYYY, and MySQL stores dates
as YYYY-MM-DD.
All these database engines store date/time in some internal format,
inconsequential to the programmer. [except for the resolution]

ASP dos not produce any format, as it is just a platform.

ASP vbscript date-to-string conversion,
and ASP jscript date-to-string conversion,
convert a date/time value to a string,
depending on the operating system's regional settings.

So
vbscript date() does not produce this MM-DD-YYYY format,
it just returns the date/time value in internal format.

The date-to-string conversion,
as used by response.write() because it needs a string as parameter,
does that on your machine with your regional settings.

For entering a date/time by way of a SQL string,
it is important to know what the SQL engine accepts as data/time strings,
I would hope all engines accept YYYY-MM-DD and YYYY/MM/DD.

The error prone MM-DD-YYYY should not even be considered as SQL input
by any serious programmer.

=====================

So under Jet/Access, ASP/vbscript:

myDate = #2007-10-23#
sql = "... [date] = #" & myDate & "#;"

would involve the peculiarities of the regional settings,
introduced by the date-to-string conversion,
that could(!) be inconsistent with the Jet engine,

while this would not:

myDate = "2007-10-23"
sql = "... [date] = #" & myDate & "#;"

[Bob will correct me where I am wrong]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 23 '07 #6
Evertjan. wrote:
[Bob will correct me where I am wrong]
No corrections needed, just a little additional info:

VBSCRIPT stores a datetime value as a Double number, with the whole number
portion representing the number of days since the seed date (I can't
remember OTOH what that date is, maybe 1899-12-31, maybe 1900-01-01 - it
doesn't really matter) and the decimal portion representing the time of day:
..0 = midnight, .5 = noon. As Evertjian says, implicit conversions to string
use the regional settings of the user under whose context the script is
running (in ASP, that may likely be the IUSR_machinename account).

As for passing date values to a database engine, format issues can be
avoided by using parameters rather than dynamic sql.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Oct 23 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Jane Withnolastname | last post by:
I have been using the charset windows-1252 for a while, but it was pointed out to someone else in this group recently that it's a Microsoft creation (I'm sure I'm getting my facts wrong or skewed)...
41
by: Mountain Bikn' Guy | last post by:
What is the current preferred way to save user preferences in dotnet? Is the registry the right place to do this? Can anyone recommend a good article (or book) for this topic? Thanks.
2
by: godyuyu | last post by:
i need change the system preferred audio device in my vc++ project ,but i can't find the resolution.I just want to know the method.
5
by: Rod | last post by:
I've written 2 ASP.NET applications (I've worked on one with a team and another by myself). In my ASP.NET pages, when saving data to a backend database I've done it by using the click event of a...
7
by: stabbert | last post by:
I am trying to setup a preferred export format for users when exporting data. Are there any pros/cons to using one format over another or is it really just personal preference? Spencer
2
by: OzzyC | last post by:
I have creating a web page at http://www.interface-web.co.uk/atyc/cssproblem.htm which is supposed to use a preferred stylesheet to style the page on the first visit and then allows the user to...
2
by: tricard | last post by:
Good day, What is the best way to perform SQL statements in VBA? Through the docmd.runSQL (for action queries) or the with db.Execute (where db is a DAO.database object) and querydef objects? my...
4
by: Bill Jackson | last post by:
Is there a preferred random library? scipy.random random Besides scipy's library returning ndarrays, is there any other advantage/disadvantage?
1
by: psrajender | last post by:
Hello All, Which one is the most preferred database for handling the large volume of the data ?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.