hi
this is my code:
USE [rasol]
GO
/****** Object: UserDefinedTableType [dbo].[hesab_moin_update] Script Date: 09/16/2013 16:26:56 ******/
CREATETYPE [dbo].[hesab_moin_update]ASTABLE(
[id_moin] [int] NOT NULL,
[moin_name] [nvarchar](70)NOTNULL,
[id_kol] [int] NOT NULL,
[kol_name] [nvarchar](70)NOTNULL
)
GO
SETANSI_NULLSON
GO
SETQUOTED_IDENTIFIERON
GO
ALTERproc [dbo].[hesab_moin_update]
@bb dbo.hesab_moin_updatereadonly
as
setnocounton;
UPDATE dbo.hesab_moin
SET hesab_moin.moin_name= ec.moin_name,hesab_moin.id_kol= ec.id_kol,hesab_moin.kol_name= ec.kol_name
FROM dbo.hesab_moinINNERJOIN @bb AS ec
ON dbo.hesab_moin.id_moin= ec.id_moin
when i run the procedure it get this error :
Msg 207, Level 16, State 1, Procedure hesab_moin_update, Line 9
Invalid column name 'id_moin'.
please help me.
best regards.