Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer