Link to home
Start Free TrialLog in
Avatar of johnkainn
johnkainn

asked on

Datatable - adapter

In AppCode I call a Sql Database. I return DataAdapter - see attached file.
But how can I add a new column to the Adapter? Its value should be 2.
Thanks
public SqlDataAdapter GetTest()
    {
        SqlDataAdapter adapter = new SqlDataAdapter("TestSelect", connection);
        adapter.SelectCommand.CommandType = CommandType.StoredProcedure;
        return adapter;
    }

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Melih SARICA
Melih SARICA
Flag of Türkiye 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