Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I had a table with 4 columns. newly i altered and added new columns. it shows newly added columns are invalid. i have used newly added columns in SP. SP is complied successfully , but when it is being executed, it throws error.


How to resolve this?
Posted
Comments
Al Moje 29-Dec-11 1:40am    
Show us your code for somebody may help you...

Altering of table sumtimes gives problem if your table contains data
Empty your table and then try again
 
Share this answer
 
The columns in the database are hardly invalid.

Most likely you have a problem in your query, for example an ambiguous column. For example if you're making a join and now you have the same column name in two or more of your tables and yuo haven't used aliases properly, that would generate an error.

Posting the error message would help a great deal.
 
Share this answer
 
new added columns set as allow null.
 
Share this answer
 
Comments
Wendelius 29-Dec-11 2:32am    
Don't add a new solution, instead use the "Have a Question or Comment?" button to send a message to the person who has given you a solution proposal.
There may be an table alias problem. please check carefully.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900