ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
02-07-2006 11:05 AM
Hello, David,
Since you were able to answer so many DBT questions really well, I hope you can help with mine.
I have this file in notepad and I want to insert the data into MS Access db. DO you know how to do that ?
Thanks
.
(Anyone else is welcome to answer.)
Here's the attachment:
02-07-2006 11:24 AM
02-07-2006 11:48 AM
02-07-2006 12:34 PM
Try looking at some of the articles here.
http://zone.ni.com/devzone/devzone.nsf/webcategories/4161F118BF99CCE686256AB7006A68EB
It isn't a trivial task unfortunately. NI sells a database connectivity tool.
02-07-2006 12:35 PM
Yes, I have the DBT. Do you have any examples using it.
Thanks.
02-07-2006 12:49 PM - edited 02-07-2006 12:49 PM
I didn't use the Database Connectivity Toolkit.
I basically took some of the example VIs that were on the NI website at the time, read the Help files that came with Microsoft Office which were geared towards Visual Basic, and read chapters in the book ADO for Dummies. From there just trial and error.
You need to have some fundamental understanding of SQL. Nothing indepth though.
Unfortunately, I am not sure where the VIs I wrote are now. 😞
you might want to read this too http://digital.ni.com/public.nsf/websearch/F763AA1D7CD3C83D862568E8007C51CD?OpenDocument
Message Edited by nyc on 02-07-2006 01:52 PM
02-08-2006 10:28 AM
OK just found you didn't spot you until you gave me a nudge.
As I said before I am pretty rusty with the DBT but if I was doing this I would
1. Read in the text file using the file functions.
2. The string can then be converted into a spreadsheet array.
3. You will then use a for loop to autoindex out the rows, convert them to numberics and insert into the database as you go.
In the meantime show me what you have done so far and mention the problems that you have been having.
And I will try and catch up with you tomorrow if I get time.
David
02-08-2006 12:01 PM - edited 02-08-2006 12:01 PM
Message Edited by roboticstudent on 02-08-2006 12:02 PM
Message Edited by roboticstudent on 02-08-2006 12:03 PM
02-09-2006 01:23 AM