自定义用于ASP Web站点的SQL 7.0数据库
将演示如何使用SQL 7.0服务器的Enterprise Manager创建、配置一个示例数据库。我们还会演示如何增加具有合适权限的用户,以便可以从Web服务器上访问数据。
要做的第一件事是创建一个新的SQL数据库。操作是:从SQL Server 7.0菜单中启动Enterprise Manager,展开SQL服务器组节点,展开要增加数据库的指定SQL服务器,单击数据库图标,然后从Action(动作)菜单项中选择New Database (新建数据库)。
从Action(动作)菜单项中选择New Database在Database Properties(数据库属性)对话框中,输入新数据库的名称,我们把这个示例数据库命名为 WEBPAGES。
该对话框中可以看到SQL 7.0的一个最强大:不用指定数据库的大小,只需指定初始大小。SQL 7.0会在数据库需要扩大时自动扩展数据库文件,扩展的依据是按照指定的增长尺寸或按当前数据库大小的一定百分比。我们接受系统的缺省值,单击OK,新数据库就创建成功了。
下一步,必须配置这个新数据库,以便使用户能够访问它。至少要给两个用户访问权限:管理这台Web服务器的用户和Webmaster(Web站点管理员)。因为不同的用户对数据库有不同的访问需求,所以我们合理配置数据库的用户以反映不同需求。
要增加新用户,首先需要创建服务器登录。操作是:在选定的服务器节点下,单击Login(登录)图标,从Action(动作)菜单中选择New Login(新建登录),所示,弹出SQL 服务器的登录属性-新建登录对话框。
从Action(动作)菜单中选择New Login(新建登录)在这个对话框中,首先选择 Windows NT 认证单选钮,从下拉列表框中选择你所在的域,然后,在名称编辑框中输入用户名。因为不能浏览查找用户,所以要知道Web服务器的用户名。缺省情况下,微软IIS服务器使用的用户名是IUSR_ServerName(在IUSER_后跟所在服务器的名称)。我们例子中的服务器用户名是IUSR_EARTH ,SQL服务器名称是EARTH 。
输入完用户名后,要指定用户的默认数据库和语言。我们要单击Database Access(数据库访问)选项卡以授予该用户对 WEBPAGES 数据库的访问权,并且检查图5中所示的选项。最后,单击OK,完成用户登录的创建。
指定用户的默认数据库和语言
重复以上过程,创建 Webmaster 帐户。因为没有默认的 Webmaster 用户,所以在创建这个登录前,还要确定哪个用户有权管理Web页面。创建Webmaster登录和创建Web服务器登录的区别在于,除了分配给Web服务器登录的public(公用)数据库角色外,还要给Webmaster用户分配db_owner (数据库所有者)服务器角色。

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



How to add trusted sites in Google Chrome? Some users cannot browse the web normally because the page prompts that it is not secure when surfing the Internet. At this time, they can add the website as a trusted site, and we can access it normally and surf the Internet smoothly. The editor below will bring you the steps to add a trusted site in Google Chrome. The steps are simple and easy to operate, and even beginners can easily get started. Friends who need it can learn about it together. How to add a trusted site in Google Chrome: 1. Open Google Chrome and click the three dots in the upper right corner. Click [Settings]. Choose privacy settings and security. (As shown in the picture) 2. Click Website Settings at the bottom of the page. (As shown in the picture) 3. Click on the unsafe content at the bottom of the page. (As shown in the picture) 4. Click the Add button to the right of the Allow option. (As shown in the picture) 5. Lose

MetaMask (also called Little Fox Wallet in Chinese) is a free and well-received encryption wallet software. Currently, BTCC supports binding to the MetaMask wallet. After binding, you can use the MetaMask wallet to quickly log in, store value, buy coins, etc., and you can also get 20 USDT trial bonus for the first time binding. In the BTCCMetaMask wallet tutorial, we will introduce in detail how to register and use MetaMask, and how to bind and use the Little Fox wallet in BTCC. What is MetaMask wallet? With over 30 million users, MetaMask Little Fox Wallet is one of the most popular cryptocurrency wallets today. It is free to use and can be installed on the network as an extension

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

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.

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())

BitgetLaunchpool is a dynamic platform designed for all cryptocurrency enthusiasts. BitgetLaunchpool stands out with its unique offering. Here, you can stake your tokens to unlock more rewards, including airdrops, high returns, and a generous prize pool exclusive to early participants. What is BitgetLaunchpool? BitgetLaunchpool is a cryptocurrency platform where tokens can be staked and earned with user-friendly terms and conditions. By investing BGB or other tokens in Launchpool, users have the opportunity to receive free airdrops, earnings and participate in generous bonus pools. The income from pledged assets is calculated within T+1 hours, and the rewards are based on

According to news from this website on July 23, ASUS has launched a variety of server and workstation-level products powered by AMD EPYC 4004 series processors. Note from this site: AMD launched the AM5 platform and Zen4 architecture EPYC 4004 series processors in May, offering up to 16-core 3DV-Cache specifications. ASUSProER100AB6 server ASUSProER100AB6 is a 1U rack server product equipped with EPYC Xiaolong 4004 series processor, suitable for the needs of IDC and small and medium-sized enterprises. ASUSExpertCenterProET500AB6 workstation ASUSExpertCenterProET500AB6 is a

Using the database callback function in Golang can achieve: executing custom code after the specified database operation is completed. Add custom behavior through separate functions without writing additional code. Callback functions are available for insert, update, delete, and query operations. You must use the sql.Exec, sql.QueryRow, or sql.Query function to use the callback function.
