1

In a VB6 program:

Dim conn As Object
Set conn = CreateObject("ADODB.Connection") 
conn.Open "DRIVER={SQL Server}; Server=(local)\aaa; Database=bbb; UID=ccc; PWD=ddd"

In an ASP program:

Sub ProcessSqlServer(conn)
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.Open "DRIVER={SQL Server}; Server=(local)\aaa; Database=bbb; UID=ccc; PWD=ddd"

The VB6 program works, the ASP program does not (see error below). I tried checking the event log for errors, but found nothing. Or more precisely, I did find local an activation permission error, but this was fixed once I added local launch/activation permission for Network Service to the Machine Debug Manager via the component services tool.

Error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005' 
[Microsoft][ODBC SQL Server Driver]Timeout expired
4

1 に答える 1

0

問題は、NETWORK SERVICEに多くの権限が必要だったことですC:\Users\USERNAME\AppData\Local\Temp

于 2010-04-27T14:26:46.033 に答える