Hi,
I am a real newbie to SQL.. I have plans to go to school for it comming up but till then I am creating my stored procedures using access & then retyping them over into SQL.
I need to do a difference for dates.. Access successfully works with datediff('m',date1,date2)as MthDiff .. but when entered into SQL it errors with
"Error 1023", SQL server invalid parameter 1 specified for datepart.
I tried a few other combos like datediff(date1,date2,'m')
datediff(date1,date2)
datediff('ww',date1,date2)
with errors that made me sure the format was really wrong, or similar errors... Can anyone help?
Thanks
Wenda
I am a real newbie to SQL.. I have plans to go to school for it comming up but till then I am creating my stored procedures using access & then retyping them over into SQL.
I need to do a difference for dates.. Access successfully works with datediff('m',date1,date2)as MthDiff .. but when entered into SQL it errors with
"Error 1023", SQL server invalid parameter 1 specified for datepart.
I tried a few other combos like datediff(date1,date2,'m')
datediff(date1,date2)
datediff('ww',date1,date2)
with errors that made me sure the format was really wrong, or similar errors... Can anyone help?
Thanks
Wenda