Solved

SQL server cannot open database tables / views / stored procedure

Posted on 2012-03-28
6
575 Views
Last Modified: 2012-03-29
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
Comment
Question by:AntonioRodrigo
6 Comments
 
LVL 9

Assisted Solution

by:rajeevnandanmishra
rajeevnandanmishra earned 250 total points
ID: 37780602
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
 
LVL 25

Expert Comment

by:jogos
ID: 37780608
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
 

Author Comment

by:AntonioRodrigo
ID: 37780984
@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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 7

Accepted Solution

by:
waltersnowslinarnold earned 250 total points
ID: 37781165
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
 

Author Comment

by:AntonioRodrigo
ID: 37781318
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
 

Author Closing Comment

by:AntonioRodrigo
ID: 37781364
@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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OSQL to execute sql command 26 24
MS SQL query to show nearest date 6 37
Shrink multiple databases at once 4 27
Help With SQL Query 9 31
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
I have a large data set and a SSIS package. How can I load this file in multi threading?
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

860 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