Can a database exception contain the password used in the connection string?

Can a standard database exception (ADO.NET or Entity Framework) contain a password after running .ToString()

on it?

I am most interested in MS SQL and Postgres databases.

I would like to make sure that I do not get the password in the logs that I generate on every "ToStringed" database exception.

+3


source to share





All Articles