i am writing following code to insert value in table test which has two fields
id , current_ date but if i change
regional seting English(United Staes ) to french(France) then it hows error
it show error if regionl setting is English(United Staes ) value inserted sucessfully
any one tell how i set regional setting for my project
[code=cpp]
try
{
ss = DateTime.Now;
objSqlConnectio n.Open();
SqlCommand objSqlCommand = new SqlCommand ("insert into test values ( '" + ss + "',125)",objSql Connection);
objSqlCommand.E xecuteNonQuery( );
MessageBox.Show ("Inserted sucessfully");
objSqlConnectio n.Close();
}
catch(Exception ex)
{
MessageBox.Show (ex.Message);
objSqlConnectio n.Close();
}[/code]
id , current_ date but if i change
regional seting English(United Staes ) to french(France) then it hows error
it show error if regionl setting is English(United Staes ) value inserted sucessfully
any one tell how i set regional setting for my project
[code=cpp]
try
{
ss = DateTime.Now;
objSqlConnectio n.Open();
SqlCommand objSqlCommand = new SqlCommand ("insert into test values ( '" + ss + "',125)",objSql Connection);
objSqlCommand.E xecuteNonQuery( );
MessageBox.Show ("Inserted sucessfully");
objSqlConnectio n.Close();
}
catch(Exception ex)
{
MessageBox.Show (ex.Message);
objSqlConnectio n.Close();
}[/code]
Comment