Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 16th, 2005, 04:52 AM
Authorized User
 
Join Date: Jan 2005
Location: Chennai, , India.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JelfMaria
Default How to access a recordset without connection?

Hi
I had a interview qn like this
How to access a recordset without connection in vb6?
what is that technique called?

Can anyone help me?


Jelfy


Thanks
Jelfy
__________________
Thanks
Jelfy
Reply With Quote
  #2 (permalink)  
Old May 16th, 2005, 02:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

.. disconnected recordset ?

Marco
Reply With Quote
  #3 (permalink)  
Old May 16th, 2005, 02:09 PM
Authorized User
 
Join Date: Jun 2003
Location: St. Louis, Mo., USA.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In short you fill a recordset with data, then break the connection (disconnect it). So you can work on the data with your local program. Once you are done with the data you connect to the database and send it your changes.

Hope this helps.

Reply With Quote
  #4 (permalink)  
Old May 17th, 2005, 12:12 AM
Authorized User
 
Join Date: Jan 2005
Location: Chennai, , India.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JelfMaria
Default

There is some name to that technique.whats it?

I think what u said only ADO does ,is it so?
In ado whether aftergetting recordeset is it automatically disconnecting?



Thanks
Jelfy
Reply With Quote
  #5 (permalink)  
Old May 18th, 2005, 01:28 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

There is a way and it is called Fabricated Recordset Object.

Here you can open recordset without connection, add fields,
add data, save them and reuse it. even you can bind the data
to flexgrids.



With Regards,
Raghavendra Mudugal
Reply With Quote
  #6 (permalink)  
Old May 19th, 2005, 01:55 AM
Authorized User
 
Join Date: Jan 2005
Location: Chennai, , India.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JelfMaria
Default

Thanks,You r right.
But how can i use that feature,can u explain?



Thanks
Jelfy
Reply With Quote
  #7 (permalink)  
Old May 27th, 2005, 03:12 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay, here the sample of this FRO. Check this out. Hope it will helps.

http://www.geocities.com/raghavendra...teRecrdset.zip


With Regards,
Raghavendra Mudugal
Reply With Quote
  #8 (permalink)  
Old May 30th, 2005, 05:00 AM
Authorized User
 
Join Date: Jan 2005
Location: Chennai, , India.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JelfMaria
Default

How to open the dat file to view its contents (other than the program used)?

Here in
rst.Open App.Path & "\data1.dat", "Provider=MSPersist;", adOpenForwardOnly, adLockBatchOptimistic, adCmdFile

y u used batchoptimistic and,adcmdFile?
is it compulsory to give that ?


Thanks
Jelfy
Reply With Quote
  #9 (permalink)  
Old May 30th, 2005, 05:07 AM
Authorized User
 
Join Date: Jan 2005
Location: Chennai, , India.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JelfMaria
Default

adPersistADTG for what this is used?
without adcmdfile also its working then y its given?
Pls answer my qns?

Thanks
Jelfy
Reply With Quote
  #10 (permalink)  
Old June 30th, 2005, 12:01 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello

adOpenForwardOnly, adLockBatchOptimistic, adCmdFile

these are the terms to open a recordset,

adOpenForwardOnly:
Opens a forward-only–type cursor (it is used for the faster
process)

adLockBatchOptimistic:
required for batch update mode as opposed to immediate update mode. (in case to edit the data and save them back)

adCmdFile:
Its aoptional value , that to know the recordset its opening a
physical hard file from the harddisk and it is not a database.

adPersistADTG:
It is the way that recordset will save the data and its is by
default. ot you can use adPersistXML (it is not shown, but change the adPersistADTG to adPersistXML) and see the data
in the XML format.

And the data stored in the adPersistADTG format, as of i know
you cannot open the file in another application to viwe the
content. you have to look inside through the recordset itsself.

And for adPersistXML (if you use this) it can be viewed through
opening that file in the Internet explorer, and by another
application which known how handle the XML data structure.
(say for example C++ DSO which can used in the HTML file to
view the content of that XML file.)

Hope this helps.

With Regards,
Raghavendra Mudugal
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordset Pagination (ASP Access) darinsee Classic ASP Databases 9 September 24th, 2004 05:30 PM
ADO Recordset to Access MDB sasidhar79 SQL Server ASP 1 June 23rd, 2004 02:15 AM
ADODB connection for Recordset dpatole Beginning VB 6 1 October 14th, 2003 04:24 PM
Recordset date insert in access kev_79 Access ASP 3 June 5th, 2003 12:49 PM



All times are GMT -4. The time now is 10:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.