Office中国论坛/Access中国论坛
标题:
测试 Microsoft SQL Server 2008 R2 Express 连接数
[打印本页]
作者:
zhuyiwen
时间:
2012-8-10 13:44
标题:
测试 Microsoft SQL Server 2008 R2 Express 连接数
今日测试 Microsoft SQL Server 2008 R2 Express (下载链接:
http://www.microsoft.com/zh-cn/download/details.aspx?id=23650
) 连接数:
测试代码:
Option Explicit
Const CONNSTR = "Provider=SQLOLEDB;Data Source=192.168.33.2,1435;User ID=sa;Password=******;Initial Catalog=master"
Const POOL = ";Pooling=true;Max Pool Size=40000;Min Pool Size=0;"
Dim i As Long
Dim col As New Collection
Private Sub Command1_Click()
On Error GoTo err_handle
Dim conn As ADODB.Connection
Dim cs As String
cs = Me.Text2
If Me.Check1.Value = 1 Then
cs = cs & POOL
End If
i = 0
Do While True
DoEvents
Set conn = New ADODB.Connection
conn.Open cs
col.Add conn
i = i + 1
Me.Text1 = i
Loop
Exit Sub
err_handle:
MsgBox "Down!" & vbNewLine & vbNewLine & Err.Number & " -- " & Err.Description
Err.Clear
End Sub
Private Sub Command2_Click()
Dim c As ADODB.Connection
For Each c In col
c.Close
Set c = Nothing
Next
Dim i As Long
Dim t As Long
t = col.Count
For i = t To 1 Step -1
col.Remove i
Next
End Sub
Private Sub Form_Load()
Me.Text2 = CONNSTR
End Sub
复制代码
[attach]50130[/attach]
远程连接数:62个
[attach]50129[/attach]
本地TCP/IP连接数:3960个
[attach]50128[/attach]
本地Share Memory 连接数:14771个(受内存限制)
作者:
zhuyiwen
时间:
2012-8-10 13:50
由此可见,如果一个企业少于60个连接SQL Server 2008 R2 Express用户的话,以SQL Server 2008 R2 Express支持 10G 数据库容量的能力,完全能够胜任应用(1 个 ADP 应用程序 1 个 ADO SQL 连接)。
从目前软件版权日趋重要的情况看来,最重要的是
它是免费的
。
作者:
风中漫步
时间:
2012-8-12 10:38
免费的东西越来越少了
作者:
李力军2
时间:
2013-8-22 23:36
{:soso_e179:}
作者:
jlf001
时间:
2016-4-10 15:41
学习
作者:
jlf001
时间:
2016-4-10 15:46
学习
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/)
Powered by Discuz! X3.3