添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Guys,

We migrate our database from MS SQL 2008 to MS SQL 2012, but, when I tried access our app, the app show me the follows error:

Error Executing Database Query.

Cannot open database "DB" requested by the login. The login failed. ClientConnectionId:562379cb-792a-4d92-88fb-b274aed1a6e9

SQLSTATE       S0001

DATASOURCE       DB

VENDORERRORCODE       4060

We generated a dump from our production environment and we imported into our developing environment, after imported, the CF show for us the error above.

Someone, know how solve this problem?

Tks,

Fabiano Magno Pechibella

Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Hi BKBK,

The solution was....

Go to SQL Server >> Security >> Logins and right click on NT AUTHORITY\NETWORK SERVICE and select Properties

errnt.jpg

In newly opened screen of Login Properties, go to the “User Mapping” tab. Then, on the “User Mapping” tab, select the desired database – especially the database for which this error message is displayed. On the lower screen, check the role db_owner. Click OK.

errnt1.jpg

Tks,

Best Regards,

Fabiano Magno Pechibella

Sep 05, 2016 Sep 05, 2016

It tells you what the problem is. The login failed . There is a problem with your authentication.

You need to start there and make sure all the authentication is setup the same way as it was before the migration.

How did you migrate the SQL? AS this is a Coldfusion forum you may get a better chance asking this somewhere SQL related.

Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more Sep 05, 2016 Sep 05, 2016
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more Sep 05, 2016 Sep 05, 2016
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more Sep 06, 2016 Sep 06, 2016

Hi BKBK,

The solution was....

Go to SQL Server >> Security >> Logins and right click on NT AUTHORITY\NETWORK SERVICE and select Properties

errnt.jpg

In newly opened screen of Login Properties, go to the “User Mapping” tab. Then, on the “User Mapping” tab, select the desired database – especially the database for which this error message is displayed. On the lower screen, check the role db_owner. Click OK.

errnt1.jpg

Tks,

Best Regards,

Fabiano Magno Pechibella

Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more Sep 06, 2016 Sep 06, 2016
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more Sep 07, 2016 Sep 07, 2016
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more