sql server - getting Incorrect syntax near ',' error -


i mistake here can't see what? idea?

declare @out nvarchar(50);  exec dbo.cbt_registration_createuseraccount (select newid()), (select convert(varchar(255), newid())), (select convert(varchar(255), newid())), (select convert(varchar(255), newid())),  (select convert(uniqueidentifier,'270b5adc-873f-4b69-8e70-1954228aa16e')), (select convert(varchar(255), newid())), (select convert(uniqueidentifier,'37781810-3a49-4ce0-922d-54543b0bacde')), (select convert(varchar(255), newid())), 'gbp',(select convert(uniqueidentifier,'4ee4f84d-24ad-4e0d-a3b8-d9a5d1949d46')), @out out  select @out 

msg 102, level 15, state 1, line 3 incorrect syntax near ','. msg 102, level 15, state 1, line 3 incorrect syntax near ','. msg 102, level 15, state 1, line 3 incorrect syntax near ','. msg 102, level 15, state 1, line 3 incorrect syntax near ','. msg 102, level 15, state 1, line 4 incorrect syntax near ','. msg 102, level 15, state 1, line 4 incorrect syntax near ','. msg 102, level 15, state 1, line 4 incorrect syntax near ','. msg 102, level 15, state 1, line 4 incorrect syntax near ','. msg 102, level 15, state 1, line 5 incorrect syntax near ','.

change exec command below:

you have misplaced opening , closing small brackets.

exec dbo.cbt_registration_createuseraccount (select newid(), (select convert(varchar(255), newid())), (select convert(varchar(255), newid())), (select convert(varchar(255), newid())),  (select convert(uniqueidentifier,'270b5adc-873f-4b69-8e70-1954228aa16e')), (select convert(varchar(255), newid())), (select convert(uniqueidentifier,'37781810-3a49-4ce0-922d-54543b0bacde')), (select convert(varchar(255), newid())), 'gbp',(select convert(uniqueidentifier,'4ee4f84d-24ad-4e0d-a3b8-d9a5d1949d46')), @out out) 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -