Feeling lazy? Let SqlCommandBuilder map your SProc''s parameters

Feeling lazy? Let SqlCommandBuilder map your SProc''s parameters

August 6, 2004 | Life

You may know my feeling on SqlCommandBuilder, but on those days you’re feeling lazy …

  Dim cmdNW As New SqlCommand
  cmdNW.Connection = conNW
  cmdNW.CommandType = CommandType.StoredProcedure
  cmdNW.CommandText = “Employee Sales by Country”
  SqlCommandBuilder.DeriveParameters(cmdNW)