ADO,SQL,DSN,DAO,MDAC,MUST,ever,needed,view,da
Quick Search for:  in language:    
ADO,SQL,DSN,DAO,MDAC,MUST,ever,needed,view,da
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
RentACoder Stats

 Code:  lines
 Jobs: 0 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for RentACoder.
Password generator which makes getting password without knowing it even with code hard.
By jokuvaan on 7/3


Wrapping Scrolling Text
By Paranoid_Androi d on 7/2


Create A Dummy File
By AML on 7/2


Click here to see a screenshot of this code!Captionbar manipulation!
By Peter Hebels on 7/2

(Screen Shot)

A Game Of War
By Co0nest on 7/2


Click here to see a screenshot of this code!KeyGen Example
By Bengie|NET on 7/2

(Screen Shot)

Click here to see a screenshot of this code!OpenBrowser v1.9
By Orlando Jerez on 7/2

(Screen Shot)

SendMessageBySt ring() Example
By Jaime Muscatelli on 7/2


Click here to see a screenshot of this code!FirstSunday
By Jan Paul Penning on 7/2

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

ADO Database Viewer/Editor

Print
Email
 
winzip icon
Submitted on: 3/14/2000
By: Paul Mather  
Level: Intermediate
User Rating: By 71 Users
Compatibility:

Users have accessed this code 35143 times.
 

