Guest User

Untitled

a guest
Oct 19th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #Get the photo path of the students
  2. $commandAD = $connection.CreateCommand()
  3.  
  4. #Retrieving student photo records.
  5.  
  6. $commandAD.CommandText = "SELECT [Barcode],[ImageURL] FROM
  7. [iSAMS_Custom].[dbo].[vwDestinyLibrary_Student_photo1]"
  8.  
  9. $resultPhoto = $commandAD.ExecuteReader()
  10.  
  11. $tablePhoto = new-object "System.Data.DataTable"
  12.  
  13. $tablePhoto.Load($resultPhoto)
  14.  
  15. #Export Hash Table to Txt File
  16. $tablePhoto | Out-File c:Usersnimmy.pkDocumentsinputphoto.txt
Add Comment
Please, Sign In to add comment