Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
mattt
Posting Yak Master
194 Posts |
Posted - 2008-01-15 : 11:16:17
|
| Hi,I have a stored procedure which creates a temp table and then returns the values therein with a select statement.On running this SP I get the following error:Insert Error: Column name or number of supplied values does not match table definition.Which would be fine except that it's happening on a select statement!Anyone know what might be causing an Insert Error to come back on a Select?Cheers,Matt |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-01-15 : 11:54:36
|
The number of columns return from the SELECT statement must be same as the columns lists specified in the INSERT statement.Post your query here. KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
mattt
Posting Yak Master
194 Posts |
Posted - 2008-01-15 : 12:05:07
|
| Sorted it. The error wasn't where the message told me it was - it was in the SP calling the SP which was "allegedly" the source of the problem. |
 |
|
|
|
|
|