开始使用SQLServer2005,没用过MSDE,一开始还不知道怎么下手呢,呵呵

开始使用SQLServer2005,没用过MSDE,一开始还不知道怎么下手呢,呵呵

转:http://www.cnblogs.com/duibudui/archive/2004/07/22/29699.aspx

按如下方法(网上查到的):

So onto the Command Prompt ! (wooohooo)

SQLCMD.exe will be your friend to explore the Beta 1 build of SQL Express. Here's how:

- Open a Command Prompt

- SQLCMD -E -S servername/instancename  (e.g.  SQLCMD -E -S guntherb01/sqlexpress)

- select name from sys.databases

- go

 

You'll find a list of the default databases in your SQL Express installation (master, tempdb, model, msdb). However, no sample databases - nothing !

 

So here's an (unofficial) tip to get some sample data in SQL Express (finally, this post is way to long) :-)
   - Download and install Pubs & NWind T-SQL scripts:
http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-0356-46a0-8da2-eebc53a68034&DisplayLang=en

   - SQLCMD -S servername/instance -E (or -U sa -P password)

   - :r "C:/Program Files/Microsoft SQL Server 2000 Sample Database Scripts/instpubs.sql"

   - :r "C:/Program Files/Microsoft SQL Server 2000 Sample Database Scripts/instnwnd.sql"

To verify you have successfully loaded the db's :
- select name from sys.databases
- go
- Use pubs
- select * from authors
- go

Note that these T-SQL scripts were designed for SQL2000 (hence unsupported), but hey, they seemed to run perfectly on my SQL Express machine.

Now start enjoying SQL Express 2005 beta 1 !!!

这个版本的SQLServer2005 express 不包括full-text index

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值