So I'm just confused here.
I've got to migrate my database from MySQL to MS SQL Server 2008. I've transferred the data via the "MS SQL Data Wizard" app from SQL Maestros. It took the data+structure from my MySQL database "gk" and copied it into a database "gk" on my MS SQL Express instance.
But when I connect to the MS SQL instance and try to run an SQL query, I only get results when I execute "select * from gk.TABLENAME
" or "select * from gk.gk.TABLENAME
"... If I execute "select * from TABLENAME
" after executing "use gk
", I get:
Error: Invalid object name 'TABLENAME'
SQLState: S0002
Error code: 208
How do I make this behave "normally"? I.e., I connect to a specific database such that I don't have to explicitly tell it in which database/schema to find the table?
UPDATE: I should specify the structure that was created by the SQL Data Wizard app. Looking at the object browser tree on the SQL Server Management Studio, there's this:
[HOSTNAME]\SQLEXPRESS (SQL Server ...)
|-- Databases
|-- System Databases
|-- gk
|...
|-- Tables
|-- TABLE1
|-- TABLE2
|-- TABLE3
... and so on.
Thanks. -dan