4
votes
4answers
404 views

Am I closing this SQL connection in a C# function appropriately?

In an attempt to close my question on connections remaining open and exceeding the maximum pool, I'm trying tor rewrite the function that is used to connect to our database. The function exists ...
1
vote
4answers
157 views

Why isn't “CreateCommand()” part of C# (or at least .NET)?

After successfully going through the initial stages of learning C# in tandem with SQL Server, I discovered that the various tutorials that I used simply got it wrong by declaring a global ...
1
vote
3answers
72 views

Do any of these Entity Framework recommendations conflict with each other?

I'm a little confused on how to approach EF development when looking at all these articles together, since I can't find a sample that addresses all of these practices in one place: The following ...
0
votes
1answer
793 views

using a SqlConnection in C++ / .NET

When I go to the MSDN page for the SqlConnection class, it only shows examples in C# and VB. Why doesn't MSDN show a C++ example? I am particularly interested in how a C++ example would get around ...