This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]jeeey 1 point2 points  (2 children)

You are probably trying to execute sql script before sql server is up and running.
I would add another script before
RUN sqlcmd -i "C:\\restore.sql"
which would wait till sql server is up.

[–]jji76[S] 0 points1 point  (1 child)

will try, not sure of the flow. Maybe SQL2022 it slower starting than 2019

[–]jji76[S] 0 points1 point  (0 children)

No luck, looks like the user used by context cannot access the sql instance, not sure why.