I'm using MS Access 2013 and I have started learning SQL. I have written my SQL Database (all it does is make a bunch of tables) and I don't want to actually write anything in Access, I just want to bring in my SQL and request the Relationship Tables Diagram because my professor wants this particular diagram. Can someone tell me how to accomplish this? When I try to bring in my SQL it gives me errors saying that it was expecting INSERTS, DELETES, etc. but I don't have any actual data yet. I tried to look it up, but everything on Access and SQL is about making queries and I don't think that is what I'm after.
Your database schema should have the following.
1 - one create database statement
2 - one to x create tables statements
3 - primary keys for the each table
4 - foreign keys to express relationships.
5 - other object when business requirements need them.
http://en.wikipedia.org/wiki/Database_schema
Given this schema, the TSQL file can be loaded into any good modeling tool like ERWIN to generate a diagram.
If you want to do it from MS Access, you can. Behind the scenes, MS Access does support SQL in the query builder and you can use the table diagram window.
On the other hand, you can link MS Access to a SQL database (all tables) and still use the table diagram window.
Related
I am very new to SQL, MS Access & PostgreSQL. So this might be a very silly question but somehow I can't figure it out. I'm trying to run SQL queries in access and my data is in a PostgreSQL database table which was linked to access by my colleague earlier. When I make this simple query why do I get an error that the table doesn't exist? Is the syntax different for linked database tables? Or is the link not yet established?
You have created a Pass-Through query. This query is executed on the server, not in Access, so you need to use the original table names from the PostgreSQL database.
So it's not FROM public_tb_change but FROM tb_change.
Or maybe FROM public.tb_change, if public isn't the default schema.
I advise to rename your linked tables to the original name (remove public_), that makes things much less confusing. The schema name is automatically added by Access when linking the tables.
I have a database called AQOA_Core with huge amount of data.
I have a newly created database called AQOA_Core1 which is basically empty. I want to write a query to duplicate AQOA_Core to AQOA_Core1 without the data. I guess to be precise I want to create a skeleton of the primary database into the secondary database.
PS: I use Toad for my database operations.
You can use SQL Server Script Wizard for scripting database objects. You can exclude data, and select the database object types you want to include in your script
Please check the SQL Server guide I referenced above,
I hope it helps you
I am new to access. I am using a tool/access database someone built, and it has an ODBC connection to an Oracle SQL database in it.
There are different queries on the side panel, and some of them are delete queries.
If I run these delete queries will they just modify data in my local access database without modifying the data in the Oracle Database?
Yes these will change something in the database whether its linked with another access database table or oracle table and within the database. To review the query you can open the queries in design view and run a normal select query so you can see what the queries are deleting. You can have a normal table image and or globe with a arrow in front pointing towards the table then its linked. A lot of times when I am testing I just run select queries and then I make a copy of what I will be deleting just in case anything goes wrong.
I don't know if I am using the correct terminology here.
I want to recreate the tables of a local database on my computer on another one. I do not care about duplicating the data stored, but just the tables, their relationships, constraints etc.
I have been using Microsoft SQL 2012. Is there a way to generate the SQL code that defines my tables. (What I would have typed to set up my tables had I not done it graphically)
I have a need to access data in a MS SQL database from within in MySQL and would like to know my options. The data is held across various joined tables
Ideally I would like to mirror the database schema and data in MySQL so that it can be queried from within Wordpress.
The data is hotel information as seen here http://www.vrxstudios.com/advanced_search.aspx
The plan is to represent each hotel as a wordpress post.
Would it make sense to create a flat table in SQL and link this somehow in MySQL?
Any help gratefully received.
Thanks
Jonathan
If you want to move data from MS SQL Server to MySQL you could use SSIS routines to move the data. You could schedule the data import to happen as often has you need.
The simplest form would be a direct copy in schema structure from MS SQL Server.