如何建立SQL Server 2005的连接 [英] how to make sql server 2005 connection

查看:71
本文介绍了如何建立SQL Server 2005的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误为sqlexception.
未提供参数化查询

解决方案

您可以使用在
给出的连接字符串进行验证 http://www.connectionstrings.com/ [ ^ ]

如果您的问题得到解决,那么您可以接受并投票解决该问题,否则请发布您的查询

PES


其中一个参数的值为NULL.将此值设置为DBNull.Value并在数据库中接收该参数.

您的标题表明,当您的最后一句话指示参数有问题时,您将无法连接到服务器. >

error as sqlexception.
parameterized query not supplied

解决方案

You may verify with connection strings given at
http://www.connectionstrings.com/[^]

If your problem is solved then you may accept and vote the solution, otherwise please post your queries

PES


One of you parameters has a NULL value. Set this value to DBNull.Value and the parameter is received in the database.

Your title suggests you cannot connect to the server while your last sentence indicates a parameter problem.


can you post the code where you are getting exception ?


这篇关于如何建立SQL Server 2005的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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