Share via


Açıklamalar (dmx)

Comments in Data Mining Extensions (DMX) are text strings in program code that Microsoft SQL Server Analysis Services does not execute.Yorumları açıklamalar da verilir.Yorumları belge kodu veya bölümlerini dmx deyim veya komut dosyası kodunu tanımada geçici olarak devre dışı bırakmak için kullanabilirsiniz.

Yorumlar program kodunuzu belgelemek için kod gelecekte korumak kolaylaştırır.Yorum yazdığınız kodun geliştiriciye adı ve ana kod değişiklikleri tarihlerini programının adı gibi ayrıntıları kaydetmek için kullanabilirsiniz.Karmaşık hesaplamalar açıklamak için açıklamalar kullanabilirsiniz veya bir programlama yöntem.

Yorum yazmak için temel kuralları şunlardır:

  • You can use any alphanumeric characters or symbols within a comment.Analysis Services ignores all characters that are within a comment.

  • Maksimum uzunluğun deyim veya komut dosyası içinde bir açıklama yoktur.Yorum satırları bir veya daha fazla oluşur.

Analysis ServicesAşağıdaki açıklama karakter türlerini destekler:

  • / / (eğik çift). Use these comment characters to write a comment on the same line as code that is to be executed, or to write a comment on a line by itself.Analysis Services evaluates everything from the double forward slashes to the end of the line as part of the comment.Birden çok satırlı yorum oluşturmak için yorum her satırın başlangıcında çift bölü işareti kullanın.Bu açıklama karakterini hakkında daha fazla bilgi için bkz: / / (Comment (dmx)).

  • --(çift tire). Use these comment characters to write a comment on the same line as code that is to be executed, or to write a comment on a line by itself.Analysis Services evaluates everything from the double hyphens to the end of the line as part of the comment.Birden çok satırlı yorum oluşturmak için yorum her satırın başlangıcında çift tire kullanın.Bu açıklama karakterini hakkında daha fazla bilgi için bkz: --(Yorum) (dmx).

  • /* ... * / (eğik çizgi yıldız karakter çiftlerini iletmek). Use these comment characters to write a comment on the same line as the code that is to be executed, to write a comment on a line by itself, or even to write comments within executable code.Analysis Services evaluates everything from the open comment pair (/*) to the close comment pair (*/) as part of the comment.Çok satırlı yorum oluşturmak için yorum açık açıklama karakterini çifti ile başlayın (/ *) ve Kapat açıklama karakterini çiftiyle Açıklamayı bitirmek (* /).Diğer bir açıklama karakterleri herhangi bir yorum satırlarında yer alması gerekir.Bu açıklama karakterini hakkında daha fazla bilgi için bkz: / *... * / (Comment (dmx)).