I previously run a SQL script on APEX with the SQL Workshop but my account was blocked. So, I tried to run this in SQL Developer but I don't know how, I already have a connection between Oracle Application Express and SQL Developer.
Connect in SQL Developer.
Open a SQL Worksheet - we usually open one for you upon successful connection.
Put your code in.
Hit F5 or use the Execute as Script button.
We'll rip through your statements.
I talk about this more here.
Related
I know the basic syntax of queries but otherwise I'm a beginner with SQL.
I have an SQL file (.sql) and I downloaded a couple programs (pgadmin and sql workbench).
I have no idea how to get from where I am now to actually writing queries and finding information. How do I set up so I can actually import my SQL file and start writing queries?
pgAdmin is the default GUI for PostgreSQL.
SQL Workbench is a free, DBMS-independent, cross-platform SQL query tool.
Either way, you need to connect to a database to actually run queries. The DBMS can either run on your local machine or you can connect to a remote server - where you need access privileges of course.
I'm having trouble running sql commands to my database on Windows Azure. Previously I had no problems at all running my commands and stored procedures with SQL management studio until I added another database on the same server. I can still connect and even se all the tables and both databases i SQL management studio but I cannot run any commands.
If I use the online management portal I am able to run my SQL but not with SQL management studio.
select * from nextlabel.[Article]
and it gives the folowing error:
Invalid object name 'nextlabel.Article'.
Any ideas on how to connect properly to one of the databases or if I'm doing something else wrong?
I want connect my MS access 2003 with Oracle SQLdeveloper so that I can do analyis in SQLDeveloper. I am trying to create ODBC driver but it is not working.I am wondering if any of you send me the links or explain how can I create a ODBC connection between Access and Oracle SqL developer
Here is a short video
and a more complete example is in this article
2 ways to do it:
Long & foolproof method:
1. Below link has he Oracle Tutorial document for the Migration
https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/hol08/sqldev_migration/msaccess/migrate_microsoft_access_otn.htm
Short Method (may not work always):
2. To setup a connection to MS Access in Oracle SQL Developer, from the Connections dialog, click on the green plus sign. This will open the connections dialog box.
You will see a tab that says Access right beside Oracle tab which will be selected. Click on the tab to open up the dialog to use an MS Access MDB file. Use the Browse button to locate the MDB and give it a connection name. No need to enter username.
Once connected to the MS Access database from Oracle SQL Developer, you will see the connection in the database.
You can see all the tables in the database by expanding the TABLE category of the connection.
I have my Oracle server installed in a remote machine and I want a script at my local machine which will check whether Oracle server is up and running or not. I know this can be check by creating a connection through sqlplus or JDBC. But in this case oracle client won't be present and I am saving JDBC approach as my last option. So is there any other simpler way to check this, which can be easily implemented in a shell script???
Thanks
Not really. The only way to be certain that the database is responding to queries is to run a query on it, such as the venerable:
select dummy from dual
I'd like to make a daily automatic creation of the creation script for a database in SQL Server 2008, meaning having a (bat, exe, ... whatever) that creates a text file with the very same output obtained by right-clicking on the database in SQL Management Studio and do Script database as... --> Create to... --> New Query window.
Any hint?
Thanks in advance,
Mauro
EDIT 1: We already used SMO but a couple of things are annoying
Needs compatibility pack in SQL Server 2008 (confirm?)
Some things were not created in script (some indexes and keys and in table creation schema is lost)
Best choice for me would something with a powershell script but any other idea is welcome!
You can use SMO. For example: http://www.sqlteam.com/article/scripting-database-objects-using-smo-updated (see the Scripting Objects section).
More info on SMO: http://msdn.microsoft.com/en-us/library/ms162169.aspx