Welcome to RenEvo Sign in | Join | Help

New code snippet plugin for Live Writer

I am trying out a new code snippet plug-in for Live Writer.

Public Class CommitDB
    Public Function GetCommitStatusAll() As DataSet
        ' Create Instance of Connection and Command Object
        Dim myConnection As New SqlConnection(ConfigurationManager.AppSettings("NorthstarConnectionString"))
        Dim myCommand As New SqlDataAdapter("GetCommitStatusAll", myConnection)

        ' Mark the Command as a SPROC
        myCommand.SelectCommand.CommandType = CommandType.StoredProcedure

        ' Create and Fill the DataSet
        Dim myDataSet As New DataSet

        ' Return the DataSet
        Return myDataSet
    End Function
End Class
Lets see how it looks on the blogs!
Published Thursday, December 4, 2008 3:38 PM by Tom Anderson


No Comments
Anonymous comments are disabled