Are you using SQL server 2008 r2 or MYSQL C# Connector..
Personally I like using MYSQL C# connector because its light weight and faster than SQL server 2008..
Download connector from here
http://www.mysql.com/downloads/connector/net/
Ohhh and its free BTW.
CRUD on MYSQL connector latest version
Updatestring connectionString ="server=localhost;user=root;database=YourDataBase ;port=3306;password=;";//connection string
MySqlConnection conn = new MySqlConnection();//MYSQL connection function
Insert/Add
conn = new MySqlConnection(connectionString);//passing connection string into the connection function
conn.Open();
MySqlCommand cmd = conn.CreateCommand();//create a command function that utilises the connection string to execute commands
cmd.CommandText = "INSERT INTO yourTable VALUES (@fname,@lname)";//insert firstname and lastname into your table
cmd.Prepare();
//---------------
cmd.Parameters["@fname"].Value = firstname.Text;//example the string is passed from textbox
cmd.Parameters["@lname"].Value = lastname.Text;//example the string is passed from textbox
//---------------
cmd.ExecuteNonQuery();//Command is executed. hence its written to database
conn.Close();//close connection
conn = new MySqlConnection(connectionString);
conn.Open();
cmd = conn.CreateCommand();
cmd.CommandText = "UPDATE yourTable set price=@NewPrice WHERE Console =@conSoleName";
cmd.Prepare();
cmd.Parameters["@NewPrice"].Value = "25000";
cmd.Parameters["@conSoleName"].Value = "PSP";
cmd.ExecuteNonQuery();
conn.Close();
Delete
conn = new MySqlConnection(connectionString);
conn.Open();
cmd = conn.CreateCommand();
cmd.CommandText = "Delete * from yourTable";
cmd.Prepare();
cmd.ExecuteNonQuery();
conn.Close();
Here is the documentation it will help you out alot..... http://dev.mysql.com/doc/refman/5.5/...ector-net.html
That's the latest...
------------------------------------------------------
Here are some example.. but they are using the older 1.0 version. Its basically the same. But here anyway
http://bitdaddys.com/MySQL-ConnectorNet.html


IF THE TRUTH HURTS CLOSE THE THREAD


