Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP and databases
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Biddyman
Starting Member

32 Posts

Posted - 03 January 2008 :  23:13:51  Show Profile  Visit Biddyman's Homepage  Send Biddyman a Yahoo! Message
This may be a stupid question for I'm learning this stuff. Say you have an identical Access database tbl and SQL database tbl. Other than the connection string, is the code all the same to dump data into each database?

muzishun
Senior Member

United States
1079 Posts

Posted - 04 January 2008 :  00:53:02  Show Profile  Visit muzishun's Homepage
Not quite. Each database (Access, MySQL, SQL Server, Oracle, etc) has its own "dialect" of the SQL language. While the majority of the commands and functions are the same, there are differences. If there are specific questions you have, ask them here or Google them, but there are enough differences that it's hard to just list them.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 January 2008 :  02:00:20  Show Profile  Visit HuwR's Homepage
as long as you don't do anything complex and avoid using dateTime fields in the db then all should be ok
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 04 January 2008 :  09:19:33  Show Profile  Visit muzishun's Homepage
Agreed. Stick to the basics, and you'll likely be fine without having to worry about database irregularities.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

Biddyman
Starting Member

32 Posts

Posted - 04 January 2008 :  09:31:21  Show Profile  Visit Biddyman's Homepage  Send Biddyman a Yahoo! Message
Thanks. I was looking at some universal ASP scripts and see how they have usually 3 connection lines, two of whick get ' out. I saw on the Snitz forum that it has a strDBType variable, but didn't see it past setup. I didn't look much either. So, is that used throughout the program for datetime stuff?

Anyways, I was looking at a form handling script that goes to Access and wondering if it was a matter of changing the connection. I know it has datetime field. Trial and error is what I will try. If I get an error, I'll google for the SQL syntax.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 January 2008 :  09:49:01  Show Profile  Visit HuwR's Homepage
no it is mainly used for determining if your db is mysql when returning limited datasets using the TOP XX command as that works differently in MySQL
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 04 January 2008 :  10:00:26  Show Profile  Visit muzishun's Homepage
Biddyman, you can also ask here if you run into errors. I've found that sometimes Snitz can be faster than Google (though it depends heavily on the time of day and the specific question).

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

machinehack
Starting Member

9 Posts

Posted - 07 January 2008 :  15:30:13  Show Profile  Visit machinehack's Homepage
There are differences in the default data fields, I found out the hard way.
To get the current date using default
Oracle:
sysdate

SQL Server:
getdate()

Access:
DateTime.Now

~MachineHack
http://www.machinehack.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07