Click here to Skip to main content
15,893,668 members
Home / Discussions / Database
   

Database

 
Questionhow do i access a column from database Pin
ashima143-Sep-05 20:22
ashima143-Sep-05 20:22 
AnswerRe: how do i access a column from database Pin
Colin Angus Mackay3-Sep-05 21:31
Colin Angus Mackay3-Sep-05 21:31 
QuestionUpdate DataSet Pin
Zeeshan Gulzar3-Sep-05 4:15
Zeeshan Gulzar3-Sep-05 4:15 
AnswerRe: Update DataSet Pin
Besinci4-Sep-05 9:38
Besinci4-Sep-05 9:38 
GeneralRe: Update DataSet Pin
Zeeshan Gulzar6-Sep-05 5:51
Zeeshan Gulzar6-Sep-05 5:51 
QuestionVB and remote database(web) Pin
aluizs2-Sep-05 18:03
aluizs2-Sep-05 18:03 
Questioninset a Datacolumn Pin
PaulaM2-Sep-05 3:23
PaulaM2-Sep-05 3:23 
AnswerRe: inset a Datacolumn Pin
Besinci2-Sep-05 9:37
Besinci2-Sep-05 9:37 
Try YourTable.Columns 's add method where you define a new DataColumn..

But.. this does not guaranty the insert at in the beginneng of the columns, this depends on the existing columns in your table. -To do that
first you have to empty the table for columns YourTable.Clear method will do this, -but before you do this you have to temporarily store any existing columns. then you add your new column and afterwards add the other columns to the table..

Here, code sample for your pupose..

System.Data.DataTable yourTable= new System.Data.DataTable("YourTable");

System.Collections.ArrayList myExistingColumns = new System.Collections.ArrayList();
foreach (System.Data.DataColumn column in yourTable.Columns) //keep any axisting columns..
{
myExistingColumns.Add(column);
}

yourTable.Columns.Clear(); // remove all columns.
yourTable.Columns.Add(new System.Data.DataColumn("MyNewColumn")); //add a new column at the ordinal 0.

foreach (object column in myExistingColumns) //let's movve the existing column back to the table
{
yourTable.Columns.Add((System.Data.DataColumn)column);
}

Questionupdating the DB Pin
minkinin2-Sep-05 3:16
minkinin2-Sep-05 3:16 
AnswerRe: updating the DB Pin
Besinci2-Sep-05 10:04
Besinci2-Sep-05 10:04 
GeneralRe: updating the DB Pin
minkinin4-Sep-05 20:20
minkinin4-Sep-05 20:20 
GeneralRe: updating the DB Pin
Besinci4-Sep-05 21:24
Besinci4-Sep-05 21:24 
GeneralRe: updating the DB Pin
minkinin4-Sep-05 22:27
minkinin4-Sep-05 22:27 
GeneralRe: updating the DB Pin
Besinci5-Sep-05 7:49
Besinci5-Sep-05 7:49 
GeneralRe: updating the DB Pin
minkinin6-Sep-05 23:38
minkinin6-Sep-05 23:38 
QuestionI need to load custom data to Analysis Server (MS-OLAP) without going through any OLE DB Provider. Pin
kuldeepjangir2-Sep-05 3:13
kuldeepjangir2-Sep-05 3:13 
QuestionSqlDataAdapter question.. What.... Pin
Besinci2-Sep-05 2:40
Besinci2-Sep-05 2:40 
AnswerRe: SqlDataAdapter question.. What.... Pin
Luis Alonso Ramos2-Sep-05 17:26
Luis Alonso Ramos2-Sep-05 17:26 
GeneralRe: SqlDataAdapter question.. What.... Pin
Besinci3-Sep-05 2:06
Besinci3-Sep-05 2:06 
GeneralRe: SqlDataAdapter question.. What.... Pin
Luis Alonso Ramos3-Sep-05 6:28
Luis Alonso Ramos3-Sep-05 6:28 
QuestionDatabinding Problem In My UserControl Pin
User 20930732-Sep-05 2:39
User 20930732-Sep-05 2:39 
QuestionI want to add,delete,save my project ... Pin
mostafa_h1-Sep-05 23:07
mostafa_h1-Sep-05 23:07 
QuestionHow will I know that DSN is not pointing to any database? Pin
PrashantJ1-Sep-05 21:17
PrashantJ1-Sep-05 21:17 
AnswerRe: How will I know that DSN is not pointing to any database? Pin
Michael Potter2-Sep-05 5:25
Michael Potter2-Sep-05 5:25 
QuestionData Isolation and Transaction Isolation Pin
devvvy1-Sep-05 17:37
devvvy1-Sep-05 17:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.