Guest User

Untitled

a guest
Jan 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. //Using this SqlCommand will work
  2. new SqlCommand("SELECT [employees].[name] FROM [dbo].[employees]", sqlNotificationConn)
  3.  
  4. //But this one won't
  5. new SqlCommand("SELECT [employees].* FROM [dbo].[employees]", sqlNotificationConn)
  6.  
  7. //And this one won't either
  8. new SqlCommand("SELECT * FROM [dbo].[employees]", sqlNotificationConn)
  9.  
  10. query.ToString()
  11.  
  12. ((ObjectQuery)query).ToTraceString()
Add Comment
Please, Sign In to add comment