I got a compile error here !
using System;
using System.Data.Sql Client;
using System.Data.Sql ;
using System.Collecti ons.Generic;
using System.Text;
namespace PacSoft
class clsUDC
{
//clsADO objADO;
//SqlCommand cmd;
//SqlConnection cnn;
void AddUDC(string sys, string type, string code, string desc)
{
try
{
clsADO objADO = new clsADO();
SqlConnection cnn = new SqlConnection(o bjADO.Connectio nString);
cnn.Open();
SqlCommand cmd = new SqlCommand("pr_ tblUDC_Insert", cnn);
cmd.CommandType = CommandType.Sto reProcedure;
}
catch (Exception e)
{
Console.WriteLi ne(e.Message);
}
WHERE did I go wrong ??
Please assist . Marsh
using System;
using System.Data.Sql Client;
using System.Data.Sql ;
using System.Collecti ons.Generic;
using System.Text;
namespace PacSoft
class clsUDC
{
//clsADO objADO;
//SqlCommand cmd;
//SqlConnection cnn;
void AddUDC(string sys, string type, string code, string desc)
{
try
{
clsADO objADO = new clsADO();
SqlConnection cnn = new SqlConnection(o bjADO.Connectio nString);
cnn.Open();
SqlCommand cmd = new SqlCommand("pr_ tblUDC_Insert", cnn);
cmd.CommandType = CommandType.Sto reProcedure;
}
catch (Exception e)
{
Console.WriteLi ne(e.Message);
}
WHERE did I go wrong ??
Please assist . Marsh
Comment