Skip to content

Commit

Permalink
Merge pull request #742 from onikolaiev/development
Browse files Browse the repository at this point in the history
🚀 . Incorrect syntax if dbname include hypern
  • Loading branch information
Splaxi authored Jul 12, 2023
2 parents 1885fa3 + f0e0d4f commit 528becb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d365fo.tools/internal/sql/set-bacpacvaluessql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ END

IF EXISTS (SELECT * FROM sys.syslogins WHERE NAME = 'axdbadmin')
BEGIN
ALTER AUTHORIZATION ON database::@DATABASENAME TO sa
ALTER AUTHORIZATION ON database::[@DATABASENAME] TO sa

CREATE USER axdbadmin FROM LOGIN axdbadmin
EXEC sp_addrolemember 'db_owner', 'axdbadmin'
Expand Down

0 comments on commit 528becb

Please sign in to comment.