关键字:SqlServer2005Dev版本安装 SQL Server Management Studio简单实用 SQLCMD运用
Part one: 安装
1. SqlServer2005 preInstallation
先安装IIS组件,再安装.NET Framework;
如果顺序不对,安装时可能出现如下错误:
解决办法:
命令行模式下进入C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
执行 aspnet_regiis.exe -i
2. 安装
加载映像或点击.exe开始安装,个人认为三个地方需要说明:
首先如下图:
此处可以根据需要选择,如此处我除报表外,选择了其他所有组件
其次,配置Service Account的时候要选Use the built-in System account(如下图)
还有是配置authentication mode的时候,要选择Mixed Mode,如下图(SQL Server Management Studio登陆的用户名为sa)
到此处安装已经完成;
点击start-All programs-Micrift SqlServer 2005将会看到如下画面
Part two: SQL Server Management Studio
点击start - All programs - Micrift SqlServer 2005 - SQL Server Management Studio,可以进入SQL Server Management Studio操作界面
关于SQL Server Management Studio个人理解他就是一个数据库客户端,所以他的功能我们可以想象到(管理维护服务器)
创建数据库:
同样我们可以在Object Explore中创建表、视图、索引等
执行Transact-SQL
Note That:On the Management Studio toolbar, click Database Engine Query to open the Query Editor
显示查询结果:
Part three: SQLCMD
The first step to using sqlcmd is starting the utility.
To start the sqlcmd utility and connect to a default instance of SQL Server
1. Click Start, point to All Programs, point to Accessories, and then click Command Prompt.
2. At the command prompt, type sqlcmd.
3. Press ENTER.
To terminate your sqlcmd session, type EXIT at the sqlcmd prompt.
An example to use sqlcmd(the below figure)
To connect to a named instance of SQL Server by using sqlcmd
1. Open a command prompt window, and type sqlcmd -S myServer
2. Press ENTER.
An example to connect to Local Server and search all databases(the below figure)
It is obviously that there are three added databases in Local Server.
Use sqlcmd to run Transact-sql
the below figure show the process of the using of Transact-sql
Note that: in the local server, there is a database name 'test2',and in database test2 exist a table named 'test2'.
To run the script file
the Script file name is 'testScript.sql', located in Disk C root path, the content of testScript.sql as following:
-----------------------Script start-----------------------------------
use test2;
go
create table test_script (
id integer not null ,
name varchar(200) null
);
go
insert into test_script values(100,'Script 100');
insert into test_script values(101,'Script 101');
insert into test_script values(102,'Script 102');
go
select * from test_script;
go
--------------------------Script end---------------------------------------
run the script file as the below figure described;
- 大小: 6.9 KB
- 大小: 1.6 KB
- 大小: 12.1 KB
- 大小: 6.9 KB
- 大小: 55.7 KB
- 大小: 23.8 KB
- 大小: 28.7 KB
- 大小: 22.7 KB
- 大小: 4.7 KB
- 大小: 8.7 KB
- 大小: 15 KB
- 大小: 3.2 KB
分享到:
相关推荐
SQL Server 2017软件安装程序,直接从官网打包好,为你安装SQL Server省时间......
cs_sql_2005_dev_all_dvd X86 开发版 安装和学习,调试用的数据库。 文件小,安装快,功能强大 。
SQL Server 2005 JDBC 驱动 SQL Server 2000 JDBC 驱动 打包在一起了,解压后有两个压缩包,一个是2000的一个是2005的
文件名 cn_sql_server_2017_developer_x64_dvd_11296175.iso SHA1 6BBF019EDAE11A7307EBBE30260FB...ed2k://|file|cn_sql_server_2017_developer_x64_dvd_11296175.iso|1769777152|E21AE7C3576C0BDF1BC0ADC541217FAC|/
SQLServer2017-SSEI-Dev.zip
SQLServer2016-SSEI-Dev.exe 开发者版的sqlserver 在线安装工具,开发者版不受容量限制
SQL2022-SSEI-Dev
sql server 2019官方版本中文安装包,安装过程简单明了 SQL Server 是Microsoft 公司推出的关系型数据库管理系统。具有使用方便可伸缩性好与相关软件集成程度高等优点,可跨越从运行Microsoft Windows 98 的膝上型...
SQL Server 2012 Developer Edition (Simplified Chinese)开发版/企业(核心)版/个人版/标准版/ 全套iso原版
SQL Server 2016 Developer's Guide by Dejan Sarka English | 22 Mar. 2017 | ASIN: B01MS5L01Q | 616 Pages | AZW3 | 16.98 MB Get the most out of the rich development capabilities of SQL Server 2016 to ...
win7(windows 7)系统下安装SQL2005(SQL Server 2005)图文教程 由于工作需要,今天要在电脑上安装SQL Server 2005。以往的项目都是使用Oracle,MS的数据库还真的没怎么用过,安装Oracle已经轻车熟路,但装SQL Server...
Sql_server数据库课程设计_图书馆管理系统.pdf
如何在GridView中显示SQL Server 2005数据库表BLOB数据.pdf
SQL Server中新增加了XML.Modify()方法,分别为xml.modify(insert),xml.modify(delete),xml.modify(replace)对应XML的插入,删除和修改操作。 本文以下面XML为例,对三种DML进行说明: declare @XMLVar xml = ‘ ...
一、SQL Server 2022 Dev版本下载安装 二、SQL Server 2014 Express版本下载安装
SQL2022-SSEI-Dev.exe
SQLSERVER官方驱动 jtds-1.3.1 mssql-jdbc-7.0.0.jre8 sqljdbc42
SQL Server 2005中临时表的基本概述