Hi thanks alot for help..but still its not working. Here is the code I am running....

VB Code:
  1. SQL = "EXEC ins_Template " & _
  2.                       "@vchar_TemplateName = '" & Name & "'," & _
  3.                       "@int_CustomerId = " & CustomerID
  4.  
  5. Dim UCommand As SqlClient.SqlCommand = New SqlCommand(SQL, BlitzKarte4.GlobalConnection)
  6.  
  7. UCommand.Parameters.Add(New SqlClient.SqlParameter("@vchar_TemplateName", SqlDbType.VarChar, 100))
  8.         UCommand.Parameters.Add(New SqlClient.SqlParameter("@int_CustomerId", SqlDbType.Int))
  9.  
  10.         UCommand.Parameters("@vchar_TemplateName").Value = Name
  11.         UCommand.Parameters("@int_CustomerId").Value = CustomerID
  12.  
  13.         MyResult = UCommand.ExecuteScalar()