DbConnection与ASP应用程序 [英] DbConnection with asp app

查看:68
本文介绍了DbConnection与ASP应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

我的web.config文件中有不同的连接字符串,并且一次我必须检查与db的连接是否稳定,如果它直接从Web配置文件中进行检查,那么对我来说更好对于下一个任务(跳至 未建立的连接)

I have diffrent connnection strings in my web.config file and at a time i have to check that whather the connection is establis to Db or not if it checks directly from the web config file then it is better for me to go ahead for the next task(skipping to that connection which is not established)

如何从Web配置检查连接,我可以使用应用程序设置读取文件,但是如何检查连接

How to check the connection from the web config i am able to read the file using the app setting but how to check the connection

谢谢

 

推荐答案

Deepak

Hi Deepak,

 

谢谢您的发帖!  ;我建议将您的问题发布到MS论坛之一中

Thank you for your post!  I would suggest posting your question in one of the MS Forum

Data Developer Center > Data Platform Development Forums > ADO.NET Managed Providers


这篇关于DbConnection与ASP应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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