Hello All, I am having problem accessing a column from the table variable. Can anyone please show me how? Thanks in advance.
declare @TableVar1 table ([chrChangeType] [char] (1),
[chrBeforeIDType] [char] (2))
Insert Into @TableVar1 (chrChangeType, chrBeforeIDType)
Select chrChangeType, chrBeforeIDType
FROM tblcustidchanged
'This is where the error raise'
SELECT @TableVar.chrChangeType
FROM @TableVar1
declare @TableVar1 table ([chrChangeType] [char] (1),
[chrBeforeIDType] [char] (2))
Insert Into @TableVar1 (chrChangeType, chrBeforeIDType)
Select chrChangeType, chrBeforeIDType
FROM tblcustidchanged
'This is where the error raise'
SELECT @TableVar.chrChangeType
FROM @TableVar1