Here is the code:
Private Sub cmdProcessePacketGenerationTables_Click()
Dim x As Variant
If strYYYYMMDD_end = "" Then
x = MsgBox("Please select or reselect the Month dropdown list", vbCritical, "Select Month")
Exit Sub
End If
DoCmd.Hourglass True
strCnxn = set_connection
Set cnxn = New ADODB.Connection
cnxn.ConnectionTimeout = 0
cnxn.CommandTimeout = 0
cnxn.Open strCnxn
strSQL_Execute = "dbo.Actg_Financial_Packet_Generator_Process " & strYYYYMMDD_end
'strSQL_Execute = "dbo.Actg_Financial_Packet_Generator_Process "
cnxn.Execute strSQL_Execute, , adExecuteNoRecords
DoCmd.Hourglass False
DoCmd.OpenForm "Unallocated_Reg_Dept"
End Sub
This is an Access 2007 database. I am running it as a single user front end with linked sql server 2005 tables. The problem is that when I execute dbo.Actg_Financial_Packet_Generator_Process through the Access 2007 front end it takes about 3-4 minutes to complete. Executing the same stored procedure on SQL Server 2005 the stored procedure completes in 1:13. Why is this happening? We recently upgraded to 2007 from 2003 and this is one of the many issues that have surfaced since the upgrade. Any help is greatly appreciated. Thanks.
Dave
Private Sub cmdProcessePacketGenerationTables_Click()
Dim x As Variant
If strYYYYMMDD_end = "" Then
x = MsgBox("Please select or reselect the Month dropdown list", vbCritical, "Select Month")
Exit Sub
End If
DoCmd.Hourglass True
strCnxn = set_connection
Set cnxn = New ADODB.Connection
cnxn.ConnectionTimeout = 0
cnxn.CommandTimeout = 0
cnxn.Open strCnxn
strSQL_Execute = "dbo.Actg_Financial_Packet_Generator_Process " & strYYYYMMDD_end
'strSQL_Execute = "dbo.Actg_Financial_Packet_Generator_Process "
cnxn.Execute strSQL_Execute, , adExecuteNoRecords
DoCmd.Hourglass False
DoCmd.OpenForm "Unallocated_Reg_Dept"
End Sub
This is an Access 2007 database. I am running it as a single user front end with linked sql server 2005 tables. The problem is that when I execute dbo.Actg_Financial_Packet_Generator_Process through the Access 2007 front end it takes about 3-4 minutes to complete. Executing the same stored procedure on SQL Server 2005 the stored procedure completes in 1:13. Why is this happening? We recently upgraded to 2007 from 2003 and this is one of the many issues that have surfaced since the upgrade. Any help is greatly appreciated. Thanks.
Dave