Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

.NET and SQL problems.

Howdy guys,

I'm having a problem with some .NET (C#) code that I have created. I would love to post the code and problem here, but it is very long winded and I think it would be hard to read code on these forums.

If you would be so kind, could you please visit which will explain my problem. I'm not trying to advertise the forum in any way, just trying to ask you guys a problem that would be hard to ask on these boards.

Please reply to this post with answers, or to the post at the link provided, or by emailing me. I don't care how you chose to go about it.

Thankyou very much to anyone kind enough to check it out and help me :)

Paul Stovell
Tuesday, March 23, 2004

You're not setting the instance variable dbType in createConnection.  So  if (dbType == DatabaseType.MSSQL)      is false and you get the else which is return null.

Bang, null pointer

Tuesday, March 23, 2004

Thanks heaps, its all fixed now! Your a legend mate.

Paul Stovell
Tuesday, March 23, 2004

*  Recent Topics

*  Fog Creek Home