Click here to Skip to main content
15,886,806 members
Home / Discussions / Database
   

Database

 
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 
GeneralRe: Executing Scripts In SQL Server 2000 Pin
Steven Campbell15-Apr-05 8:52
Steven Campbell15-Apr-05 8:52 
GeneralRe: Executing Scripts In SQL Server 2000 Pin
azam31617-Apr-05 19:30
azam31617-Apr-05 19:30 
GeneralReplication Pin
Albert Pascual13-Apr-05 13:27
sitebuilderAlbert Pascual13-Apr-05 13:27 
GeneralRe: Replication Pin
Steven Campbell14-Apr-05 7:38
Steven Campbell14-Apr-05 7:38 
GeneralRe: Replication Pin
_lakshmi20-Apr-05 23:12
_lakshmi20-Apr-05 23:12 
GeneralInsert a file of 10MB into an SQL 2000 Server Table Pin
anderslundsgard13-Apr-05 4:49
anderslundsgard13-Apr-05 4:49 
GeneralRe: Insert a file of 10MB into an SQL 2000 Server Table Pin
Albert Pascual13-Apr-05 6:12
sitebuilderAlbert Pascual13-Apr-05 6:12 
GeneralRe: Insert a file of 10MB into an SQL 2000 Server Table Pin
Scott Serl13-Apr-05 9:16
Scott Serl13-Apr-05 9:16 

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.