| Author |
Topic |
|
abidba
Starting Member
26 Posts |
Posted - 2009-11-05 : 16:59:33
|
| I have to create a data dictionay from a database. I have to use the folloing information: database nameTable nameColumn NameColumn LengthColumn DescriptionVersionConstraint Date CreatedHow can i achieve this using SQL Script? i did find few scripts but i need to have above information in the DD. Thanks in advance for your help. |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
abidba
Starting Member
26 Posts |
Posted - 2009-11-06 : 10:29:59
|
| No i am not able to do it. Would you be able to help me out on this. |
 |
|
|
abidba
Starting Member
26 Posts |
Posted - 2009-11-09 : 15:46:24
|
| Any body has any idea here...I need a script with the folliwing detaisl:I want to create a data dictionary for SQL Server Database that i have. I have created following table with folloing columns:Table_nameColumn_NameColumn_DataTypeConstraint-NameColumn_LengthColumn_OrderColumn_Descr ---This is the column descriptionTable_Descr ----This is table description. I need to create a data dictionary and import those information into this table for a database DB_Test. |
 |
|
|
rohitkumar
Constraint Violating Yak Guru
472 Posts |
Posted - 2009-11-09 : 15:53:56
|
| what did you try so far? |
 |
|
|
abidba
Starting Member
26 Posts |
Posted - 2009-11-09 : 16:33:56
|
| So far i have created table and wrote following script. select SO.name as Table_Name,SC.name As Column_Name,sc.length AS Column_Length,sc.xtype, (select [name] from systypes st where st.xusertype=SC.xtype) as [Data Type],SC.ISNULLABLE from sysobjects SO inner join syscolumns SC on SO.Id=SC.idwhere SO.xtype='U' order by SO.Name,colorder |
 |
|
|
abidba
Starting Member
26 Posts |
Posted - 2009-11-09 : 16:34:34
|
| miseed one thing, have to have version as well in the table. |
 |
|
|
rohitkumar
Constraint Violating Yak Guru
472 Posts |
Posted - 2009-11-09 : 17:39:52
|
| read about fn_listextendedproperty |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|