SQL SERVER ALIAS
2015-07-20 22:51
281 查看
When the lone SharePoint Server (SPWFE1) needs to connect to a database (such as WSS_Content_MyContentDB) on the back-end SQL Server (PRODSQL1), it might create a connection string that looks similar to the
following.
Server=PRODSQL1;Database=WSS_Content_MyContentDB;IntegratedSecurity=true;
In this situation, the SharePoint server is directly coupled to the SQL Server because SPWFE1 directly references the production SQL Server (PRODSQL1) by name. This works just fine for day-to-day operations, but it doesn’t
provide any real flexibility to accommodate topology changes that might be required (or “just happen”) in the future.
Consider the same farm when a SQL Server alias is used instead of a direct reference to the SQL Server:
The corresponding connection string that is built by SharePoint to connect to the SQL Server looks a little different; note the difference in Server name:
Server=SPSqlAlias;Database=WSS_Content_MyContentDB;IntegratedSecurity=true;
The SQL Server alias serves as an abstraction layer between theSPWFE1 and PRODSQL1. Whenever SharePoint needs to access a database, it indicates that it wants to connect toSPSqlAlias instead of PRODSQL1.
When this happens, the SQL Server Native Client maps SPSqlAlias requests through toPRODSQL1 at runtime; SharePoint doesn’t specifically know about PRODSQL1, so direct coupling doesn’t occur.
following.
Server=PRODSQL1;Database=WSS_Content_MyContentDB;IntegratedSecurity=true;
In this situation, the SharePoint server is directly coupled to the SQL Server because SPWFE1 directly references the production SQL Server (PRODSQL1) by name. This works just fine for day-to-day operations, but it doesn’t
provide any real flexibility to accommodate topology changes that might be required (or “just happen”) in the future.
Consider the same farm when a SQL Server alias is used instead of a direct reference to the SQL Server:
The corresponding connection string that is built by SharePoint to connect to the SQL Server looks a little different; note the difference in Server name:
Server=SPSqlAlias;Database=WSS_Content_MyContentDB;IntegratedSecurity=true;
The SQL Server alias serves as an abstraction layer between theSPWFE1 and PRODSQL1. Whenever SharePoint needs to access a database, it indicates that it wants to connect toSPSqlAlias instead of PRODSQL1.
When this happens, the SQL Server Native Client maps SPSqlAlias requests through toPRODSQL1 at runtime; SharePoint doesn’t specifically know about PRODSQL1, so direct coupling doesn’t occur.
相关文章推荐
- ubuntu 中安装redis
- oracle自定义的三种分页
- 文件夹文件遍历并插入数据库的操作,IO Directory File的递归操作
- Oracle 配置
- Redis学习笔记~目录
- NoSQL介绍
- 所谓的分布式——memcache
- MongoDB- C# 驱动之增删改查
- Mongodb PHP开发类库
- win8 应用商店程序使用SQLITE数据库
- Mongodb主、副、仲裁节点集群安装
- Oracle编程,遇到并发的情况处理
- 8种Nosql数据库系统对比
- MySQL事物原理
- plsql dev中Dynamic Performance Tables not accessible分析解决(转)
- VB.NET创建/修复/压缩/备份/恢复ACCESS数据库
- Chapter 1 Securing Your Server and Network(1):选择SQL Server业务经理
- 【Navicat连接Oracle数据库】-Navicat连接Oracle数据库设置
- MySql 命令大全
- MySQL事务隔离级别