A data dictionary is a collection of related descriptions of data and objects in a data model that helps programmers and users look up data and objects when they create applications and reports. When you use the data model, it is ideal to create a data dictionary. When databases are very small, developers often use Embedded SQL Server tools and scripts to create data models. But when the database model becomes an enterprise-class data model and has th
Problem
I need a way to create a dictionary that keeps up with the latest data. I made a lot of changes to the database, and I spent more time updating the database documents than the database administration time.
Expert answers
If you store metadata as an extended attribute, you can use SQL Server 2005 to create a data dictionary for a database within seconds. The SQL Server AdventureWorks sample databa
Label: Dede Weaving dreams How to add the custom properties tab symptoms1, into the background-system--sql command-line tool-run the SQL command line, add Arcatt table field: Insert INTO ' Dede_arcatt ' (sortid,att,attname) VALUES (9, ' d ', ' symptoms ')2. Add Archives table field:ALTER TABLE ' dede_archives ' modify ' flag ' Set (' H ', ' C ', ' P ', ' f '
Xplog70.dll cannot be loaded on SQL server 2008In the object resource manager, right-click the server name and select Properties.An error message is displayed, as shown below:My final solution is: Copy the xplog70.dll file to the "installation directory Microsoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLBinn" directory on someone else's computer with SQL
COLUMN18
VARCHAR2 (10)
COLUMN18
nvarchar
10
COLUMN7
INTERVAL Day (2) to SECOND (6)
COLUMN7
nvarchar
30
COLUMN8
INTERVAL year (2) to MONTH
COLUMN8
nvarchar
14
COLUMN9
LONG
COLUMN9
ntext
16
COLUMN10
LONG RAW
COLUMN10
Image
16
COLUMN11
NCLOB
COLUMN11
ntext
16
The above are excerp
AdventureWorks2008R2 all the extended properties of an index in the sample database.
Copy Code
Use ADVENTUREWORKS2008R2;
GO
SELECT class, Class_desc, major_id, minor_id, Ep.name, s.name as [Index name], value from
Sys.extended_propert IES as EP
INNER JOIN sys.indexes as s on ep.major_id = s.object_id and ep.minor_id = s.index_id
WHERE class = 7;
go
C. Displaying extended
Splicing T-SQL string and making it versatileBenefit: Establish a connection with the server, send a SQL command to the server, you can implementThe code is as follows: 1//For bulk update operations in the EF schema, we need to manually label the navigation properties of the entity because there is no special description in the entity generated by EF, so we have
depid=object_id (' Table name ')9,sysmessages the internal errors returned by SQL Server are here and can be modified on their own, displaying the information that they indicate when an error occurs.10,sysfiles Save the current database file size, path and other information.11,information_schema each CHECK constraint in the current database occupies a row in the view. The Information Schema View returns information about the object to which the curre
a subquery against the value of the main query, so it is less efficient. The following describes the use of top and percent, percent represents the percentage: for example, query the employee table, the previous 20% of the employee's information, can write SQL, query results for two people. 1 Select TOP (Percent) * from Hr.employees We are inquiring about hr.employees (employee table), and check the total number of people in the employee table, t
Esc_attr () (Filter properties)It is usually the following format when writing the tag properties of Html code:
What if the value attribute is dynamically output?
However, if the properties of the dynamic output have special characters such as double quotes, angle brackets, and so on, the Html code is scrambled, and the esc_attr () fun
Label:Powerdesign 16.0 generated script statement, inside Sql2000, the statement with the field notes executed with the following error: PowerDesigner cannot update or delete properties. The attribute ms_description of "xxx" does not exist. Mssqlsrv2000::script\objects\column\columncomment Modified Column colcomment Modify Column columncomment template path is Database, Edit current DBMS Form General tab under Script, Objects, C Olumncomment In fact,
schema (environment in the code above) is used, so the third parameter of the sp_addextendedproperty stored procedure should be schema rather than user. Query related data found that the above SQL statement is based on the corresponding. xdb file generated by PowerDesigner, as the SQL code template for the column comment information, the corresponding XDB template file is stored in the PowerDesigner instal
Label:Original: SQL Server lists columns and properties for each tableWhen you need to organize a database help document, you might want to list the columns and their properties for each table in the library. This may be helpful in developing some interfaces or outsourcing to other companies. If you need someone to open SQL
Navicat for SQL Server can create, edit, and delete all database objects, and is a comprehensive graphical way to manage the database. But a lot of users of their friends do not know enough, we will give you some tutorials to explain. This tutorial will explain Navicat for SQL Server Advanced Properties (state).Navicat for SQ
= "[emailprotected]+") as C--on e.name=c.name) '--print @sql--exec (@sql) DECLARE @sql Nvarch AR (+) SET @sql = ' Select field ordinal =a.column_id, field name =a.name, type =b.name, length =a.max_length, number of decimal digits =a.scale, identify =case when A.is_ Identity = 1 Then ' + ' + ' + ' is ' + ' + ' + ' + '
Tags: SQL server2008 modifying column propertiesmodifying column PropertiesYou can use the ALTER TABLE statement not only to add new columns and delete columns, but also to modify the properties of a column, for example, from a new set of column names, data typesLength, whether it is empty, you can also set or cancel the primary KEY constraint for a columnWhen setting column names, data types, lengths, and
NULL."> The data type of value is sql_variant, and the default value is NULL. value cannot be more than 7,500 bytes."> value cannot exceed 7,500 bytes in size.
[@level0type =] {'
level0_object_type '}
the type of the level 0 object. level0_object_type is varchar(128), with a default of NULL.">The Level0_object_type data type is varchar (128) and the default value is NULL.
valid inputs include: ASSEMBLY, contract, EVENT NOTIFICATION, FILEGROUP, MESSA
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.