(About the author)
 
     Have you ever needed to view a database on a computer without MS Access? Here's an alternative. It uses ADO 2.1 to open, view & edit MS Access, SQL server, DSN and Oracle databases. There are also a few features to let you add, rename and delete tables as well as purge based on a Date/Time field. Clearly not a replacement for MS Access, but you can distribute it to help troubleshoot. Automatically registers itself as the default database viewer for .mdb files on systems without a default already set. Otherwise, it becomes a second option when right-clicking. Its Biggest advantage is its all ADO. No DAO at all. Now you're able to modify older versions of Access databases when Access itself requires a conversion!! I recommend distributing MDAC 2.5 even if you have a 2.1 application. Microsoft seems to have fixed some of the install problems with the MDAC 2.1. Please Note that you MUST HAVE the Oracle client installed on your PC to use the Oracle connection!!http://www.microsoft.com/data/download.htm ** Updated 3/21/2000 **Added Password support for Access databases.Please vote!

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for langauges that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 22 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
3/14/2000 12:32:56 PM:rjsoft
Simple and direct. I like it.  Good job!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/15/2000 12:39:48 AM:Vinda
Excellent piece of code specially 
useful in case the client/customer does 
not have Access or SQL client installed 
and the Dev wants to view the database 
during debugging. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/15/2000 2:53:59 PM:rweight
This is what I've been thinking of 
doing myself. Great job!  Is there 
anyway to edit a particular table and 
change the default property of a field 
so any new records created will always 
have at least the default value?  I can 
do this with Access, but many of my 
sites don't have Access and I need to 
change that field.  
Thanks!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/16/2000 9:54:05 PM:VeeJay
Thanx. I needed this as I don't have 
Access and I need to check out a 
certain *.mdb. You're a star!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/20/2000 3:37:56 PM:Chris
I really like the program and I can see 
the utility of it.  One option I would 
add would be the ability to specifiy a 
password for the Access DB that is 
being opened because the program can't 
handle this scenario 
currently.
Thanks for the code and 
the program.  It's really well-done.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/23/2000 5:41:29 PM:Brett
I've not looked at the code yet but I 
presume you are using ADOX to edit the 
database. I have had some problems 
setting the default value of a new 
field when allow nulls is set to true 
and also setting the allow null in an 
index . . . any ideas ??
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/24/2000 1:36:36 AM:Andrew
The program is nice, but there are a 
few
error conditions that you should 
have it
trapped, or else the program 
will bombs out.
Keep it up.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/13/2000 10:34:13 PM:Misha
Can't download invalid Archieve
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/19/2000 6:45:54 AM:conrad
very cool,what will happen if i stick 1 
200 000 records in an access table with 
9 rows, and how will it affect the 
speed at which i do queries?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/19/2000 8:40:55 AM:Paul Mather
You will see performance hits on tables 
with huge numbers of rows.  However, it 
is much faster to use a data-bound grid 
to view the data then it would be to 
use a recordset and then run through 
each record adding it into a grid.  To 
limit the query time, use the SQL 
statement field at the bottom to limit 
your search.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/19/2000 8:49:20 AM:Nathan
Very slick. Very very slick. Would be 
nice if you could enumerate the Query 
collection as well. I have modified it 
to do so. I only needed this because 
some imported tables from 
Clarion(Topspeed) databases have funky 
non SQL compatible naming conventions. 
BUT, very slick code.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/24/2000 11:50:51 PM:Monk
God bless u
Keep it up.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/22/2000 6:54:33 PM:Yuntan@mail.com
I am not able to run the program from 
VB6..
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/23/2000 11:52:05 AM:help
it stops at commandline = 
command..
traced to registry calls.. 
couldn't find manually..
*sigh* 
anyone out there?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/24/2000 1:45:24 AM:Will French
Very, very nice job.  Tremendous 
resource for code examples bundled in a 
program that is, in itself, very useful.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/26/2000 11:26:25 AM:Dave
Great program! You did me a big favor.  
Keep up the good work!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/23/2000 1:37:33 PM:Andrew Juergens
This is great.  I create database 
applications, and I don't need any of 
the stuff access has to offer.  All i 
need is a thing to crate tables.  This 
is great!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/22/2000 6:06:54 PM:Tom Williams
This looks as though it could be a 
great educational tool for me with 
regards to Oracle access via VB.  I was 
wondering if you could give specifics 
regarding the Select Netork Database 
Type of "Oracel (Needs Client)".  I 
have the oracle DBA software installed 
for version 8 and I don't seem to be 
able to connect without setting up an 
ODBC connection.  Is this what you are 
referring to or have you found a way to 
bypass the ODBC?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/30/2000 4:40:16 PM:Anil Dantes
Good amount of ADO work done very 
well!!! Excellent...keep up the good 
work.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2000 5:00:12 AM:dinh
This one is exactly what I need
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/17/2000 4:19:49 PM:JoeKramer
I am having problems trying to access a 
Oracle database.  I can seem to get to 
the DSN of it.  But how would I open a 
group???  I don't get errors.  I just 
don't seem to be able to view any 
data.
- Joe
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/10/2001 2:47:36 AM:elliot
I find this the work of a vb God. It is 
exactly what i need. For a while i 
thought the code for a similer program 
of access would be 10 times longer. But 
everything in it seems logical and 
makes sense. Excellent Job.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/10/2001 10:54:11 AM:Paul Mather
Hahaha, thank you.  There are still 
some bugs in the program especially 
revolving arount the password protected 
Access databases.  It's not perfect, 
but it sure is handy when your end user 
doesn't have Access and you need to 
troubleshoot your database.  Enjoy!  
Thanks again. PLEASE VOTE!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/15/2001 10:21:38 PM:Synergy Designs
Amazing.  This is great.  If you added 
a create new database option, this 
would be even better than it already 
is.  Exellent code.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/16/2001 3:02:08 PM:e002378
Can you help me with the command err. I 
really want to get this code up and 
running. It loads 8mb in 7 sec's. 
Really great work...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/13/2001 10:15:51 AM:Chris Milne
Thanks. This is great!
I can only 
access my oracle database with the odbc 
style, the oracle specific ole thingy 
does not seem to work, not just with 
this program, always. OO4O works, any 
feelings about OO4O?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/18/2001 5:40:36 AM:RADU
Excellent example ! Learned alot from 
it ! Thanks !
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/7/2001 4:11:51 AM:ARNO
Could you explain how to access an 
Oracle Database.
It seems many people 
have the same pb
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/2/2002 4:58:38 AM:RegX
Any odbc compliant database can be 
accessed pretty much the same way 
through VB and rdo or ado. I do not use 
Oracle, but would be happy to post 
example connecting to Mysql server on 
unix. Any odbc compliant DB should be 
the same and is why odbc is exist in 
the first place.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/21/2002 2:18:05 PM:Ramu
Excellent piece of work, i never found 
anything else so useful as this bit, 
keep up the good work
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/30/2002 8:15:31 PM:Jamie
This is a great tool especially since I 
do not have access. But how can I 
create primarykeys using this? I need 
autoincremented 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/16/2002 9:09:11 AM:S. Vasardanis
This is an excellent tool that every 
serious programmer should have. I have 
spoted though a very small omission. If 
you try to compact a password-protected 
database you get an error that the 
password is invalid. You can solve that 
by adding to the startingType string 
the following : & "Jet OLEDB:Database 
Password=#####" where ##### is your 
password. Hope that helps. Keep up the 
good work! 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | RentACoder Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.