Using getDate MSSQL function in C# code.
Posted on 2004-08-04
Im new to SQL/c#. Here is what I'm trying to do.
strSQL = "INSERT t_customers VALUES (" +
PrepareStr(txt_first_name.Text) + "," +
PrepareStr(txt_last_name.Text) + "," +
PrepareStr(txt_user_name.Text) + "," +
PrepareStr(txt_password.Text) + "," +
PrepareStr(txt_address.Text) + "," +
Next I want to include getDate, so I can get the date from the SQL server and insert it into the next field in the table, but I'm not sure how to go about doing this.
Thanks in advance,