tsql - SQL Server Incorrect Syntax -


I get the error listed below:

Message 156, level 15, state 1, process spGetManagerName False syntax near line 22 keyword 'SELECT'.

Status: A user selects a team (from a dropdown) that changes into TeamID and gets sent to the Data Access Layer (DAL). TeamID is passed in the stored procedure on the basis of Team ID ... Team & amp; The manager table is inquired to reveal the names of the right managers.

Problem: I am receiving a syntax error message. I know that it has some small but it can not be seen right now.

Anyone is watching what's happening on this ...

  USE [Travel_Test] Go Set ANSI_NULLS Go On Go SET QUOTED_IDENTIFIER - === =========================================== Description: Team dropdown selection Getting the name of the manager from - =========================================== == Create the process [dbo]. [SpGetManagerName] @inputTaamID int, @ManName nvarchar (50) - Output to prevent additional result set on SET NOCOUNT - Interference with SELECT statement. Set nosenate on; SELECT @ManName = ManagerFName + '' + ManagerLName AS Manager Manager M. WHERE m.ManagerID = SELECT Team.ManagerID Team Team WHERE Team TEAMID = @inputTeamID;  

Try adding bracket:

  forming process [DBO]. [SpGetManagerName] @inputTamID int, @ManName nvarchar (50) - Output to prevent additional result set on SET NOCOUNT - Interference with SELECT statement. Set nosenate on; SELECT @ManName = ManagerFName + '+ ManagerLM FM Manager from M. ManagerID = (Select Team Team Team from TAMID = Insert TAMID); Go Back  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -