saman shabani
پنج شنبه 03 فروردین 1391, 00:47 صبح
من میخوام یک فیلد از جدولو که از نوع bigint هست ،رو توی یک متغیر از نوع int ذخیره کنم..نمیدونم کدش چطوریه....این هم چیزیه که من نوشتم....
dastor.CommandText = @" select id from seller where name='" + textBox7.Text + "' ";
SqlDataReader reader = dastor.ExecuteReader();
while (reader.Read())
int16 a=Convert.ToInt16 (reader[0]);
dastor.CommandText = @" select id from seller where name='" + textBox7.Text + "' ";
SqlDataReader reader = dastor.ExecuteReader();
while (reader.Read())
int16 a=Convert.ToInt16 (reader[0]);