SELECT [Id], @text FROM [dbo].[A_Stat_Connections_1x1] where [IdChain] = @IdChain
idChain
is a uniqueidentifier
type field, @idChain
is a variable in a program that receives this field at runtime. The data is written to it, I checked. If you remove the variable and just insert 'idchain (сам uid цепочки)'
in brackets, then everything is ok and I set the variable, then I write an error
conversion failed when converting from a character string to uniqueidentifier oktell
tried (SELECT CONVERT(uniqueidentifier,@id_chain))
,
Does not help. What can be done with this?