database-diagramming

Is there a way to visually display a View in a database diagram in SQL Server 2008?

狂风中的少年 提交于 2020-01-13 10:03:24
问题 I would like to create a database diagram in SQL Server 2008 and have a View in the diagram. is there a way to do this? 回答1: I don't think so. SQL Server Management studio allows only Tables to be included in the database diagram. If you have Microsoft Visio, you can use that to include the Views in your database diagram. 回答2: Download SQL Sentry Plan Explorer - this is a free app that significantly extends the built-in execution plan functionality in Management Studio. Also grab the

How do you determine functional dependencies and a primary key?

拜拜、爱过 提交于 2019-12-24 15:18:46
问题 In my Oracle Database Programming course, the first part of our final lab assessment requires that we: Identify the Primary Key of the table as it is currently shown Find all functional dependencies of the table which we are given to work with. Draw the dependency diagram for the table(s) The table is in 1NF to begin with. From the research I have done, it seems like I need to essentially combine every possible FD, which would not only consume a very large amount of time, but seems bizarre

How to generate a diagram of a very large database schema (SQL Server)

最后都变了- 提交于 2019-12-20 17:40:58
问题 I have a very large database I need to diagram. The database is SQL Server 2008 on x64. It is large in that there are hundreds of related tables, each with up to 2000 fields (some are sparse), multiple relationships between tables (often hundreds per table, in fact), multiple schemas... you get the idea. I tried to use the Database Diagrams feature of SQL Server Management Studio, but it crashed with a Win32Exception: "Not enough storage is available to process this command..." I tried to use

Missing Diagram folder in Database Explorer at Visual Studio 2012

…衆ロ難τιáo~ 提交于 2019-12-08 17:45:11
问题 I was in a middle of designing a website when suddenly Database Diagram folder just disappeared from the Database Explorer. I have no idea what happened and what to do right now, as I desperately need it to continue my work - adding tables to database manually are not an option for me. I've been seeking for the solution for a whole day, and I even re-installed the Visual Studio and local IIS server, but it wasn't helpfull at all. Is there any way to bring the feature back or at least is there

SQL Command Add Database Diagramming

泄露秘密 提交于 2019-12-07 05:17:32
问题 Is there a tsql command on sqlserver 2008 which can be run in order to enable Database Diagramming instead of this dialog appearing: This database does not have one or more of the support objects required to use database diagramming. Do you wish to create them? 回答1: The script is a little too long to add here, but here's what you can do. 1) Create a new database. 2) Start sql server profiler 3) Click the "Database Diagrams" folder in management studio. 4) Clear the profiler. 5) Confirm the

Is there a way to visually display a View in a database diagram in SQL Server 2008?

柔情痞子 提交于 2019-12-05 08:00:05
I would like to create a database diagram in SQL Server 2008 and have a View in the diagram. is there a way to do this? I don't think so. SQL Server Management studio allows only Tables to be included in the database diagram. If you have Microsoft Visio, you can use that to include the Views in your database diagram. Download SQL Sentry Plan Explorer - this is a free app that significantly extends the built-in execution plan functionality in Management Studio. Also grab the Management Studio add-in (you'll have to re-start SSMS). Once installed, in SSMS, run the following query, with "Actual

How to generate a diagram of a very large database schema (SQL Server)

谁说胖子不能爱 提交于 2019-12-03 05:09:31
I have a very large database I need to diagram. The database is SQL Server 2008 on x64. It is large in that there are hundreds of related tables, each with up to 2000 fields (some are sparse), multiple relationships between tables (often hundreds per table, in fact), multiple schemas... you get the idea. I tried to use the Database Diagrams feature of SQL Server Management Studio, but it crashed with a Win32Exception: "Not enough storage is available to process this command..." I tried to use Visio's reverse engineering feature on a different machine to connect in and diagram it, but that's

Database Diagram Support Objects cannot be Installed … no valid owner

社会主义新天地 提交于 2019-12-03 01:35:56
问题 I tried to create a database diagramm with SQL Server 2008, but an error occurs: Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects. Then I tried the following: EXEC sp_dbcmptlevel 'Ariha', '90'; GO ALTER AUTHORIZATION ON DATABASE::Ariha TO

Database Diagram Support Objects cannot be Installed … no valid owner

烈酒焚心 提交于 2019-12-02 13:51:45
I tried to create a database diagramm with SQL Server 2008, but an error occurs: Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects. Then I tried the following: EXEC sp_dbcmptlevel 'Ariha', '90'; GO ALTER AUTHORIZATION ON DATABASE::Ariha TO [WIN-NDKPHUPPNFL\Administrator] GO USE Ariha GO EXECUTE AS USER = N'dbo' REVERT GO Next erorr pops up:

Tools for discovering de facto foreign keys in databases? [closed]

强颜欢笑 提交于 2019-11-29 09:26:57
问题 A good way to quickly survey the information in a database is to apply a tool that automatically creates a database diagram of all tables and all relationships between them. In my experience, such tools use foreign keys as the relationships, which most of the databases I try them do not contain. Sure, they satisfy constraints corresponding to foreign keys, but do not enforce them. And I'll end up with a 'diagram' consisting of a bunch of unrelated tables. So what I'm looking for is software