I am trying to migrate from an MS access to MySQL and am having problems. I have an asp pages on my website. - <% ' Dim SQL_REC, RS_REC, NID, TITLE, POSTED, NEWS_LISTING, SHOW_HL, MyConn_REC, I_REC, SUMMARY
-
-
-
-
' ------------------------------------------------------------------------------------------------------------------
-
-
' DATABASE CONNECTION
-
Set MyConn = Server.CreateObject("ADODB.Connection")
-
MyConn.Open "Driver={MySQL ODBC 3.51 Driver}; Server=231.555.600.43; uid=anothername; pwd=password; database=thename; option=3; port=3306;"
however, on the web, the page shows the following error ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/example/inc_recent_news .asp, line 41 The code on line 41 is RS_REC.Open SQL_REC, MyConn_REC Does anyone know what i need to change in my database connection string above? i;d appreciate if anyone post the code as i should use,
many thanks 12 3103
here is another code error, for a page called add.asp , a page that adds articles to the mysql database.
i'm using this as the database connection string. - Set MyConn = Server.CreateObject("ADODB.Connection")
-
MyConn.Open "Driver={MySQL ODBC 3.51 Driver}; Server=657.343.500.82; uid=aname; pwd=passwprd; database=anothername; option=3; port=3306;"
and i get this error when i try to use this page to add an article Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-5.0.45]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[fldName] ASC' at line 1
/Admin/news_add.asp, line 97 the code on line 97 is:
i'd appreciate a response from anyne who could tell me what to try for code, or what the error means, i'm not very knowledgable about web designing and html
thanks
to follow up on the second post, this is an update
the code on line 97 which is returning the error is this
i added this in front of it, as i read somewhere that it would show the problem, - response.write(sql)
-
response.end
and this is what it showed on the web after i added the response write thing
SELECT ID, fldNAME, ID as ID1, 0 as ID2, 0 as ID3 FROM nm_tbl_cate WHERE fldLEVEL = 1 UNION SELECT nm_tbl_cate.ID, CONCAT(PARENT.f ldNAME , ' > ' , nm_tbl_cate.fld NAME) AS NAME, PARENT.id, nm_tbl_cate.ID, 0 FROM nm_tbl_cate, nm_tbl_cate AS PARENT WHERE (nm_tbl_cate.fl dLEVEL = 2) AND (nm_tbl_cate.fl dPID =PARENT.ID) UNION SELECT nm_tbl_cate.ID, CONCAT(PARENT.f ldNAME , ' > ' , SUBPARENT.fldNA ME , ' > ' , nm_tbl_cate.fld NAME) AS NAME, PARENT.id, SUBPARENT.id, nm_tbl_cate.ID FROM nm_tbl_cate, nm_tbl_cate AS PARENT, nm_tbl_cate AS SUBPARENT WHERE (nm_tbl_cate.fl dLEVEL = 3) AND (nm_tbl_cate.fl dPID =PARENT.ID) AND (nm_tbl_cate.fl dSID =SUBPARENT.ID) ORDER BY [fldName] ASC
just for the record, i'm using the trial version of Full Convert 4, http://www.spectralcore.com/fullconv...s=0&from=lbnag
to convert my access database to mysql, i seem to have migrated files, as they show, but have a few errors to sort out,
any tips anyone? thanks in advance
Hi there,
What happens if you try to run the queries in the MySQL Query Analyser?
codegecko
Hi there,
What happens if you try to run the queries in the MySQL Query Analyser?
codegecko
I havn't run them in query analayser, i don't anything about html, databases and such,
Do i do that in the conversion software im using? thanks for your help, Cedegecko
I thought i should add this, so that anyone who may be able to help can see,
After doing the Full Convert data transfer in their trial version, I get these 5 error reports
nm_tbl_news
Row #1957, Column fldCONTENT: Unspecified error
Row #1958, Column fldCONTENT: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done
nm_tbl_news_cat e
(DATA) Lost connection to MySQL server during query
nm_tbl_comment
(CONSTRAINTS) Cannot add or update a child row: a foreign key constraint fails (`databasename/#sql-c0c_41e6e2`, CONSTRAINT `nm_tbl_newsnm_ tbl_comment` FOREIGN KEY (`fldNEWS_ID`) REFERENCES `nm_tbl_news` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION)
nm_tbl_relation s
(CONSTRAINTS) Cannot add or update a child row: a foreign key constraint fails (`databasename/#sql-c0c_41e6e2`, CONSTRAINT `nm_tbl_newsnm_ tbl_relations` FOREIGN KEY (`fldPID`) REFERENCES `nm_tbl_news` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION)
Someone told me that these messages may be due to their limitations in the trial version, which adds watermarks to every 5th record. Once you purchase, the full version of course they don't show, and i don't think that's what causing the errors
Hi there,
Firstly, download MySQL Query Browser from here. Then, copy and paste your queries into the Query Browser and try and run them.
The Query Browser will give you a better indication of what's wrong with your query, if it doesn't run. If the query does run then we know that your SQL code is fine and that we need to look at other sources to your problem.
Hope it helps.
codegecko
*EDIT* The MySQL GUI Tools (Query Browser is just one bit of software in the GUI Tools package) also contains a Migration Toolkit for moving your data from Access, SQL Server and other databases to MySQL. And it has no restrictions. Try using that to move your database across and see if that helps.
Hi there,
Firstly, download MySQL Query Browser from here. Then, copy and paste your queries into the Query Browser and try and run them.
The Query Browser will give you a better indication of what's wrong with your query, if it doesn't run. If the query does run then we know that your SQL code is fine and that we need to look at other sources to your problem.
Hope it helps.
codegecko
*EDIT* The MySQL GUI Tools (Query Browser is just one bit of software in the GUI Tools package) also contains a Migration Toolkit for moving your data from Access, SQL Server and other databases to MySQL. And it has no restrictions. Try using that to move your database across and see if that helps.
OK i'm downloading it now, but as i said im a complete novice,
what is "query" ie. which part of the above should i put into the query analyser
This bit: -
SELECT ID, fldNAME, ID as ID1, 0 as ID2, 0 as ID3 FROM nm_tbl_cate WHERE fldLEVEL = 1
-
UNION
-
SELECT nm_tbl_cate.ID, CONCAT(PARENT.fldNAME , ' > ' , nm_tbl_cate.fldNAME) AS NAME, PARENT.id, nm_tbl_cate.ID, 0 FROM nm_tbl_cate, nm_tbl_cate AS PARENT WHERE (nm_tbl_cate.fldLEVEL = 2) AND (nm_tbl_cate.fldPID =PARENT.ID)
-
UNION
-
SELECT nm_tbl_cate.ID, CONCAT(PARENT.fldNAME , ' > ' , SUBPARENT.fldNAME , ' > ' , nm_tbl_cate.fldNAME) AS NAME, PARENT.id, SUBPARENT.id, nm_tbl_cate.ID FROM nm_tbl_cate, nm_tbl_cate AS PARENT, nm_tbl_cate AS SUBPARENT WHERE (nm_tbl_cate.fldLEVEL = 3) AND (nm_tbl_cate.fldPID =PARENT.ID) AND (nm_tbl_cate.fldSID =SUBPARENT.ID)
-
ORDER BY [fldName] ASC
-
This is a SQL query - SQL stands for Structured Query Language.
codegecko
I copied and pasted the query above, into the space at the top of the query browser, and i think it ran on the information_sch ema folder first as the software recommended i add the schema folder. it didn't execute and i got this message at the bottom Unknown table 'nm_tbl_cate' in information_sch ema I then logged in again to the query browser, and this time ignored the schema request and got into my main folder. It didn't run and it showed this message error 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[fldName] ASC' at line 1 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: pancho |
last post by:
Greetings, I need help configuring/building PHP3 with MySQL as a DSO
on a Solaris 8 box - this module is needed to host some existing
sites I will be migrating
Note. I built PHP4 from source and it loads without an error.
When I try t run "apachectl configtest" I get the following error:
--
Cannot load /usr/local/apache/libexec/libphp3.so into server: ld.so.1:
/usr/local/apache/bin/httpd:
fatal: relocation error: file...
|
by: Phil Powell |
last post by:
I've read some online resources that utilize various MySQL
command-line actions to migrate data from Access to MySQL.
The situation is this: a group of co-workers of mine will be using an
Access db in a shared source (for now, a directory.. ???) to be able
to generate reports on the fly. What they want to do is to be able to
migrate that data to a MySQL db instance that currently exists on a
different server.
What would be the best...
|
by: MLH |
last post by:
I am having failures processing the following command and I wonder
if you can tell me what I must do in order to have success. When I try
to run source mysql_dump.sql.txt ==> it is a problem for me.
1) I put the file in /home/mlh/public_html/credifree/sql_script/.
2) I made that directory my current directory
3) I typed mysql and pressed ENTER
4) I then typed source mysql_dump.sql.txt and pressed ENTER
A bunch of error...
|
by: Sai Hertz And Control Systems |
last post by:
Dear all,
Their was a huge rore about MySQL recently for something in java functions
now theirs one more
http://www.mysql.com/doc/en/News-5.0.x.html
Does this concern anyone.
What I think is PostgreSQL would have less USP's (Uniqe Selling Points
|
by: Mike |
last post by:
I recently had a Microsoft Access 97 database corrupt on me. The
setup is a split database (front end/back end) setup with about 10-15
users. This is the first corruption in something like a year. The
database has about 25 tables, and the total size is about 15MB, after
a compact. The front end sits on users Windows 2000 Professional
desktops, and the file server is a Windows 2000 Server.
I've been thinking of migrating the back end,...
| |
by: Bob |
last post by:
All,
I have read through lots of postings regarding my concerns, but I
haven't found what I am looking for.
The center (non profit University) where I work collects scientific
data about subjects enrolled in studies related to respiratory
diseases. Both lab data and questionnaire information are collected.
We use W2K as PC operating systems, MS Access XP, XP Developer, and
Visual SourceSafe. Our databases use a front end – back end...
|
by: Dan Lewis |
last post by:
I've imported a ms access database into a table in a mysql database.
The access database contains a field that holds date/time values in
'general date' format. These all show up at 01/01/1970 in the mysql
database. I believe the field in mysql is wanting UTC and shows
numbers when looked at from the sql command line (i.e. March 13, 2006,
5:31 pm is shown as 1142289086). How do I get the access data into
that format so it will import...
|
by: Jim Whitaker |
last post by:
Expand full for viewing...
I have a parent/child table. The basic setup is as follows:
The parent table is called load sheet. It has fields such as Tripno,
carrier, loaddate, etc.
The child table contains the actual stop offs, in other words the shipper,
load city, load state,
etc. If a pick then shipper, otherwise a consignee.
I have no problem with this parent child table setup. Here's the problem:
I am migrating fom Microsoft...
|
by: janetopps |
last post by:
I have an asp news website which used an MS Acess database. The website has a config.asp which is where the order to the database originates,
I have to move to MySQL but am having trouble. I used Bullzip which didn't quite transfer all the files, and then tried Data Doctor Ms Access to MySQL, when i check with a GUI client it looks like the files have been transferred.
The problem is that the pages return an error on the web,
The...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |