Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

if data is not available column header should print in output file in powershell

if (-not $DataSet.Tables[0].Rows[0]) {
  ($DataSet.Tables[0].Columns | Select-Object -ExpandProperty ColumnName) -join ',' |
    Set-Content -Path "E:Users
eerajdDocuments	ethystrader-public-dev-generalsrcSQLMiscout.csv"
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #data #column #header #print #output #file #powershell
ADD COMMENT
Topic
Name
3+3 =