简体   繁体   English

无法访问SQL数据库

[英]Can't access SQL database

I'm working on a project and now I had to switch account on the computer from local to a account on a domain and thus the windows authentication changed. 我正在做一个项目,现在我不得不将计算机上的帐户从本地帐户切换到域上的帐户,因此Windows身份验证发生了变化。 So I made a new login and it works on the account that is on the domain, but when I change the connection string from 因此,我进行了新登录,该登录名可以在域中的帐户上运行,但是当我从

Data Source=productie3;

to

Data Source='MEVO/productie3';
//tried with either \ or /
//direct connection (using SQL Server Management Studio) to the database using the 
//windows authentication works fine

I tried it without the single quotes as well, 我也尝试不使用单引号,
But it still doesn't work. 但这仍然行不通。

I've used this to allow remove access 我用它来允许删除访问

USE [DB name];
GO
EXEC sp_configure 'remote access', 0 ;
GO
RECONFIGURE ;
GO

But it still won't allow it to connect, if anyone knows what I'm doing wrong please tell me. 但是它仍然不允许连接,如果有人知道我在做什么错,请告诉我。 I'm using Microsoft SQL Server Management Studio for the database. 我正在使用Microsoft SQL Server Management Studio作为数据库。

Try connecting with a backslash. 尝试使用反斜杠进行连接。 You are putting in a forward slash. 您正斜杠。

Data Source='MEVO\productie3';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM