Link to home
Start Free TrialLog in
Avatar of Rama Tito
Rama TitoFlag for Malaysia

asked on

Function sms_rpt.IDENT_CURRENT does not exit.

Hi i do encounter is error "Function sms_rpt.IDENT_CURRENT does not exit."


private void LastRowNo()
        {
            InitialRecord = LastRecord;

            string cmd = "Select IDENT_CURRENT('mastersmsdb')";
            myconint.Open();
            MySqlCommand checkcmd = new MySqlCommand(cmd, myconint);
            LastRecord = Convert.ToInt32(checkcmd.ExecuteScalar());                    // <--- error point over here.

            if (myconint.State == ConnectionState.Open)
                myconint.Close();

            lblSSNewRecord.Text = "New Incoming Record :" + Convert.ToString(LastRecord - InitialRecord );
            lblSSExistingRecord.Text = "Existing Record : " + Convert.ToString(InitialRecord );
ASKER CERTIFIED SOLUTION
Avatar of johanntagle
johanntagle
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial