Skip to content

Commit 7b90f48

Browse files
authored
Fix SQL stored procedure syntax to use SELECT instead of RETURN (#5328)
In SQL Server, RETURN is intended only for integer status codes so that SELECT is the correct for returning computed string results from a stored procedure
1 parent 4c9a955 commit 7b90f48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • entity-framework/core/managing-schemas/migrations

entity-framework/core/managing-schemas/migrations/managing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ migrationBuilder.Sql(
151151
@LastName nvarchar(50),
152152
@FirstName nvarchar(50)
153153
AS
154-
RETURN @LastName + @FirstName;')");
154+
SELECT @LastName + @FirstName;')");
155155
```
156156

157157
> [!TIP]

0 commit comments

Comments
 (0)