Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deadlocks in SQL Server
Message
 
 
To
07/07/2009 10:53:00
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Microsoft SQL Server
Category:
Database management
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01410522
Message ID:
01410563
Views:
39
>I'm just using a normal SPT,
>something like :-
>lnquery = sqlexec(posqlconn,[ select prodcode from tuserprod where in_use='Y' and usergroup = ?pusergroup],'c_prodlist')
>I query it into a cursor. The cursor is used to do a grid search.
>
>Yau

Try

lnquery = sqlexec(posqlconn,[ select prodcode from tuserprod (WITH NOLOCK) where in_use='Y' and usergroup = ?pusergroup],'c_prodlist')

Also I didn't re-read this thread #1381607 but may be it would be useful.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform