# Could not initialize database: Failed to login as user 'XXX\\ContinuaCI'

**URL:** https://www.finalbuilder.com/forums/t/could-not-initialize-database-failed-to-login-as-user-xxx-continuaci/5656
**Category:** Discussion
**Created:** [July 5, 2013, 8:49am UTC](https://www.finalbuilder.com/forums/t/could-not-initialize-database-failed-to-login-as-user-xxx-continuaci/5656 "2013-07-05T08:49:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![timewarp](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/timewarp/32/46_2.png) [@timewarp](https://www.finalbuilder.com/forums/u/timewarp)
#### Post date: [July 5, 2013, 8:49am UTC](https://www.finalbuilder.com/forums/t/could-not-initialize-database-failed-to-login-as-user-xxx-continuaci/5656/1 "2013-07-05T08:49:23Z")

</div>

Fresh install using SQL Server 2012. &nbsp;I created a Service account and made it the owner of the DB but I still get the above error.

When I run the service from the console with.

.\Continua.Server.Service.exe -console

It is able to init db. &nbsp;So it has to do something with credentials. &nbsp;Any ideas?

---

<div class="post-metadata">

### Author: ![timewarp](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/timewarp/32/46_2.png) [@timewarp](https://www.finalbuilder.com/forums/u/timewarp)
#### Post date: [July 5, 2013, 10:02am UTC](https://www.finalbuilder.com/forums/t/could-not-initialize-database-failed-to-login-as-user-xxx-continuaci/5656/2 "2013-07-05T10:02:56Z")

</div>

Solution:   
  
 The user for the DB was created under the DB and not at the Server level. Why SQL Server thinks I want to add a login to a db that can’t login to the server itself is beyond me. But that was the problem.   
  
 Database login did exist but SQLServer login did NOT exist.
