在SQL 2000中创建数据库并将其连接到.Net [英] Creating database in SQL 2000 and connecting it in .Net

查看:57
本文介绍了在SQL 2000中创建数据库并将其连接到.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

我无法在SQL 2000中创建新数据库。请告诉我该怎么做。一旦创建了数据库,我想有一个连接字符串来连接.Net中的SQL#div class =h2_lin>解决方案

如果你正在使用VS2005 / 08/10那么它很容易创建和填充数据库 - 向导是可行的方法。困难的部分是连接到数据库。这就是我为SQL2008做的事情

展开 | 选择 | Wrap | 行号


谢谢Paul。


我可以通过不同的方法解决问题。


如果是SQL Server 2005,则在SQL Server 2000或SQL Server Management Studio中选择企业管理器,然后右键单击在数据库上,可以创建新数据库。


连接字符串如下:

展开 | 选择 | Wrap | 行号


感谢提示:)


Hello All,
I am unable to create a new database in SQL 2000. Please tell me how to do that. Once the database is created i want to have a connection string to connect SQL in .Net in C#

解决方案

If you''re using VS2005/08/10 then it''s easy to create and populate the database - the wizard is the way to go. The hard part is connecting to the database. This is how I do it for SQL2008

Expand|Select|Wrap|Line Numbers


Thanks Paul.

I could solve the problem by different approach.

Select Enterprise manager in case of SQL Server 2000 or SQL Server Management Studio in case of SQL Server 2005, then by right clicking on database, one can create new database.

connection string is as follows:

Expand|Select|Wrap|Line Numbers


Thanks for the tip off :)


这篇关于在SQL 2000中创建数据库并将其连接到.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