Dim oConn, oRS, oRS2, oRS3, oCmd
Set oConn = Server.CreateObject( “ADODB.Connection” )
Set oRS = Server.CreateObject( “ADODB.RecordSet” )
Set oRS2 = Server.CreateObject( “ADODB.RecordSet” )
Set oRS3 = Server.CreateObject( “ADODB.RecordSet” )
Set oRs4 = Server.CreateObject( “ADODB.RecordSet” )
Set oCmd = Server.CreateObject( “ADODB.Command” )
DBName=”tzjtjl”
sql=”Provider=SQLOLEDB.1;Password=123456;Persist Security Info=True;User ID=sa;Initial Catalog=tzjtjl;Data Source=127.0.0.1;”
‘sql=”Provider=SQLOLEDB.1;Password=tzjtj123#@!;User ID=sa;Persist Security Info=True;Initial Catalog=tzjtj;Data Source=192.168.168.10;”
oConn.open (sql)
‘oConn.open Application(“dsn”)
Function WriteToSysEvent( pSource, pSubKind, pEventID, pUserNo, pComputer )
oConn.Execute( “EXEC sp_InsSysEvents ‘” & pSource & “‘, ‘” & pSubKind & “‘, ” & pEventID & “, ‘” & pUserNo & “‘, ‘” & pComputer & “‘ ” )
End Function
Function VerifyUser(CatelogNo, ExecAction)
sql = “set nocount on select (case when isnull(rights,0) & ” & ExecAction & “=” & ExecAction & ” then 1 else 0 end) from permissions where username='”&session(“username”)&”‘ and catelogno='”&catelogno&”‘ ”
on error resume next
oRS2.open sql, oconn, 3, 3, 1
If oRS2(0) = 1 Then
VerifyUser = TRUE
Else
VerifyUser = False
End If
oRS2.Close
End Function
%>
Read More:
- Microsoft OLE DB provider for ODBC drivers error ‘80004005’ error resolution
- [Solved] emulator: glteximage2d: got err pre 🙁 0x502 internal 0x1908 format 0x1908 type 0x1401
- BarTender operation encountered the problem of “OLE DB encountered error 0x80004005”
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- Visual SVN server provider failed to perform the attempted operation 0x80041024 after win7 upgraded win10
- CLP: error: getaddrinfo enotfound http://x.x.x.x/
- install sql server 2016 Error code 0x84B20001
- module ‘win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9‘ has no attribute ‘CLSIDToClassMa
- SQL 2005 remote connection error (provider: SQL network interface, error: 28 – the server does not support the requested protocol
- Solution to the error code of 0x80040154 in COM / ole call
- [-] handler failed to bind to x.x.x.x: Port troubleshooting
- A problem occurred configuring project ‘:x x x‘. > java.lang.NullPointerException (no error message)
- Apache Groovy——java.lang.NoSuchMethodError: x.x.x: method <init>()V not found
- 1067 – Invalid default value for ‘sex‘1366 – Incorrect string value: ‘\xE6\x8A\x80\xE6\x9C\xAF…‘ f
- Could not write JSON: write javaBean error, fastjson version x.x.x, class
- Microsoft Remote Desktop (Android version) connection appears the solution of the error of 0x204
- 【fiddler】Error:ConnectionRefused(0x274d)
- Bug:Install Microsoft Visual C++ 2008 Redistributable (x86) Failed Installation aborted, Result=1603
- Callee RC: RegDB_ E_ CLASSNOTREG (0x80040154)
- Adobe Acrobat installation error experience of e1935 0x80070bc9