您的位置:首页 > 博客中心 > 数据库 >

如何快速创建数据库连接字符串

时间:2022-03-10 17:32

1、新建txt文件,更改后缀名为udl

2、右击,以OLE DB Core Services 方式打开

 gxlsystem.com,布布扣

 

3、填写相应的服务器名、登陆方式、数据源

4、以txt方式打开文件,连接字符串已经生成了,怎么样,给力吧

[oledb]
; Everything after this line is an OLE DB initstring
Provider=SQLOLEDB.1;Password=123456;Persist Security Info=True;User ID=sa;Initial Catalog=DyanmsoftWebsite;Data Source=YYGY\SQLEXpreSS

5、写入项目配置文件

   <add key="SQLConnectionString" value="Persist Security Info=False;User ID=sa;Password=123456;Initial Catalog=DyanmsoftWebsite;Data Source=YYGY\SQLEXpreSS"></add>

 

 

如何快速创建数据库连接字符串,布布扣,bubuko.com

热门排行

今日推荐

热门手游