Table of Contents
SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL服务器(不是域环境)
Home Database Mysql Tutorial SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL

Jun 07, 2016 pm 03:44 PM
sqlserver windows use local area network identity verify

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL服务器(不是域环境) 之前连MSDN都说连接局域网内的另一台SQL服务器如果要用Windows身份验证的话必须是 域环境 但是今天我发现使用Windows身份验证不用域环境照样可以连接局域网内的另一台SQL

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL服务器(不是域环境)

之前连MSDN都说连接局域网内的另一台SQL服务器如果要用Windows身份验证的话必须是“域环境”

但是今天我发现使用Windows身份验证不用域环境照样可以连接局域网内的另一台SQL服务器

在MSDN上的解释:

地址:http://msdn.microsoft.com/zh-cn/library/ms144284.aspx

        http://msdn.microsoft.com/zh-cn/library/ms143705(v=SQL.90).aspx

  • 允许 SQL Server 支持具有混合操作系统的环境,在这种环境中并不是所有用户均由 Windows 域进行验证

 

实际上是msdn论坛上的一个帖子中某人尝试了之后发现的

我说一下步骤:

我的试验环境:

A机器:Windows7 SQL2005  计算机名: joe  

B机器:Windows8 SQL2008R2   计算机名:joehomepc

 

条件:A机器的 Windows帐户名跟B机器的Windows帐户名要一样 ,密码也要一样(可以没有密码)

 

第一步:

比如我的A机器的Windows帐户是 Administrator

而我的B机器的Windows帐户也是Administrator

 

两个帐户的密码都为空

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL

 

A机器ip:192.168.1.100
B机器ip:192.168.1.102

 

第二步:

在A机器上打开SSMS,然后输入B机器的ip地址,使用Windows身份验证

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL

 

直接连接到SQL2008R2

第三步:

查询SQL2008R2上的数据,如果在对象资源管理器里-》打开表会报错

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL

 

但是使用查询编辑器就不会报错

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL

 

SQLSERVER 在局域网使用Windows身份验证连接局域网内的另一台SQL

 

估计是因为SQL2008已经不支持SQL2005的“打开表”这个命令了

 


 

总结:

究竟是微软的漏洞呢?还是我们不知道有这个功能?

 

 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if Beyond Compare fails to case sensitivity when synchronizing Windows and Linux files? What should I do if Beyond Compare fails to case sensitivity when synchronizing Windows and Linux files? Apr 01, 2025 am 08:06 AM

The problem of comparing and synchronizing BeyondCompare files: Case sensitivity failure when using Beyond...

How to avoid third-party interfaces returning 403 errors in Node environment? How to avoid third-party interfaces returning 403 errors in Node environment? Apr 01, 2025 pm 02:03 PM

How to avoid the third-party interface returning 403 error in the Node environment. When calling the third-party website interface using Node.js, you sometimes encounter the problem of returning 403 error. �...

Why can't my code get the data returned by the API? How to solve this problem? Why can't my code get the data returned by the API? How to solve this problem? Apr 01, 2025 pm 08:09 PM

Why can't my code get the data returned by the API? In programming, we often encounter the problem of returning null values ​​when API calls, which is not only confusing...

Four ways to implement multithreading in C language Four ways to implement multithreading in C language Apr 03, 2025 pm 03:00 PM

Multithreading in the language can greatly improve program efficiency. There are four main ways to implement multithreading in C language: Create independent processes: Create multiple independently running processes, each process has its own memory space. Pseudo-multithreading: Create multiple execution streams in a process that share the same memory space and execute alternately. Multi-threaded library: Use multi-threaded libraries such as pthreads to create and manage threads, providing rich thread operation functions. Coroutine: A lightweight multi-threaded implementation that divides tasks into small subtasks and executes them in turn.

Where to download Python .whl files under Windows? Where to download Python .whl files under Windows? Apr 01, 2025 pm 08:18 PM

Python binary library (.whl) download method explores the difficulties many Python developers encounter when installing certain libraries on Windows systems. A common solution...

How to monitor system performance through Debian logs How to monitor system performance through Debian logs Apr 02, 2025 am 08:00 AM

Mastering Debian system log monitoring is the key to efficient operation and maintenance. It can help you understand the system's operating conditions in a timely manner, quickly locate faults, and optimize system performance. This article will introduce several commonly used monitoring methods and tools. Monitoring system resources with the sysstat toolkit The sysstat toolkit provides a series of powerful command line tools for collecting, analyzing and reporting various system resource metrics, including CPU load, memory usage, disk I/O, network throughput, etc. The main tools include: sar: a comprehensive system resource statistics tool, covering CPU, memory, disk, network, etc. iostat: disk and CPU statistics. mpstat: Statistics of multi-core CPUs. pidsta

How to efficiently read Windows system logs and get only information from the last few days? How to efficiently read Windows system logs and get only information from the last few days? Apr 01, 2025 pm 11:21 PM

Efficient reading of Windows system logs: Reversely traverse Evtx files When using Python to process Windows system log files (.evtx), direct reading will be from the earliest...

c What are the differences between the three implementation methods of multithreading c What are the differences between the three implementation methods of multithreading Apr 03, 2025 pm 03:03 PM

Multithreading is an important technology in computer programming and is used to improve program execution efficiency. In the C language, there are many ways to implement multithreading, including thread libraries, POSIX threads, and Windows API.

See all articles