how to copy records of excel to exsist table in data base in Webmatrix - webmatrix

I have an excel sheet of 1400 records.
So Ineed to copy them to exsisting table in my data base.
I try many times to do that in elegant way but...nothing.
I looking for simple method to do that without code..
How can I do that?
I'd be grateful to anyone who can explain me all the process...
thanks again..

If you are using Sql CE as database server, the best solution is to convert your Excel file into CSV and import the CSV file using SQL Server Compact Standalone Toolbox.
You can find a thread that outlines the procedure at this link: Loading Comma Delimited Text Data Into WebMatrix.
Otherwise, if you are using MS SQL Server, SQL Server Management Studio makes available an exhaustive SQL Server Import and Export Wizard with a lot of functions.

Related

How to use bcp utility with oracle dB or any other better options

I have a csv file which has to be bulk imported to oracle dB. I was working on other sybase dB engine before so I had a sample script which has the environment setup for it. Right now I have to do the process in a oracle dB so what should be the first line I know about the rest other parameters but want to know the path which has to be defined when I write
path/bcp dbtable in data.txt
If anyone could help what should be the path for oracle dB
The primary tools for bulk or flat file loading are:
SQL*Loader
External Tables (and here)
GUI Tools like SQL*Developer
It is much more cumbersome, but if necessary you can roll your own solution with the UTL_FILE PL/SQL package.

How to import a csv into a remote Oracle database?

I have a dump from a database in a csv format ('|' character as the delimiter), and I want to import that into a remote Oracle database. I am using AWS and the csv is on an EC2 instance running amazon linux, and the remote Oracle database is an RDS instance. This is the first time I'm touching an Oracle database.
I expected this to be fairly simple, but trying to find info I kind of got lost. Some people say to use SQL*Loader, but I can't manage to even install that thing. Other's say that SQL*Loader is not supposed to even be installed on something that isn't the actual database server. So far I've only managed to install sqlplus and connect to the database, but no importing so far.
Basically I'm looking for an equivalent of \COPY in psql, but for Oracle. And how on earth would I use it in this context.
If you don't want to use SQL*Loader and only need to import CSV as a one time task, I would recommend using SQL Developer. If you want an automated process, SQL*Loader would probably be your best bet.
Here are some links (note that an Excel import and a CSV import are nearly identical):
How to move csv file into oracle database using sql developer? [closed]
How to Import from Excel to a New Oracle Table with SQL Developer
How to Import from Excel to Oracle with SQL Developer

Export Oracle table using Stored Procedure to an excel file

I am using SQL Developer 1.5.5 and I need to export some tables from an Oracle 11g database to an xls file. I have tried using spool, but I cannot put in a stored procedure as error comes up. Is there some other alternative to do this?
I am trying to create reports from data base by executing the procedure.
Thanks.
Anton Scheffer (from AMIS.NL) wrote an APEX plugin to load Oracle data into a Excel file. It works very well and it can be used alone (without APEX) with a additional work.
Check out: http://technology.amis.nl/2011/02/19/create-an-excel-file-with-plsql/
You can also use SQLX (see http://technology.amis.nl/2006/01/20/generate-anative-excel-file-with-sqlx/) but it could be very complex depending on what you ha

How to transfer BLOBs to an Oracle database through SQL scripts

I'm developing an application which runs on an Oracle database. I'm now in the process of creating an installation package which will contain some SQL scripts containing the default data that comes with the program.
Some of the tables have BLOB columns which need to contain MS Word documents. I'm not sure how to get these BLOBs into the SQL scripts. I know I could do it through Data Pump, but it is a requirement that all database stuff is included in plain text SQL files.
Does anyone know how to get these BLOBs into an SQL script which the client can just run?
Thanks!
I solved this problem by creating a PHP script that is run as part of the installation process - it loops through all my word documents and inserts them into the database. I would still rather have SQL scripts or something similar but this works for now.

How to import data using codes in SQLDEV?

How to import data using codes in SQLDEV?
I don't want to do it manually. I want to know if there's a way to import from a .csv file using codes.
The code executed in SQL DEVELOPER run on DMBS(your Oracle instalation, the server).
The IDE take your comands(click on schema browser, filters, etc) and transfrom them into commands to the server.
So, you have only Oracle code (SQL and PL/SQL(and Java, etc)) that runs on Server, you don't have code that runs in SQL Developer.
Importing a table can be done:
Using the wizard from IDE (click on table and then choose import)
Using the sqlloader on a Oracle client.
Using External Tables on Server side.

Resources