I use the command below to run a SQL query.
Dim SQLString as String
da.SelectCommand = New SqlCommand(SQLString, Conn)
Often the SQLstring is really long. I use following method:
SQLString = " Select *
SQLString += vbCrLf & " From"
SQLString += vbCrLf & " Student"
But when you debug and get SQLString in immideate window, and paste it to SQL Server Management Studio (SSMS) Tools, it becomes one line and not formatted/indented nicely.
What's the trick for this so I can keep the string formatted nice?