Microsoft
Software
Hardware
Network
Question : Problems with sp_executesql
If I am executing a query in MS Query Analyzer it runs in a few seconds. But when I want an ADO recordset of that query, it gives a timeout after 60 seconds.
I remarked that if I execute the query myself in MS Query it looks like this:
SELECT * FROM Customers
But when I intercept the query in Profiler, it looks like this:
exec sp_executesql N'(SELECT * FROM Customers (nolock))' And then it times out
When I add ‘exec sp_executesql’ in front of my query in MS Query Analyzer, it also gives timeouts.
Who can I avoid that MS SQL Server adds this command in front of my query?
Answer : Problems with sp_executesql
I see, I misunderstood your statement.
what is your connection string, aka how exactly do you run that query in your vb code, please?
Random Solutions
reverse ajax
Static route to website in Squid
install lexmark c912 on windows sbs 2003 box
How to commit changes of a Typed Dataset to database at once
Pervasive SQL 9.5 - odbc SELECT Query - DATE = '0000-00-00'
Need a 40" or larger touchscreen computer
Maxtor OneTouch 4 Family drive is no longer working
How to highlight row with color in document library in sharepoint 2010?
store comma separated multiple numbers in a mysql database field database and query them efficiently
Deploy Printer Drivers to WinXP Computers