field-description

Using PowerShell to list Object Description

岁酱吖の 提交于 2019-12-11 10:45:08
问题 I have a CSV file with a list of PC's in my domain. I wanted to get the "Description" Field information from AD for each of the machines listed in AD. This is what I have so far: Import-Module ActiveDirectory Get-ADComputer -Filter {OperatingSystem -NotLike "*Server*"} -SearchBase "OU=Active,OU=Regular Computers,OU=EPComputers,DC=epenergy,DC=net" -Properties * | Select-Object Name,OperatingSystem,CanonicalName | Export-Csv C:\PCList.csv -NoTypeInformation I am not sure where I need to add in

SQL Server - Can you add field descriptions in CREATE TABLE?

早过忘川 提交于 2019-11-30 12:01:22
问题 I can see plenty of posts about where the field description extended property lives and how I can get it, but nothing about adding these at the CREATE TABLE stage. I'm dynamically creating tables so dynamically adding field descriptions would be a tidy thing to do but I cannot see a way. Has anyone managed to do this? 回答1: While you can't do it in CREATE TABLE , you can do it at the same time, in the same database script, using this approach: CREATE table T1 (id int , name char (20)) EXEC sp

SQL Server - Can you add field descriptions in CREATE TABLE?

南笙酒味 提交于 2019-11-30 01:52:31
I can see plenty of posts about where the field description extended property lives and how I can get it, but nothing about adding these at the CREATE TABLE stage. I'm dynamically creating tables so dynamically adding field descriptions would be a tidy thing to do but I cannot see a way. Has anyone managed to do this? While you can't do it in CREATE TABLE , you can do it at the same time, in the same database script, using this approach : CREATE table T1 (id int , name char (20)) EXEC sp_addextendedproperty 'MS_Description', 'Employee ID', 'user', dbo, 'table', 'T1', 'column', id EXEC sp