jvrzhao
05-28-2008, 06:03 AM
Good day
My company recently upgraded from sql server 2000 to 2005, WG edition. However after the upgrade my adp app started running very slow, for example when scrolling between reports. A strange thing that I noticed is that when I connect the same app to sql express it doesnt have this problem. Also when I run the query for the report directly on the sql server it returns the results at lightning speed.
From what Ive read thus far Im suppose to connect to the sql native client on 2005. Ive written code to close the current connection, 'Application.CurrentProject.CloseConnection', and then re-open the connection with the following connection string:
"Provider=SQLNCLI.1;Data Source=ourServer;Integrated Security=SSPI;Initial Catalog=dbname"
but then it returns the following err message,
2147467259; Method 'OpenConnection' of object _CurrentProject failed.
Why is it giving me this message? Is there another way to connect to the native client? Or should I be doing something else to fix this problem...
Any help is appreciated.
My company recently upgraded from sql server 2000 to 2005, WG edition. However after the upgrade my adp app started running very slow, for example when scrolling between reports. A strange thing that I noticed is that when I connect the same app to sql express it doesnt have this problem. Also when I run the query for the report directly on the sql server it returns the results at lightning speed.
From what Ive read thus far Im suppose to connect to the sql native client on 2005. Ive written code to close the current connection, 'Application.CurrentProject.CloseConnection', and then re-open the connection with the following connection string:
"Provider=SQLNCLI.1;Data Source=ourServer;Integrated Security=SSPI;Initial Catalog=dbname"
but then it returns the following err message,
2147467259; Method 'OpenConnection' of object _CurrentProject failed.
Why is it giving me this message? Is there another way to connect to the native client? Or should I be doing something else to fix this problem...
Any help is appreciated.