r/SQL • u/Sad_Maximum_799 • Apr 28 '26
SQL Server Sql newbie- help
Hi im new to SQL. My work uses Microsoft SQL server and they gave me access to their database with host info and no admin help for me to figure out. I use a core imaged macbook with VPN for any work. Now with MS not being available on Mac, I tried to connect to database using docker/VSCode and DBeaver/kerberos setup.
With both methods and lots of struggles I am able to see the database. It connects and shows me the folders but I see all of them empty. I see no tables under the tables folders of each database. What could I possibly doing wrong? They just told me that they have granted me permissions to the database and thats it. Do I need to run queries to see the tables in the database? Shouldn't I see them right away?
Sorry if this is a dumb question, im learning.
5
u/Simple_Brilliant_491 Apr 29 '26
Permissions on SQL Server have lots of levels of access. If they just gave you connect and nothing else, you will see exactly what you describe. They need to give you access to a specific database and tables, or db_datareader role to give you access to all tables and views in a database.
1
u/PVJakeC Apr 28 '26
If you’re able to open the database in DBeaver, you should be able to see the tables. Seems still a permissions gap. Technically possible to have DB access but not table access but rare. Anything in Views or even the system tables?
3
u/belemiruk Apr 29 '26
The empty tables issue is almost certainly a permissions problem. Being ‘granted access to the database’ doesn’t automatically mean you can see the tables you need SELECT permission on the specific schemas or tables too. Try running: SELECT * FROM INFORMATION_SCHEMA.TABLES and see what comes back. If that’s also empty, ask your admin to grant you schema level permissions.
1
u/da_chicken Apr 28 '26
Not necessarily. If you don't have
VIEW DEFINITIONpermission on the database, query analyzers won't be able to pull the metadata and populate the lists. You should get that if you're in thepublicrole, but you may not be or they may have revoked it.Try running
SELECT * FROM sys.tableswith the application DB as the current database.1
u/alinroc SQL Server DBA Apr 28 '26
Did you connect to the SQL Server instance you were provided, or whatever you spun up inside Docker?
You do not need Docker to connect a client on your Mac to a remote instance of SQL Server.
1
u/[deleted] Apr 29 '26
[removed] — view removed comment