Quantcast
Channel: Catch SqlException
Browsing latest articles
Browse All 5 View Live

Catch SqlException

Harry,I think because you are opening the connection to SQL server outside (before) of the try-catch block.The best way is like: using (SqlConnection connection = new SqlConnection(connectionString)) {...

View Article



Catch SqlException

Hi,Try adding one more catch block as below.catch(Exception Ex) { error message }Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution...

View Article

Catch SqlException

Did you also add a generic catch? I'm just guessing, but you may try it as well.For every expert, there is an equal and opposite expert. - Becker's LawMy blogMy TechNet articles

View Article

Catch SqlException

This code does work for a valid user. Hello Harry,If it works, then what is the issue with your code?The other issue is that the error does not appear in the SQL Server logYou can setup SQL Server to...

View Article

Catch SqlException

I have a Visual Studio Express 2010 c# application using Ling-SQL.  I'm getting a login failure, so I added a try-catch as follows:try {      Execute a Get stored procedure to read data from a table }...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images