Stringbuilder generator

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,370
Location
Sydney, Australia
Programming Experience
10+
I'm guessing that you were wasting your time with the StringBuilders to create SQL queries in VB.NET because you could have been using XML literals, e.g.
Dim query = <sql>
                SELECT *
                FROM MyTable
                WHERE ID = @ID
            </sql>
Dim command As New SqlClient.SqlCommand(query.Value)
 
Top Bottom