SQL Server 2008 Express 인스턴스를 실행하고 있는데 sqlcmd를 사용하여 기본 계정 sqlexpress
을 사용하여 서버에 액세스 할 수 있습니다.SQL Server 2008 Express 및 Windows 인증
이제는 SQL Server가 실행중인 컴퓨터에서 새 Windows 계정을 만들고 Windows 인증을 사용하여 sqlexpress
에 대한 로그인을 만들었습니다. 이 계정은 특히 백업에 사용됩니다.
나는 다음과 백업 스크립트를 실행하여 로그인을 시도
내가 오류를 얻을sqlcmd -S (local)\mywinusr -i TestBkup.sql
(이 백업 스크립트는 기본 계정 sqlexpress
을 위해 잘 작동)
HResult 0xFFFFFFFF, Level 16, State 1
SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..
Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : Login timeout expired. tting login failed for the user.
수 무엇 문제?
: \ 사용자 \ 관리자 \ 바탕 화면> SQLCMD -S (로컬) \ SQLEXPRESS -U localuser -P 암호 - i TestBkup.sql 사용자 domain \ localuser에 대한 오류 로그인이 발생했습니다. – cableload
설명서에 "-U 옵션이나 -P 옵션을 지정하지 않으면 sqlcmd는 Microsoft Windows 인증 모드를 사용하여 연결을 시도합니다. 인증은 sqlcmd를 실행하는 사용자의 Windows 계정을 기반으로합니다. "사용자로 로그온하지 않은 경우 어떻게 연결할 수 있습니까? 감사합니다. – cableload
runas 명령을 사용하여 명령 프롬프트를 a 다른 Windows 사용자 및 다음 내 SQL 서버 백업을 실행합니다. 그것은 잘 작동했습니다. 올바른 방향으로 내게 가리키는 주셔서 감사. – cableload