Solved

Datatable - adapter

Posted on 2008-06-12
1
876 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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