dbTalk Databases Forums  

Insert Error: Column name or number of supplied values does not ma

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Insert Error: Column name or number of supplied values does not ma in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dutchieboy
 
Posts: n/a

Default Insert Error: Column name or number of supplied values does not ma - 07-29-2005 , 07:07 PM







I get the above error when I run a very simple DTS package to copy a
database from my production server to my development server. This has always
worked in the past. Unfortunately, it does not tell me which table is causing
the error (and 200 tables, so I don't want to run it for each one). Using the
database import/export wizard to do the copying gives the same problem.

I ran dbcc checkdb, but that reports no problems and did not help. Any
suggestions?

Thanks
--
Jan

Reply With Quote
  #2  
Old   
Narayana Vyas Kondreddi
 
Posts: n/a

Default Re: Insert Error: Column name or number of supplied values does not ma - 07-30-2005 , 05:34 AM






This error has nothing to do with corruption, but just indicating that the
table structures are different between your prod and dev SQL Servers.

Can you run the DTS package interactively and see on which table you are
failing?

Or can you add a log file for the package and capture the output?

You could also use Profiler to see where your package is failing.
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/



"Dutchieboy" <jang-donotspammme (AT) intertecservices (DOT) com> wrote

Quote:
I get the above error when I run a very simple DTS package to copy a
database from my production server to my development server. This has
always
worked in the past. Unfortunately, it does not tell me which table is
causing
the error (and 200 tables, so I don't want to run it for each one). Using
the
database import/export wizard to do the copying gives the same problem.

I ran dbcc checkdb, but that reports no problems and did not help. Any
suggestions?

Thanks
--
Jan



Reply With Quote
  #3  
Old   
Dutchieboy
 
Posts: n/a

Default Re: Insert Error: Column name or number of supplied values does no - 07-30-2005 , 11:06 AM



Hi Narayana , thanks for answering my post.

I did use a log file which gets the following:

Step Error Source: Microsoft SQL-DMO (ODBC SQLState: 21S01)
Step Error Description:[Microsoft][ODBC SQL Server Driver][SQL Server]Insert
Error: Column name or number of supplied values does not match table
definition.
Step Error code: 800400D5
Step Error Help File:SQLDMO80.hlp
Step Error Help Context ID:1131

So, that does not tell me where it is failing.

As for a mismatch between prod and dev, when I run the database import
wizard, I specify to drop the destination tables first - so how can there be
a mismatch?

As to running interactively, if you don't mean using the database wizard, I
don't know how to do that.


--
Jan


"Narayana Vyas Kondreddi" wrote:

Quote:
This error has nothing to do with corruption, but just indicating that the
table structures are different between your prod and dev SQL Servers.

Can you run the DTS package interactively and see on which table you are
failing?

Or can you add a log file for the package and capture the output?

You could also use Profiler to see where your package is failing.
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/



"Dutchieboy" <jang-donotspammme (AT) intertecservices (DOT) com> wrote in message
news:B4B2EB55-091D-4088-A5C9-C6EE908BAE6E (AT) microsoft (DOT) com...

I get the above error when I run a very simple DTS package to copy a
database from my production server to my development server. This has
always
worked in the past. Unfortunately, it does not tell me which table is
causing
the error (and 200 tables, so I don't want to run it for each one). Using
the
database import/export wizard to do the copying gives the same problem.

I ran dbcc checkdb, but that reports no problems and did not help. Any
suggestions?

Thanks
--
Jan




Reply With Quote
  #4  
Old   
Gopalan
 
Posts: n/a

Default RE: Insert Error: Column name or number of supplied values does not ma - 08-04-2005 , 01:25 AM



The simple way is select the option to write the log file on dts only.

"Dutchieboy" wrote:

Quote:
I get the above error when I run a very simple DTS package to copy a
database from my production server to my development server. This has always
worked in the past. Unfortunately, it does not tell me which table is causing
the error (and 200 tables, so I don't want to run it for each one). Using the
database import/export wizard to do the copying gives the same problem.

I ran dbcc checkdb, but that reports no problems and did not help. Any
suggestions?

Thanks
--
Jan

Reply With Quote
  #5  
Old   
Dutchieboy
 
Posts: n/a

Default RE: Insert Error: Column name or number of supplied values does no - 08-04-2005 , 12:30 PM



Sorry, I'm not a professional db admin. How do I do that?
--
Jan


"Gopalan" wrote:

Quote:
The simple way is select the option to write the log file on dts only.

"Dutchieboy" wrote:


I get the above error when I run a very simple DTS package to copy a
database from my production server to my development server. This has always
worked in the past. Unfortunately, it does not tell me which table is causing
the error (and 200 tables, so I don't want to run it for each one). Using the
database import/export wizard to do the copying gives the same problem.

I ran dbcc checkdb, but that reports no problems and did not help. Any
suggestions?

Thanks
--
Jan

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.