Solved

Database table is not visible. How to make it visible?

Posted on 2009-06-30
5
287 Views
Last Modified: 2012-05-07
I created a database with MS SQL Management Sudio and added a database to it. For now logging in is through the Windows NT authentication. My problem is that I am working on an application and plan and ODBC access to the database and table. I'm able to log on to the database. However the app cannot find the table. I compiled a Microsoft app that lists all tables under that database. Surprisingly, it lists all System Tables, all dbo schemas, and others not even shown in Management Studio. Yet my table is nowhere to be seen, though it is also listed in Management Studio as a dbo schema.

How do I make that visible? It seems to be some restriction in terms of security or similar but I don't know where to look, as I've tried comparing the other accesses (Master, etc) that are there.
0
Comment
Question by:RJV
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 22

Accepted Solution

by:
8080_Diver earned 500 total points
ID: 24750227
It sounds like you may not have any permissions on that table.  
Can you open the database in Management Studio and look at the permissions for the Username you are using to access the data from your app?  If so, be sure to look at the permissions for that specific user.  Does that user have access to the table?  (If it is a Windows User, you may have to check the groups that to see which group it is in and then check the Group's permissions. ;-)
If you do not have at least Read Access, then the table will not appear to exist.
 
0
 

Author Comment

by:RJV
ID: 24750604
Both access though Windows (system logon). As to Groups this computer is not associated to any groups. Having said that, maybe Management Studio is taking that into account. Where would I find the database Groups in Management Studio? I just hunted around and couldn't find it. Any other tips of security checkpoints will certainly help me drill down.
0
 

Author Comment

by:RJV
ID: 24750906
Looking through Management Studio, everything seems to have security related to it, from the logical users and data to the schema. Right now all I do is log on to the OS and then load Management Studio, with SQL starting up as the usual service. As to the app, I set it also to the same security as the OS. Evidently, not good enough though all I want is something simple. Try to change it and I also have to settle to what is built in. So, having said that, might you suggest what I check out exactly, even if to create another table and/or database. I want to simplify however much I can.
0
 
LVL 14

Expert Comment

by:Jagdish Devaku
ID: 24752348
try to give necessary permissions to BUILTIN/Administrators for the database. normally we give sysadmin permissions to this user id.
try to do it check whether the you are able to view the table for windows authentication login.
bye.
0
 

Author Comment

by:RJV
ID: 24762534
The not so unusual amazing thing. When I posted the question here I suspected of a permissions issue, or something done wrong in Management Studio. Of course, it could also be at the ODBC level or even my code. After looking everything over I decided to ask those who know SQL better (not my goal; suffice to suffer with C++, MFC, threads, etc). As it turned out, you also wondered about permissions. Thus I focused more on that area, in as much as that is possible in Management Studio.

Late yesterday, after over scratching my head, I decided to set this checkbox in ODBC:

   Change the default database to:

...and then select the database I had already selected to access. Why hadn't I done that before? It didn't and does not make sense. Let's face it, I had accessed that very same database and even test connected to it. Well, that did the trick! I hope this helps you or anyone else here in the future.

So, while I didn't get a specific solution to my problem, thanks to your pointers I was better able to zero in. So I will award the points in thanks for effort that led to the solution.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question