We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,289 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to Connect a application to MYSQLwhich has been connected to sql server

Hello

Everybody

please help me out i am in big problem

the problem is

my organization people gave me the WEB Application to edit it (the application was written in the C# language and it is web application so it is designed in ASP.NET MVC3 )

and i have to Upload in the hostserver but the problem is in the host server the database is MYSQL but the application is build in SQL SERVER so if i directly transfer the files from will that be ok if not
than how can i do that please guide me

thank you

3
Contributors
2
Replies
7 Hours
Discussion Span
10 Months Ago
Last Updated
3
Views
khizer03
Light Poster
39 posts since Nov 2011
Reputation Points: 20
Solved Threads: 0
Skill Endorsements: 0

Obviously the connection string you are using will have to change and hopefully the dev team knew enough to store it in one place only (web.config). You can find the connection string syntax for MySQL at connectionstrings.com.
Also, in certain places you may need to alter the actual SQL commands used, particularly if you have used parameters as MS SQL uses @ to preceed the variable while MySql uses ?.
But, change the connection string and run it in debug mode and watch as the IDE shows you all of the changes you need to fix:)

hericles
Veteran Poster
1,065 posts since Nov 2007
Reputation Points: 156
Solved Threads: 228
Skill Endorsements: 9

as hericles said, you gonna have to do the necessary changes..If u looking for helper classes to connect to mysql may be this will help you http://webdeveloperswall.com/dot-net/connecting-to-a-mysql-database-from-asp-net-application

ckchaudhary
Junior Poster in Training
79 posts since Oct 2011
Reputation Points: 15
Solved Threads: 17
Skill Endorsements: 2

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0828 seconds using 2.72MB