add Get_ServerTime()
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@ obj
|
|||||||
/Setup1/Release
|
/Setup1/Release
|
||||||
/Setup1/Debug
|
/Setup1/Debug
|
||||||
/Dotfuscated
|
/Dotfuscated
|
||||||
|
UpgradeLog.htm
|
||||||
|
|||||||
@@ -135,6 +135,29 @@
|
|||||||
Return Retval
|
Return Retval
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Public Function Get_ServerTime() As String
|
||||||
|
Dim Cs As String = ReadCString()
|
||||||
|
|
||||||
|
Dim Cn As New SqlClient.SqlConnection(Cs)
|
||||||
|
Dim Cmd As New SqlClient.SqlCommand("SELECT convert(varchar(19), CURRENT_TIMESTAMP,120);", Cn)
|
||||||
|
|
||||||
|
|
||||||
|
Dim retval As String = ""
|
||||||
|
|
||||||
|
If Cn.State <> ConnectionState.Open Then Cn.Open()
|
||||||
|
retval = Cmd.ExecuteScalar().ToString()
|
||||||
|
|
||||||
|
Cmd.Dispose()
|
||||||
|
Cn.Close()
|
||||||
|
Return Retval
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
''' 폴더내의 연결문자열 정보를 가지고 연결한다
|
''' 폴더내의 연결문자열 정보를 가지고 연결한다
|
||||||
''' </summary>
|
''' </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user