I am getting an error that is"Invalid object name 't_Images' "
here is my code:
SqlConnection s = new SqlConnection(con);
s.Open();
byte[] data;
using (System.IO.MemoryStream stream = new System.IO.MemoryStream())
{
video.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp);
data = stream.ToArray();
}
SqlCommand s_Com = new SqlCommand("INSERT INTO t_Images (Image_ID,Image)"+" VALUES (1,@data) ; ", s);
SqlParameter param = new SqlParameter();
param.ParameterName = "@data";
param.Value = data;
s_Com.Parameters.Add(param);
s_Com.ExecuteNonQuery();
my database table t_Images is consisted of 2 coulomns of type id and image. I am using sql server 2008 R2
any help??