connection pooling

Posts   
 
    
yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 11-May-2007 16:42:27   

hiya,

I have an existing dbConn string in my web.config. Obviously, I want to take advantage of sql server connection pooling: My existing connections had a "provider" setting.

<add name="LocalSqlServer" connectionString="BLAH"
      providerName="System.Data.SqlClient" />

I try to ad d this property to my llblGenPro connString:


<add key="Main.ConnectionString" value="BLAH;  providerName=System.Data.SqlClient " /> 

error: Keyword not supported: 'providername'. << public static SqlConnection CreateConnection(string connectionString) Line 69: { Line 70: return new SqlConnection(connectionString); Line 71: }>>

hmm, how can I get this to be the same as my existing string?

cheers,

yogi

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 11-May-2007 17:08:47   

As far as I know connection pooling is used by default. ref: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=370

<add name="LocalSqlServer" connectionString="BLAH" providerName="System.Data.SqlClient" />

That's not a connection string, BLAH sounds like the connection string simple_smile

providerName is not a valid key for a connectionString.

yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 13-May-2007 14:02:55   

yes, cheers for that Walaa, you're right.

yogi