Click here to Skip to main content
15,907,687 members

Comments by Meisam Parsa (Top 16 by date)

Meisam Parsa 1-Jun-13 14:18pm View    
my connection string :
"data source = serverIp ; network library = dbmssocn ; intial catalog = parking_database ; user = mesi ; password = 1234"
Meisam Parsa 28-May-13 8:36am View    
i want save a variable in database I mean, not TABLE
Meisam Parsa 28-May-13 8:23am View    
i want save a variable in database

I mean, not TABLE
Meisam Parsa 27-May-13 18:38pm View    
tnx
Meisam Parsa 27-May-13 4:18am View    
The problem was solved with this code:
SqlCommand cmTime = new SqlCommand("select enterTime from receiveTable where cardNo = " + enterCardNo_txtBox.Text.ToString(), cnn);
SqlDataReader timeDr = cmTime.ExecuteReader();
timeDr.Read();
DateTime enterTime = Convert.ToDateTime(timeDr["enterTime"]);