Does changing the Recordset Type property for a form in an Access ADP
have any effect on possible record locking?
I have a continuous form that is bound to a table but I don't want it
editable, so if I make it Snapshot instead of updateable Snapshot will
this in any way improve performance and reduce/remove record locking?
Thanks,
lq 9 4736
On 16 Nov 2005 17:21:13 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote:
Yes.
You'd always want to choose the simplest recordset possible for your
form. Same when opening a recordset in code. A sloppy recordset breeds
bugs.
-Tom. Does changing the Recordset Type property for a form in an Access ADP have any effect on possible record locking?
I have a continuous form that is bound to a table but I don't want it editable, so if I make it Snapshot instead of updateable Snapshot will this in any way improve performance and reduce/remove record locking?
Thanks, lq
Tom,
Thanks for the info.
Generally, I open recordsets like this:
Dim RS As ADODB.Recordset , mySP As String, myID as Long
myID = Me.SomeUniqueID
mySP = "dbo.sprocN ame"
Set RS = CurrentProject. Connection.Exec ute("EXEC " & mySP & " " & myID)
If Not RS.BOF And Not RS.EOF Then
'Extract some RS("ColumnName" ) value or do something else really
valuable to mankind
End If
Is there a way to specify a non-dynamic recordset doing it this way?
lq
On 16 Nov 2005 21:47:12 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote: Tom, Thanks for the info.
Generally, I open recordsets like this:
Dim RS As ADODB.Recordset , mySP As String, myID as Long myID = Me.SomeUniqueID mySP = "dbo.sprocN ame" Set RS = CurrentProject. Connection.Exec ute("EXEC " & mySP & " " & myID) If Not RS.BOF And Not RS.EOF Then 'Extract some RS("ColumnName" ) value or do something else really valuable to mankind End If
Is there a way to specify a non-dynamic recordset doing it this way?
lq
My understanding was that doing it that way would always give you a snapshot.
Is there a better way I should be doing this?
On 16 Nov 2005 21:57:38 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote: Is there a better way I should be doing this?
That depends - when you want a snapshot, I think that's a perfectly good way
to do it. If you need to specify the recordset behavior, create a new
recordset object, initialize its properties the way you want them, then use
the Open method of the recordset to open it.
On 16 Nov 2005 21:57:38 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote:
When using ADO I always use a Command object, set my parameters and
use rs.Open to get the recordset. The Open method allows you to
specify in detail what kind of recordset you need. Of course I have
this code nicely encapsulated in a class, so I don't have to write the
repetitive parts over and over again.
-Tom. Is there a better way I should be doing this?
But if I only want a snapshot, will doing it this way ... Set RS =
CurrentProject. Connection.Exec ute("EXEC " & mySP & " " & myID)
... accomplish that without issue?
But if I only want a snapshot, will doing it this way ... Set RS =
CurrentProject. Connection.Exec ute("EXEC " & mySP & " " & myID)
... accomplish that without issue?
On 17 Nov 2005 06:38:04 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote:
Technically there is no snapshot in ADO. Perhaps you could inspect
rs.CursorType.
-Tom. But if I only want a snapshot, will doing it this way ... Set RS = CurrentProject .Connection.Exe cute("EXEC " & mySP & " " & myID) ... accomplish that without issue? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tom |
last post by:
I want to open a recordset object on an .asp page. When I open the
recordset I would like to use a stored procedure that expects a parameter to
be passed for the stored procedure. I will then use the recordset to loop
thru the recordset, update values from the recordset and then update the
database by passing parmeters to another stored procedure. I would like to
use the recordset object but can it be used to pass a parameter to a stored...
|
by: elcc1958 |
last post by:
I need to support a VB6 application that will be receiving
disconnected ADODB.Recordset from out DotNet solution. Our dotnet
solution deals with System.Data.DataTable. I need to populate a
disconnected ADODB.Recordset from System.Data.DataTable data. Below
is the source code I am implementing to test the process. I do not
get any error, that I can see. The problem I have is that at the end,
the recordset seems to be empty. Any...
|
by: Dom Boyce |
last post by:
Hi
First up, I am using MS Access 2002.
I have a database which records analyst rating changes for a list of
companies on a daily basis. Unfortunately, the database has been set
up (by my predecessor, I hasten to add) so that each day it creates a
copy of the record for each company, changes the date to today's date,
and prompts the user for any changes of ratings on that day. The
resulting data table grows by approx 600 records per...
|
by: alex_peri |
last post by:
Hello All,
I am having problems with sorting a recordset by fields in Access. I
have a table with three columns called ID, SNo and Time and would like
to sort the records by Time. I would like to sort them in the actual
database and not just Order them with SQL. I have included the code I
wrote below. Please bear in mind that I am very new to Access and SQL.
I used the Helpfile of Access for this code but i can't make it work
for me....
|
by: Thaddeus |
last post by:
//Author:
//Thaddeus Jacobs, MCP
//Kinematic Automation, Inc.
//mailto:tjacobs@kinematic.com
//
//Description:
//convert ADO .NET dataset to ADO 2.5 2.6 2.7 recordset and v/v
//DataSet to recordset conversion.
//Get RecordSet from Dataset
//ds2rs DataSet2RecordSet
| |
by: Mac |
last post by:
Hi all
I have a asp.net application which calls a web service
via a wdsl file which retrieves an XML String.
The XML String is from a adodb recordset saved as via a
stream.
Dim oRS as New ADODB.Recordset
Dim oStream as New ADODB.Stream
|
by: barret bonden |
last post by:
(closest newsgroup I could find)
Error Type:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the
provider, or of the selected locktype.
/asp_data3_add.asp, line 30
<%
'Dimension variables
Dim adoCon 'Holds the Database Connection Object
|
by: jason.teen |
last post by:
Hi,
I dont seem to be able to get this Filter right on my RecordSet for
some reason.
I have this code:
Dim rs As Recordset
Set rs = CurrentDb().OpenRecordset("SELECT DISTINCT Product,
|
by: ADezii |
last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be:
Can I add New Records to the Recordset?
Does the Recordset support Bookmarks?
Can we use the Find and/or Seek Methods with this Recordset?
Does the Recordset support the use of Indexes?
Will the Absoluteposition property be able to be used on this Recordset?
etc....
|
by: wallconor |
last post by:
Hi,
I am having a problem using Dreamweaver CS3 standard recordset paging behavior. It doesn’t seem to work when I pass parameter values from a FORM on my search page, to the recordset on my results page.
- Recordset Paging works if no parameters are used in the recordset sql code (ie. simple sql code):
SELECT *
FROM db_name
WHERE (db_field1 LIKE ‘%text1%’ OR db_field2 LIKE ‘%text2%’)
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |