在SQL7中的smalldatetime数据类型问题?
xfile 2000-08-19 12:00:00 我的Access97=>SQL Server7后,
原来的日期就会变成smalldatetime,出现错误:
Microsoft OLE DB Provider for SQL Server 错误 '80040e07'
Syntax error converting datetime from character string.
我得语句如下:
select UserName from tbl_UserInfo where UserName='xf' and password='1111'
insert into tbl_MsgInfo (Subject, Content, Date_time, AuthorUser, RecievUser, Length, Status) values('回复:急需1000吨牛肉','','00-8-19 下午 12:02:33','xf','xf',0,0)
其中:'00-8-19 下午 12:02:33' 是用 now()函数产生的.
原来在Access97就没有问题,那位能指点一下?谢谢
另外,请问timestamp怎么用?给各例子可以吗?