Expiring Password Policy and Error Logging to SQL

0 views
Skip to first unread message

Salim

unread,
May 1, 2008, 4:10:09 PM5/1/08
to ELMAH
Hi,

We have expiring password for SQL database and i have difficulty to
get log the errors to SQL server. Is there any way that i can provide
the SQL connection string to ELMAH configuration at run time? Is there
any work around for this?

Atif Aziz

unread,
May 1, 2008, 4:47:44 PM5/1/08
to el...@googlegroups.com
> Is there any way that i can provide
> the SQL connection string to ELMAH configuration at run time?
> Is there any work around for this?

One workaround would be to inherit from Elmah.SqlErrorLog and override the ConnectionString property implementation to calculate and supply the connection string dynamically at runtime. Next, register your subclass of SqlErrorLog as the default error log in web.config.

- Atif

Reply all
Reply to author
Forward
0 new messages