sql - value function requires 2 arguments -
i have store procedure shows error
"value function requires 2 arguments"
can guide me missing here?
insert [dbo].[product_tbl] ([prod_id],[productname],[productdate],[booking_id]) select @prod_id, coalesce([table].[column].value('productname[1]', 'nvarchar(50)'),'') 'productname', coalesce([table].[column].value('productdate[1]', 'datetime'),getdate()) 'productdate', coalesce([table].[column].value((select max(booking_id) booking_tbl)),'') 'booking_id' @strxml.nodes('/table/record') [table]([column])
Comments
Post a Comment