Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear Sir

I Tried many times when i try to modify in database in table field so it shows error not allowed to add any field like i forgot two field in my a customer table

Price and sale date then when i try to add again after any test entry so it shows always error
Posted
Updated 2-Aug-14 0:45am
v2
Comments
prasanna.raj 2-Aug-14 6:54am    
give me the error msg.
irfanansari 2-Aug-14 6:58am    
sir how can i give u it is can capture by keyboard in format of a image

 
Share this answer
 
Comments
irfanansari 3-Aug-14 7:45am    
but sir how can i add culum in center or after any particulate culum like
first name
last name
then i want to add after first name middle name
Hi,

There is no issue if you will add columns in last, all you have to make changes in your select statement.

Anyway if you still want to do it, you can do it as mentioned below.

1. using SQL Server Management Studio

2. you can also check below steps
a. add column to your original table i.e. your_table
b. make use of Select (order of your columns) into table_test from your_table (optional) Order by anycol
c. drop your original table i.e. your_table
d. Rename your new table i.e. table_test as per your original table name.



Choice is yours.


Hope this will help you.


Cheers
 
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