Database Connection String Info

前端 未结 6 1254
误落风尘
误落风尘 2020-12-31 10:55

In .Net is there a class in .Net where you can get the DB name, and all the connection string info without acutally doing a substring on the connection string?

EDIT:

6条回答
  •  耶瑟儿~
    2020-12-31 11:22

    Yep ConnectionInfo

    http://msdn.microsoft.com/en-us/library/ms226340(VS.80).aspx

    EDIT: I, along with Chris, realized that this is only works if you have the Crystal Reports namespaces imported. Otherwise I'm not sure

提交回复
热议问题