Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $conn = new-object System.Data.SqlClient.SqlConnection("Server=server;Database=database;Integrated Security=SSPI")
- $cmd = new-object System.Data.SqlClient.SqlCommand("select text from syscomments", $conn)
- $conn.Open()
- $reader = $cmd.ExecuteReader()
- $reader.Read() | out-null
- $reader.GetString(0) | clip
- $reader.Close()
- $conn.Close()
Add Comment
Please, Sign In to add comment