Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while creating database using sqlserver #5

Open
Harshgupta71 opened this issue Oct 6, 2020 · 1 comment
Open

Issue while creating database using sqlserver #5

Harshgupta71 opened this issue Oct 6, 2020 · 1 comment

Comments

@Harshgupta71
Copy link

I am using entity framework and creating a database in SQL server.

I set the connection string but still getting the same error every time. I am not sure where I need to set up the connection string.

I already run the below command.

SET EF_CONNECTIONSTRING="Server=localhost;Database=ElsaDb;Trusted_Connection=True;"

Update-database -verbose -context SqlServerContext

image

@DoomerDGR8
Copy link

I solved this by creating a system-level environment variable:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants