' If we have some parameters While loEnumerator.MoveNext loDataParameter = loEnumerator.Current loDataParameterSQLClient = loEnumerator.Current lcValue = loDataParameterSQLClient.Value.ToString ' Based on the type Select Case loDataParameterSQLClient.SqlDbType.ToString ' Integer, Binary Case "Int", "Binary" ' String Case "VarChar" lcValue = "'" + oApp.SQLServerGetValueForInsertionInScript(lcValue) + "'" ' Datetime Case "DateTime" ldDate = loDataParameterSQLClient.Value lcValue = "'" + ldDate.Year.ToString + "-" + _ ldDate.Month.ToString.PadLeft(2, "0") + "-" + _ ldDate.Day.ToString.PadLeft(2, "0") + " " + _ ldDate.Hour.ToString.PadLeft(2, "0") + ":" + _ ldDate.Minute.ToString.PadLeft(2, "0") + ":" + _ ldDate.Second.ToString.PadLeft(2, "0") + "'" ' String Case "NVarChar" lcValue = "'" + oApp.SQLServerGetValueForInsertionInScript(lcValue) + "'"And, this may returns something like this: