I've created 4 tables in query tool but the tables are not listed under schema.
Tables are returned successfully & I've refreshed everything several times. I'm super new to this, what am I missing? As easy-to-explain as possible, thanks in advance.
Screenshot of issue
Related
I am using MSSMS to try and look at a new db for work. My coworker is having no problem querying the db and its tables, and we have tried refreshing object explorer, deleting and recreating the db, refreshing the cache on intelliSense and dragging the table directly into the query but it is saying that the table name is an invalid object name. I can view whats in the table if I right click and select the top 1000 but I cannot query anything. I have also tried selecting it by doing the "dbo." before the table name. Any ideas on why this would be happening and what to try is much appreciated.
Here is the proof that it is in the db
Here is my simple query
Trying to create a relational database from a healthcare related tsv in PostgreSQL. I created a database and created the 3 tables I need and that worked, so now I have three tables that I need to import the relevant data into.
I primarily work in Python, so I'm not great at SQL. I tried importing the entire text file just to see if it worked. It said it completed but when I use SELECT * FROM on any of the tables they're all blank.
So I then tried breaking up the tsv into the relevant columns of each table and saving them as csvs and importing them that way. That also didn't work.
I've tried googling around but have had no luck. I am on a mac if it matters.
Any help is greatly appreciated!
I'm working with a legacy DB which has 100's of stored procedures, views and materialized views. Now I have to introduce a column in one of the table and want to check everything is working in order as before.
I'm looking for a query which can go and compile all the stored procedures under my schema, run all the views/materialized views by fetching 10 rows from them. Can you please help me with that?
Thanks,
-Mike
I'm pretty new to creating dynamic data websites - I created one a year ago that is working fine but now I'm trying a 2nd one and having a strange problem.
I'm using VS2010, VB.net & followed MS's waltkthrough for creating a web site using Linq to SQL. Things seem to be working with one MAJOR exception. I've pointed it to a SQL server in my domain but it won't display rows from the DB that were not created through the website. Records that I manually enter through SSMS do not show in the DD List for the table, but rows I inserted thru the website do appear.
I have cleared the table and refreshed the list view and all rows disappear. Then if I add rows via SSMS they do NOT show up but website added ones do. This is important because I'm going to be importing data from an old (non SQL) DB that I'm converting.
I really don't know where to look to resolve this - Does anyone have any ideas?
Thanks!
The records I entered thru ssms had bad values for a foreign key and evidently DD is doing inner joins instead of left outer. I don't know if that is a bug or a feature.
I've got two databases: one called db1 and the other one called db2. I've got two models, School and SchoolProd. I want SchoolProd to connect to db2, but to also recognize "schools" as its associated table. I achieve this by doing
establish_connection :db2
set_table_name 'schools'
When I run the rails console, and ask for SchoolProd.all, it gives me all objects from the schools table in db2, but when I try SchoolProd.all again, it gives me all objects from the schools table in db1, not db2. Why is this happening? The first query I do behaves as expected, but the rest is done in db1. Thanks
Ok, I found out why I was getting this error. Turns out I had the ar-octopus gem in my Gemfile. This gem provides Database Sharding in ActiveRecord. I decided not to use it, but forgot to remove it from my Gemfile. Once I removed it, everything went fine