Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2004, 05:09 AM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unknown reason

Hi!!

Can anybody out there help me out!!. I am using ADO 2.7 with SQL 2000.

Provider=SQLOLEDB

I had a recordset with following properties.

Cursor Location= adUseServer
Cursor Type= adOpenDynamic
Lock Type=adLockPessimistic

This properties are set to a recordset object.

But for some unknown reason the moment Recordset.Open is called the properties get changed to

Cursor Location= adUseServer
Cursor Type= adOpenForwardOnly
Lock Type=adLockReadOnly

where as in the MSDN online it had mentioned that

Cursor Location= adUseServer
Cursor Type= adOpenDynamic
Lock Type=adLockPessimistic

will work.

I have gone through the microsoft site and other references but none have mentioned any comments regarding this change in behaviour of properties.

Thanks in Adv.

Arnab





Similar Threads
Thread Thread Starter Forum Replies Last Post
Real Reason of C# being popular than VB SoftMind BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 December 28th, 2006 01:48 AM
"what is the reason" heerajee Oracle 1 March 24th, 2006 05:52 AM
One Good Reason why you should quit smoking roseman VBScript 2 December 28th, 2005 12:39 PM
What's the reason for this error? batli25 .NET Framework 1.x 2 December 5th, 2005 08:47 AM
Code Execution Stops for No Known Reason tcarnahan Access VBA 6 October 28th, 2003 04:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.