ebicoglu / AspNetCoreGraphQL-MyHotel

A sample ASP.NET Core & Angular app for demonstrating GraphQL API service
98 stars 40 forks source link

Error with return query.ToList(); in ReservationQuery.cs #1

Open scotterickson88 opened 5 years ago

scotterickson88 commented 5 years ago

System.Data.SqlClient.SqlException (0x80131904) : 'Cannot open database "MyHotelDb" requested by the login. The login failed. Login failed for user 'BLHS\serickso'.'

SitholeWB commented 5 years ago

I resolved that by creating Login on my SQL instance. Try creating user under Security -> Logins.

I believe this can be avoided in future by switching from SQL Server to SQL Lite.