我安装SQL SERVER2008的时候选择WINDOWS身份验证连接的,我不知道怎么写连接。。。
还有我想改成SQL SERVER身份验证怎么改??
谢谢大家了!
XML code:
<configuration>
<appSettings>
<add key="ConnectionString" value="Server=服务器IP地址 ;Initial Catalog=数据库名称;Integrated Security=True" />
</appSettings>
</configuration>
C# code:
string str = ConfigurationManager.AppSettings["sqlconnection1"];
<configuration>
<appSettings>
<add key="ConnectionString" value="Server=服务器IP地址 ;Initial Catalog=数据库名称;Integrated Security=True" />
</appSettings>
</configuration>
更改登陆验证方式:
登陆SQL后,鼠标右键数据库,属性,然后选择 混合验证 确定重新启动SQL服务
我都是在Web.config里配置这样的一段话连接的。
</sectionGroup>
</configSections>
<appSettings>
<add key="SQLConnectingString" value="Data Source =.\SQLEXPRESS;database =WaterGrassDB;Integrated Security=SSPI;"/>
</appSettings>
相关问答:
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
本人在北京,姓陈
有2年以上工作经验.
有需要的请联系13683175921,待遇详谈.
(非诚勿扰!)
Good Luck!~ 友情Up!~
How Much? ~ 友情Up!~
有点悲剧啊
友情Up!~
日子难混啊
支持楼� ......
比较好的学习asp.net的书推荐一下吧,谢谢~~~
書的話等高人推薦, 我認為多上上www.asp.net對你幫助挺大, 那里有很多視頻, 如果是新手的話, 視& ......
<script type="text/javascript" src="js/Dialog.js"></script>
<script type="text/javascript">
function zOpenD()
{
va ......
我想每天半夜自动生成静态页面。
怎么实现这个方法。
那位高手知道,请赐教下。
写服务!
怎么写
写服务 开线程 写文件 入数据库
写服务或者用开源的调度框架Quartz.net
建议用后者,后者提供比较灵活� ......