Identifying Tables Without Primary Keys in SQL August 3, 2017 It is quite easy to find out which tables in your database(s) do not have Primary Keys. You can use the following SQL script: SELECT s.name + N’.’ + t.name