Skip to content

Instantly share code, notes, and snippets.

@stimms
Created April 19, 2012 18:56
Show Gist options
  • Save stimms/2423052 to your computer and use it in GitHub Desktop.
Save stimms/2423052 to your computer and use it in GitHub Desktop.
Function for commands
Public Function RunCommandAgainstSQLServer(cmd as Command)
command.ActiveDatabaseConnection = GetConnectionString 'also opens the connection
command.Execute
command.ActiveDatabaseConnection.Close
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment