Public Function gf_GetServerTime() As Date '获得SQL SERVER服务器时间
On Error GoTo Err_Hanlder
Dim rst As Object
Dim cn As Object
Dim strServer As String
Dim strDatabase As String
Dim strUser As String
Dim strPassword As String
Dim strMachine As String
'请修改这个内容为你的sql server服务器的相关数据