SQL SERVER2008开启远程数据库访问
转自:http://hi.baidu.com/alilamp/item/c592230d9b596927a0312d9a tag:sql server2008 远程 数据库 , 远程 连sql,IP 远程 连SQL SERVER,1433端口映射这篇文章不错,我试验了确实可以,moon.翘楚在这里再进行一下图文增补,让大家更加明白。讲解SQL Serv
转自:http://hi.baidu.com/alilamp/item/c592230d9b596927a0312d9a
tag:sql server2008远程数据库,远程连sql,IP远程连SQL SERVER,1433端口映射这篇文章不错,我试验了确实可以,moon.翘楚在这里再进行一下图文增补,让大家更加明白。讲解SQL Server 2008开启远程连接作者:blue1000出处:IT专家网论坛2010-06-23 07:00
sql server 2008默认是不允许远程连接的,sa帐户默认禁用的,如果想要在本地用SSMS连接远程服务器上的SQL Server 2008,需要做两个部分的配置:
sql server 2008默认是不允许远程连接的,sa帐户默认禁用的,如果想要在本地用SSMS连接远程服务器上的SQL Server 2008,需要做两个部分的配置:
1,SQL Server Management Studio Express(简写SSMS)
2,SQL Server 配置管理器/SQL Server Configuration Manager(简写SSCM)
有两点要注意:
1,2005的外围应用配置器在2008中换了地方
2,有些设置生效需要重启一下SQL Server
step 1: 打开SSMS,用windows身份连接数据库,登录后,右键选择“属性”
step 2: 左侧选择“安全性”,选中右侧的“SQL Server 和 Windows 身份验证模式”以启用混合登录模式
step 3: 选择“连接”,勾选“允许远程连接此服务器”,然后点“确定”
step 4: 展开“安全性”->“登录名”->“sa”,右键选择“属性”
step 5: 左侧选择“常规”,右侧选择“SQL Server 身份验证”,并设置密码
step 6: 选择“状态”,选中“启用”,点击“确定”
step 7: 右击数据库选择“方面”
step 8: 将“RemoteAccessEnabled”属性设为“True”,点“确定”
在方面:服务器配置 下拉标签里
step 9: 至此SSMS已设置完毕,先退出,再用sa登录,成功即表示sa帐户已经启用
step 10: 下面开始配置SSCM,选中左侧的“SQL Server服务”,确保右侧的“SQL Server”以及“SQL Server Browser”正在运行
step 11: 以下为英文版本界面。如图:右侧的TCP/IP默认是“Disabled”,双击打开设置面板将其修改为“Enabled”
step 12: 选择“IP Addersses”选项卡,设置端口“1433”
step 13: 如图将"Client Protocols"的"TCP/IP"也修改为“Enabled”
step 14: 配置完成,重新启动SQL Server 2008。
此时应该可以使用了,但是还是要确认一下防火墙。
SQL Server 2005/2008 Express安装以后,默认情况下是禁用远程连接的。如果需要远程访问,需要手动配置。
打开防火墙设置。将SQLServr.exe(C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Binn\sqlservr.exe)添加到允许的列表中。
---------------------------------------------------------------------------------
翘楚补充一下,如何映射1433端口,也许有的朋友以上步骤都做了一遍仍然链接不通,就需要打开服务器或者路由器的权限及端口配置了。如果是公司的配置将更加复杂,翘楚在这里仅用家庭的常用路由器TPLINK的映射配置做例子。
浏览器输入192.168.1.1
如图,选择转发规则-虚拟服务器-
OK 大功告成。
然后看下 cmd- ipconfig/ALL 查下自己的真实IP,
然后请地球那边的一个能上网的哥们儿,打开SQL Server Management Studio
服务器填写 真实IP的名字 不需要加1433
sa
及密码
连接OK!!! 通了

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

HQL and SQL are compared in the Hibernate framework: HQL (1. Object-oriented syntax, 2. Database-independent queries, 3. Type safety), while SQL directly operates the database (1. Database-independent standards, 2. Complex executable queries and data manipulation).

Go language is an efficient, concise and easy-to-learn programming language. It is favored by developers because of its advantages in concurrent programming and network programming. In actual development, database operations are an indispensable part. This article will introduce how to use Go language to implement database addition, deletion, modification and query operations. In Go language, we usually use third-party libraries to operate databases, such as commonly used sql packages, gorm, etc. Here we take the sql package as an example to introduce how to implement the addition, deletion, modification and query operations of the database. Assume we are using a MySQL database.

Hibernate polymorphic mapping can map inherited classes to the database and provides the following mapping types: joined-subclass: Create a separate table for the subclass, including all columns of the parent class. table-per-class: Create a separate table for subclasses, containing only subclass-specific columns. union-subclass: similar to joined-subclass, but the parent class table unions all subclass columns.

Apple's latest releases of iOS18, iPadOS18 and macOS Sequoia systems have added an important feature to the Photos application, designed to help users easily recover photos and videos lost or damaged due to various reasons. The new feature introduces an album called "Recovered" in the Tools section of the Photos app that will automatically appear when a user has pictures or videos on their device that are not part of their photo library. The emergence of the "Recovered" album provides a solution for photos and videos lost due to database corruption, the camera application not saving to the photo library correctly, or a third-party application managing the photo library. Users only need a few simple steps

HTML cannot read the database directly, but it can be achieved through JavaScript and AJAX. The steps include establishing a database connection, sending a query, processing the response, and updating the page. This article provides a practical example of using JavaScript, AJAX and PHP to read data from a MySQL database, showing how to dynamically display query results in an HTML page. This example uses XMLHttpRequest to establish a database connection, send a query and process the response, thereby filling data into page elements and realizing the function of HTML reading the database.

How to use MySQLi to establish a database connection in PHP: Include MySQLi extension (require_once) Create connection function (functionconnect_to_db) Call connection function ($conn=connect_to_db()) Execute query ($result=$conn->query()) Close connection ( $conn->close())

Be the first to open the mission treasure house and plan the battle one step ahead. The 13.3 version of "World of Warships" is now open. Knowing all the important information about the new version of combat missions and combat types will help captains plan the overall battle and quickly obtain relevant rewards. In version 13.3, the asymmetric combat mode that captains have been waiting for returns. Captains need to control the warships against AI warships that are lower in level but more numerous. This mode is very suitable for team play. Up to 5 players can form a team to fight side by side. More tacit cooperation can help you defeat the opponent quickly. During patch 13.3, all captains will have the opportunity to collect the Somme Collection and obtain this Tier IX destroyer. The requirement for this task is also very simple, that is, win the game before the next version is released.

To handle database connection errors in PHP, you can use the following steps: Use mysqli_connect_errno() to obtain the error code. Use mysqli_connect_error() to get the error message. By capturing and logging these error messages, database connection issues can be easily identified and resolved, ensuring the smooth running of your application.
