473,386 Members | 1,842 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,386 software developers and data experts.

Converting MS Sql Server to MySql

I am converting a web based program from MS Sql Server to MySql. I have removed the sql server code and replaced it with MySql code. Sometimes when the C# code is running a function will not complete. The following code will sometimes run , but sometimes will get to one of the MySql statements and go off into never-never land. I'm suspecting that java code in another part of the program has grabbed the processor. Does MySql do a 'DoEvents' to release the processor? In tracing this piece of code it will often do the open, then be gone but sometimes it will complete.

Any ideas?

Expand|Select|Wrap|Line Numbers
  1.  
  2.             DataSet dsAccount = new DataSet();
  3.             string ConnectionString = System.Configuration.ConfigurationManager.AppSettings.Get("mySqlConnectionString");
  4.             MySqlConnection myConnection = new MySqlConnection(ConnectionString);
  5.             MySqlDataAdapter adapter = new MySqlDataAdapter();
  6.             string SQL = "SELECT accountid FROM accounts WHERE userid = '" + username + "'";
  7.             adapter.SelectCommand = new MySqlCommand(SQL, myConnection);
  8.             myConnection.Open();
  9.             adapter.Fill(dsAccount);
  10.             myConnection.Close();
  11.  
  12.  
thanks,
Jim
Sep 27 '07 #1
1 1227
pbmods
5,821 Expert 4TB
Heya, Jim. Welcome to TSDN!

What do you mean by 'never-never land'? Are you getting an error? Does your script hang or go into an infinite loop? Are you just not getting a valid result set from your query?
Sep 28 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mike Doanh Tran | last post by:
Hi all, Does anyone have any suggestion for converting a Sequel database to MYSQL? I just want to copy a Sequel database data to a Mysql one. Thanks in advance for any suggestion, Mike --
17
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I...
7
by: RCS | last post by:
Okay, a rather 'interesting' situation has arisen at a place I work: I need to convert a database from Access to something that can be used over the web. I am currently maintaining and...
4
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...
4
by: Bob Alston | last post by:
Anyone have experience with converting an access app from Jet database to Mysql? I am specifically looking for any changes I would have to make to my access forms, queries, modules, vba code, etc....
8
by: Michael B. Trausch | last post by:
I was wondering if anyone has had any experience with this. Someone I know is trying to move away from Microsoft Works, and I am trying to look into a solution that would convert their data in a...
4
by: --CELKO-- | last post by:
I need to convert a bunch of DB2 triggers to Oracle. Is there any kind of tools for this?
1
by: wassimdaccache | last post by:
Hello I am trying converting a query in MSACCESS 2007 into *.csv File to upload them on the web server MYSQL database using PHPMYADMIN Actually I am a little bit confused because there are...
1
by: rajanji | last post by:
Hi All, Hw r u ???? Hope u all r doing gr8... Actually i have designed a website on jobportal in asp.net using sqlserver 2005 as a backend... and now m trying to convert its database to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
Oralloy
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,...
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...

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.