Bulk data insert in MS Access - sql

I have an .mdb file, which is used as a data storage by one particular application. The application itself does not have tools to insert large amounts of data, and I need to insert around 300-400 generated records.
How can this be accomplished without using VB? (since I know nothing about it)
At first I thought that writing a procedure, but from what I can tell Access does not support procedures and functions (which ir really weird), only basic SQL statements.
Is exporting data into other DB like Postgre, writing and running a procedure there, and importing the data back into .mdb file possible? Or there are other solutions?

If you're looking to export data from a specific table then select that table and right click on it. A menu will appear that allows you to export the contents of that specific table. Choose the format (probably .csv or .txt for max flexibility) and then import it whereever and manipulate it accordingly.
If you want to reimport your results then choose from the File -> Get External Data -> Import menu and import your newly manipulated data. That should do it. Just make sure that the data columns align properly with the table your importing into. This shouldn't require any VBA. This advice is pertinent to Access 2003.

Related

SQL Trouble Importing Data from .csv file

I am importing data in my database using SQL server, through excel .csv files. I right-click on the database I'm using, tasks, import data, go through the steps of selecting the file, choosing the destination:
data source
going through the whole process, it says that all of my data has been imported successfully but when I check the table, there is no data.
Has anyone ever come across this? Or know of a reason as to why the data is not showing up in the table I have selected it to?
Thanks!

Excel - automatically append data from sql

how can i make to automatically every day run my excel file, reload data from db and append in existing data.
Do I need to use vba script or...???
I have an idea that might work,
Write a script in any backend language of your choice (Java, Python...) that creates an active connection to the database
Run it to periodically query a database table(MySQl,..) and store newly entered data into variables
Continuously append that data into the excel file as you normally would any file.
Most languages have packages to handle excel files, I think it should do it.
Good luck

VBA: an executable application to read the log file and store the data

I am planning to make an application which can import the data from some files and store them in the relevant tables in (MS Access). However, I realised there might be some issues implementing this as it seems that I can't make an executable application with the specified tables hidden in the application.
For more information: the log files have the same structure and I am aiming to import the relevant columns to the tables and then use those data...
Would be great if you know anyway that I can make an executable application while keeping the tables.
You could use a batch file that will open the database and run a particle query or vba code. All the user would do is double click the he batch file.

.SQL export from PHPMyAdmin to Excel or CSV

I inherited some old records for a company I volunteer for. One of the old files is an SQL Dump from their old webpage, and I would like to get the data from one of the tables for their use into Excel.
-- MySQL dump 10.11
The dump drops the table if it exists, creates the table new, and then inserts all of the data.
Is there some easy way I can get this data into Excel on my PC? I don't have SQL Server or anything like that loaded... I assumed there was some easy way to get a CSV or Excel file out of it but I have failed to find this yet without first uploading the dump to some SQL Server.
Unfortunately I don't think that there is any way to export a dump file into an excel or .CSV file. The reason for this is that the dump file is actually a collection of Select statements instead of the actual data itself. SQL servers do this to prevent a whole list of problems that can occur when you try to manipulate raw data manually.
Lucky for you, MySQL offers a free version of their server. You can find it here: http://dev.mysql.com/downloads/
I think you are best off downloading this and restoring your file as a new database. This has the added benefit of allowing you complete control over the data from that point on. Exporting to excel would be easy at that point however, you may find it a lot more fulfilling to continue using MySQL server.
Hope this helped.

Using temporary tables to store data from Excel file

I've got a database with information on servers and applications. I also have an Excel file which has some of that information saved in it .
What I'm trying to do is compare the database with the Excel file and output all the results which are present in the DB and not the Excel file, and vice versa.
After some thinking, I decided that it might be best to create temporary tables and save all the data from the Excel file into them, and then do an outer join between the corresponding tables (I'm using SQL Server).
How do I go about doing this without creating models in Rails for them (unless I specifically have to create them)?
Not sure how to use raw SQL in this instance =s
You actually have several choices on how to import the Excel data. If you're looking for a strictly SQL Server solution then you can use a linked server or distributed queries. You can also use DTS/SSIS (depending on your version of SQL Server) for a solution that's external. You could call the SSIS or DTS packages from your own code. Excel also has an OLE DB provider, so if your application uses ADO or otherwise uses OLE DB then you can use that.
All of these methods are explained in a little more detail on Microsoft's website, including some sample code for some of them.