• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 664
  • Last Modified:

SQL server cannot open database tables / views / stored procedure

Hello,

I am using Sql server 2008. I have a problem with one database: I cannot open anything on that database (look at the picture). Usually there is a plus sign and by pressing it you see tables / views and other database stuff. On this one I can't see anything.

Database not showing tables / views / stored procedures
What's the cause of this?


Best regards, Frenky
0
AntonioRodrigo
Asked:
AntonioRodrigo
2 Solutions
 
rajeevnandanmishraCommented:
Hi,
It looks like to be a SQL CE datafile. And you may need to connect it via some other tool (may be Visual Studio .Net)

How you have created this database?
0
 
jogosCommented:
Sure you did it from explorer?  
I guess you describe the things hapening in mamagement studio.
http://www.mssqltips.com/sqlservertip/1245/build-code-using-the-sql-server-object-browsers-drag-and-drop/
0
 
AntonioRodrigoAuthor Commented:
@rajeevnandanmishra: I haven't created this database by myself. But, I am very suspicious that it is like you are saying. So - DB created in Visual Studio cannot be opened via sql server management studio? Those databases are different?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
waltersnowslinarnoldCommented:
The .mdf files of a Database should be in a SQL Server base folder, But the above image seems to be, it is located in the IIS folder, where Web application are hosted..

You will have to place the .mdf file at the below folder, you can trace it out in programeFiles;
\\MSSQL\DATA\EEN1.mdf

After placing it, please attach the .mdf file as below;

CREATE DATABASE EEN1
    ON (FILENAME = 'Fullpath Where above file is placed\EEN1_Data.mdf'),
    (FILENAME = Fullpath Where above file is placed\EEN1_Log.ldf')
    FOR ATTACH;
0
 
AntonioRodrigoAuthor Commented:
Is it possible to use Sql server compact edition inside management studio? So compact edition databases can be opened and queried inside management studio.
0
 
AntonioRodrigoAuthor Commented:
@waltersnowslinarnold - very very good point. I didn't even have to use query - it was enough to put the .mdf into that folder and attach.

I really didn't know that folder location of database matters. There is no way around this, so I could use other folders as well?
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now