Click here to Skip to main content
15,915,768 members
Home / Discussions / Database
   

Database

 
GeneralSum on a portion of a column Pin
Esmo200015-Apr-05 9:50
Esmo200015-Apr-05 9:50 
GeneralRe: Sum on a portion of a column Pin
Colin Angus Mackay15-Apr-05 9:57
Colin Angus Mackay15-Apr-05 9:57 
GeneralDatabase SQL Syntax Comparison Pin
loane15-Apr-05 8:02
loane15-Apr-05 8:02 
GeneralRe: Database SQL Syntax Comparison Pin
loane15-Apr-05 8:18
loane15-Apr-05 8:18 
GeneralAS400 Connection using ADO.Net Pin
directred15-Apr-05 4:49
directred15-Apr-05 4:49 
GeneralRe: AS400 Connection using ADO.Net Pin
Colin Angus Mackay15-Apr-05 11:47
Colin Angus Mackay15-Apr-05 11:47 
GeneralExport ms sql server 2005 to .sql Pin
djkno315-Apr-05 3:55
djkno315-Apr-05 3:55 
GeneralRe: Export ms sql server 2005 to .sql Pin
Colin Angus Mackay15-Apr-05 11:49
Colin Angus Mackay15-Apr-05 11:49 
GeneralRe: Export ms sql server 2005 to .sql Pin
djkno315-Apr-05 13:27
djkno315-Apr-05 13:27 
GeneralRe: Export ms sql server 2005 to .sql Pin
Colin Angus Mackay15-Apr-05 23:16
Colin Angus Mackay15-Apr-05 23:16 
GeneralRe: Export ms sql server 2005 to .sql Pin
djkno316-Apr-05 3:51
djkno316-Apr-05 3:51 
GeneralRe: Export ms sql server 2005 to .sql Pin
Mike Dimmick18-Apr-05 1:09
Mike Dimmick18-Apr-05 1:09 
GeneralRe: Export ms sql server 2005 to .sql Pin
djkno318-Apr-05 1:25
djkno318-Apr-05 1:25 
GeneralColumn <Name> does not belong to Table <name> exception Pin
GostWryter15-Apr-05 2:36
GostWryter15-Apr-05 2:36 
GeneralRe: Column <Name> does not belong to Table <name> exception Pin
Colin Angus Mackay15-Apr-05 9:53
Colin Angus Mackay15-Apr-05 9:53 
GeneralRe: Column <Name> does not belong to Table <name> exception Pin
Luis Alonso Ramos15-Apr-05 11:15
Luis Alonso Ramos15-Apr-05 11:15 
Colin Angus Mackay wrote:
"this" has no associated context as you have not actually given an error message.

Yes he has, it's in the subject line Poke tongue | ;-P

Seriously, while looking at the code, I would expect that it would generate an "Object instance not set to an object" exception instead of that column not found in table.

For GostWryter, yes, the solution given by Colin should fix your problem. A little more explanation. You need to use the DataTable to create a new DataRow so the row contains the table's schema (columns for example), even if the row itself is not in the table yet (that's why you Add it to the Rows collection later.)

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!

GeneralRe: Column <Name> does not belong to Table <name> exception Pin
Colin Angus Mackay15-Apr-05 11:43
Colin Angus Mackay15-Apr-05 11:43 
GeneralRe: Column <Name> does not belong to Table <name> exception Pin
GostWryter16-Apr-05 2:56
GostWryter16-Apr-05 2:56 
GeneralReporting Service Pin
sukasukabo15-Apr-05 1:40
sukasukabo15-Apr-05 1:40 
QuestionHow to create and copy tables Pin
ben214-Apr-05 13:19
ben214-Apr-05 13:19 
AnswerRe: How to create and copy tables Pin
turbochimp14-Apr-05 17:12
turbochimp14-Apr-05 17:12 
GeneralRe: How to create and copy tables Pin
ben219-Apr-05 11:50
ben219-Apr-05 11:50 
GeneralExecuting Scripts In SQL Server 2000 Pin
azam31614-Apr-05 3:32
azam31614-Apr-05 3:32 
GeneralRe: Executing Scripts In SQL Server 2000 Pin
Steven Campbell14-Apr-05 7:43
Steven Campbell14-Apr-05 7:43 
GeneralRe: Executing Scripts In SQL Server 2000 Pin
azam31614-Apr-05 19:06
azam31614-Apr-05 19:06 

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.