连接到Sql Server [英] Connecting to Sql Server

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

问题描述

我目前正在使用sql server 2000并使用C#数据库。我收到以下错误sql server不存在或访问被拒绝。 ExecuteNonQuery需要一个开放且可用的连接 plzzzzzzzzzzz帮助我,我正在阅读一些文章说,寻找sql server的IP地址,我无法弄清楚。我只是需要建立联系,就是这样。我的连接字符串也是正确的,希望。

感谢你的预期。

解决方案

$ b $我目前正在使用sql server 2000并使用C#数据库。我收到以下错误sql server不存在或访问被拒绝。 ExecuteNonQuery需要一个开放且可用的连接 plzzzzzzzzzzz帮助我,我正在阅读一些文章说,寻找sql server的IP地址,我无法弄清楚。我只是需要建立联系,就是这样。我的连接字符串也是正确的,希望。

感谢你的期待。



请发布您的代码,以便我们了解您在做什么?


Nathan



i目前正在使用sql server 2000并使用C#数据库。我收到以下错误sql server不存在或访问被拒绝。 ExecuteNonQuery需要一个开放且可用的连接 plzzzzzzzzzzz帮助我,我正在阅读一些文章说,寻找sql server的IP地址,我无法弄清楚。我只是需要建立联系,就是这样。我的连接字符串也是正确的,希望。

感谢你的期待。



您好Manisha,欢迎来到TSDN!

将来您可以使用更具描述性的标题来解释您的问题。

谢谢!


至于你的问题,请你查看这篇.net文章如何在程序中使用数据库?我在VB.NET中知道它,但它很容易被翻译成C#。


你能否发布用于连接数据库的代码片段,以便我们可以更好地帮助你(请使用[code]标签来表明你的代码是代码。)


谢谢!


-Frinny



请发布您的代码,以便我们知道您在做什么?


Nathan



首先,非常感谢Nathan,因为看看我的问题。我真的很感激,希望我能对你有所帮助。祝福你。


这里是我的代码,这恰好是我使用数据库的第一个代码。

展开 | 选择 | Wrap | 行号

i am currently using sql server 2000 and working with C# database. i am getting the following error "sql server does not exist or access denied. ExecuteNonQuery requires an open and available connection " plzzzzzzzzzzz help me, i was going through some articles which said look out for the IP address of sql server and which i could not figure out. i just need my connection to be established, that''s it. my connection string is also correct, hopefully.
thanking u in anticipation.

解决方案

i am currently using sql server 2000 and working with C# database. i am getting the following error "sql server does not exist or access denied. ExecuteNonQuery requires an open and available connection " plzzzzzzzzzzz help me, i was going through some articles which said look out for the IP address of sql server and which i could not figure out. i just need my connection to be established, that''s it. my connection string is also correct, hopefully.
thanking u in anticipation.

Please post your code so that we can have an idea of what you are doing?

Nathan


i am currently using sql server 2000 and working with C# database. i am getting the following error "sql server does not exist or access denied. ExecuteNonQuery requires an open and available connection " plzzzzzzzzzzz help me, i was going through some articles which said look out for the IP address of sql server and which i could not figure out. i just need my connection to be established, that''s it. my connection string is also correct, hopefully.
thanking u in anticipation.

Hi Manisha, welcome to TSDN!
In the future could you please use a more descriptive title explaining your problem.
Thanks!

As for your problem, have you checked out this .net article on how to use a database in your program ? I know its in VB.NET but it can easily be translated into C#.

Could you please post the code snippet that you''re using to connect to your database so that we can better help you (please use the [code] tags to indicate that your code is code.)

Thanks!

-Frinny


Please post your code so that we can have an idea of what you are doing?

Nathan

firstly, thank u sooooooooo much Nathan for having a look at my question. i really appreciate it, wish if I could be of some use to u too. bless u.

here is my code, which happens to be my first code using a database.

Expand|Select|Wrap|Line Numbers


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

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