I'm moving over to MS SQL, and I need to update my sql (no pun intended) for MS SQL.
I'm going to google this, but if anybody has some quick pointers, it would be appreciated. Here is an example that pretty much shows how I wrote most of the code. I rely on Access autoincrement feature for new records. Does MS SQL not do that?
<CFQUERY NAME="create_account_a" DATASOURCE="members">
INSERT INTO tbl_member_core
(member_user_name,
member_type,
member_status,
member_password,
member_password_hint,
member_signup_date,
member_signup_time
)
VALUES
('#FORM.member_user_name#',
'#FORM.member_type#',
'new',
'#FORM.member_password#',
'#FORM.member_password_hint#',
'#DateFormat(Now(),'mm/dd/yy')#',
'#TimeFormat('00:00:01','HH:mm:ss')#'
)
;
</CFQUERY>
I'm going to google this, but if anybody has some quick pointers, it would be appreciated. Here is an example that pretty much shows how I wrote most of the code. I rely on Access autoincrement feature for new records. Does MS SQL not do that?
<CFQUERY NAME="create_account_a" DATASOURCE="members">
INSERT INTO tbl_member_core
(member_user_name,
member_type,
member_status,
member_password,
member_password_hint,
member_signup_date,
member_signup_time
)
VALUES
('#FORM.member_user_name#',
'#FORM.member_type#',
'new',
'#FORM.member_password#',
'#FORM.member_password_hint#',
'#DateFormat(Now(),'mm/dd/yy')#',
'#TimeFormat('00:00:01','HH:mm:ss')#'
)
;
</CFQUERY>