to get the current connection string being used

Posts   
 
    
mkamoski avatar
mkamoski
User
Posts: 116
Joined: 06-Dec-2005
# Posted on: 13-Jun-2006 21:28:41   

Is there a way to to get the current connection string being used, for debug purposes, at run-time, programmatically?

Please advise.

Thank you.

--Mark Kamoski

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 13-Jun-2006 21:43:17   

adapter or selfservicing?

Frans Bouma | Lead developer LLBLGen Pro
mkamoski avatar
mkamoski
User
Posts: 116
Joined: 06-Dec-2005
# Posted on: 14-Jun-2006 17:57:45   

Otis wrote:

adapter or selfservicing?

I am sorry; I forgot to mention that.

FYI, we are using LLBLGen, ASP.NET, VS.NET 2003, VB.NET, .NET 1.1, the Adapter templates, SQL Server 2000, web services, SD.LLBLGen.Pro.DQE.SqlServer.NET11.dll Version 1.0.20051.51207, SD.LLBLGen.Pro.ORMSupportClasses.NET11.dll Version 1.0.20051.51214, Windows XP Pro, IIS 5.1, and so on.

Thank you.

--Mark Kamoski

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 14-Jun-2006 19:10:59   

Just do string theConnectionString = myDataAccessAdapter.ConnectionString; simple_smile

Frans Bouma | Lead developer LLBLGen Pro