with which language are you trying to connect the database ? are you using sql server ?
A
ammar_shaker
@ammar_shaker
Posts
-
Connecting to Database -
SQL 2005 connection failedTry to use an SqlDataSource from your toolbox, configure, custom a random select statement. SqlDataSource will automatically generate a connection string. use it as this example: MyConnection1.ConnectionString = SqlDataSource1.ConnectionString ; full example: SqlConnection con1 = new SqlConnection(); SqlCommand com1 = new SqlCommand(); con1.ConnectionString = SqlDataSource1.ConnectionString; <<<< con1.Open(); com1.Connection=con1; com1.CommandText="SELECT [Name] FROM Table1 WHERE [Id] = '"+TextBox1.Text.Trim()+"'"; com1.ExecuteNonQuery(); com1.Dispose(); con1.Close();
-
bictureboxI have a similar question, Assume we have two Bitmap Images in a C# application, can we compare between them pixel to pixel ?