我有一个表格列,其设计如下
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[client_Presence]
(
[ClientID] [varchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Z923FormPath] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
现在,我正在尝试更新上表,如下所示。
UPDATE client_Presence
SET Z923FormPath = 'c:\windows\Z923Form.pdf'
FROM Client_Presence
WHERE ClientID = '12345'
我能够更新 Null 值、'' 值、getdate(),为什么我不能用字符串值更新。
通过上述操作,我收到以下错误,您能帮忙吗?
Procedure: Tr_client_Presence (Line: 19)
Line 19: Conversion failed when converting date and/or time from character string.