Author |
Topic |
Professor
Starting Member
5 Posts |
Posted - 2008-04-28 : 15:32:36
|
Hi every bodyQ/ How I can write documentation as note in SQL SERVER 2000? |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2008-04-28 : 15:34:51
|
I don't understand your question.Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/ |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2008-04-28 : 16:48:17
|
well... first you need a music notes sheet. then apply notes to each line. try not to go beyond next and previous octaves _______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenpSSMS Add-in that does a few things: www.ssmstoolspack.com |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-04-28 : 16:53:53
|
You don't have the datatype NOTE in Microsoft SQL Server. Only in Microsoft Access.You have1) VARCHAR(MAX) for SQL Server 20052) VARCHAR(8000) for both SQL Server 2000 and SQL Server 20053) TEXT for both SQL Server 2000 and SQL Server 2005 E 12°55'05.25"N 56°04'39.16" |
|
|
m_k_s@hotmail.com
Insecure what ??
38 Posts |
Posted - 2008-04-28 : 23:08:16
|
quote: Originally posted by Professor Hi every bodyQ/ How I can write documentation as note in SQL SERVER 2000?
If you are asking how to comment in tsql, the prefix is -- |
|
|
Van
Constraint Violating Yak Guru
462 Posts |
Posted - 2008-04-29 : 12:14:42
|
If it's a long comment (multiple lines), you can enclose the whole block of text with:/* text hereand here*/ |
|
|
eilert
Starting Member
3 Posts |
Posted - 2008-04-29 : 20:42:22
|
Also, if you're talking about comments in the code, there is an icon in SQL Server Management Studio that will comment out any selected lines.If you're not talking about commenting code, then you might be looking for extended properties...You can add an extended property by using the sp_addextendedproperty procedure:EXEC sp_addextendedproperty @name = N'TableDescription', @value = 'This is a test table.',@level0type = N'Schema', @level0name = 'dbo',@level1type = N'Table', @level1name = 'tblTest';(find out more about this proc: [url]http://msdn.microsoft.com/en-us/library/ms180047.aspx[/url] )You can then retrieve it using fn_listextendedpropertySELECT objtype, objname, name, valueFROM fn_listextendedproperty (NULL, 'schema', 'dbo', 'table', 'tblTest', default, default);(find out more about this fn: [url]http://msdn.microsoft.com/en-us/library/ms180047.aspx[/url] )Also, if you'd like to SELECT these extended properties from system tables, check out sys.extended_properties:SELECT A.type_desc, A.name object, B.name ExtendedProperty, B.valueFROM sys.objects AINNER JOIN sys.extended_properties BON A.object_id = B.major_id |
|
|
Professor
Starting Member
5 Posts |
Posted - 2008-04-30 : 04:12:54
|
I mean (if I want to descripe tables or parameter for other developer by using sql server tools how I can do thet?)thanks. |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-04-30 : 04:23:28
|
You mean a documentation tool? E 12°55'05.25"N 56°04'39.16" |
|
|
Professor
Starting Member
5 Posts |
Posted - 2008-04-30 : 04:29:03
|
It is like documentation tool but manul (writting by developer) |
|
|
LoztInSpace
Aged Yak Warrior
940 Posts |
Posted - 2008-04-30 : 04:39:52
|
MS Word? |
|
|
Professor
Starting Member
5 Posts |
Posted - 2008-04-30 : 04:45:20
|
Mnual documentation like text document to write any thing I want. |
|
|
Professor
Starting Member
5 Posts |
Posted - 2008-04-30 : 04:51:38
|
Can I integrate MS word with SQL server 2000? |
|
|
m_k_s@hotmail.com
Insecure what ??
38 Posts |
Posted - 2008-04-30 : 06:58:25
|
quote: Originally posted by Professor Can I integrate MS word with SQL server 2000?
If your document were just text, the first set of suggestions regarding nvarchar(max) as your data type might be ok.If your document is a word document, there is encoding in the document that would require you to save it as a blob data type.While you can store the document directly in the database, it is a bit of work to marshall it to and from being a blob and document. But if this is what you really need...A cheap and easy work around is to maintain the documents in a well thought out directory structure and simply maintain the filename and directory location in your db. |
|
|
|