Solved

Datatable - adapter

Posted on 2008-06-12
1
879 Views
Last Modified: 2013-12-17
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

0
Comment
Question by:johnkainn
1 Comment
 
LVL 19

Accepted Solution

by:
Melih SARICA earned 125 total points
ID: 21774475
add column to datatable not to adapter
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now