DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Connection to sql database in c# (http://www.daniweb.com/forums/thread65100.html)

Village Idiot Dec 16th, 2006 5:01 pm
Connection to sql database in c#
 
I am fairly new to asp.net, I am trying to connect to a sql (mysql prefferably) database, it must be using C#. I have been searching all of yesterday and today, I cant figure out how. Could someone help me here (if this has been asked, please point me to a topic)

web_developer Dec 17th, 2006 4:53 am
Re: Connection to sql database in c#
 
dude u need to create OdbcConnection.

using this object u can connect to any type of db such as (mssql, oracle, mysql, excel...)

dude i amnot sure abt the stability in using mysql with .net.

sam

Village Idiot Dec 17th, 2006 6:50 pm
Re: Connection to sql database in c#
 
Do you have anything on it? just saying do an odbc connection doesnt help me.

amithasija Dec 19th, 2006 7:45 am
Re: Connection to sql database in c#
 
go to connectionstrings.com,will solve all ur problems related to connection.tell me if you got your problem solved

Village Idiot Dec 20th, 2006 12:04 am
Re: Connection to sql database in c#
 
It solves what to give it, but not on what to put it in. what use is a string with no command?

Does anyone know the answer to my question? it cant be that hard.

Village Idiot Dec 23rd, 2006 12:07 am
Re: Connection to sql database in c#
 
I am at my wits end trying to figure this out, does anyone know how to do this?

amithasija Dec 23rd, 2006 12:34 am
Re: Connection to sql database in c#
 
send me the string u r using and name of ur machine and database name also.

Village Idiot Dec 23rd, 2006 1:20 am
Re: Connection to sql database in c#
 
I just figured it out. Thanks for your time


All times are GMT -4. The time now is 6:48 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC