Connection Pooling in .NET/SQL Server?

前端 未结 5 1799
有刺的猬
有刺的猬 2020-12-17 18:25

Is it necessary or advantageous to write custom connection pooling code when developing applications in .NET with an SQL Server database? I know that ADO.NET gives you the

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-17 18:58

    I'm no real expert on this matter, but I know ADO.NET has its own connection pooling system, and as long as I've been using it it's been faultless.

    My reaction would be that there's no point in reinventing the wheel... Just make sure you close your connections when you're finished with them and everything will be fine!

    I hope someone else can give you some more firm anwers!

提交回复
热议问题