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 |
|
rozezard_862
Starting Member
2 Posts |
Posted - 2007-06-01 : 12:17:52
|
| hi,i have a DB and it has some tables that the tables has related link (diagram).now when i wanna to change a table's field , the Sql Server errors that the table is not empty.when i try to delete the table's content , Sql server errors that the table is use a relation with another table.so can i change a table's structure?by the way before i forget , the Sql Server's error is below:'UserManagement' table- Unable to modify table. ALTER TABLE only allows columns to be added that can contain nulls, or have a DEFAULT definition specified, or the column being added is an identity or timestamp column, or alternatively if none of the previous conditions are satisfied the table must be empty to allow addition of this column. Column 'isadmin' cannot be added to non-empty table 'UserManagement' because it does not satisfy these conditions.thanks,M.H.H |
|
|
dinakar
Master Smack Fu Yak Hacker
2507 Posts |
Posted - 2007-06-01 : 12:31:13
|
| And how are you trying to ALTER the table? What is the script you have? Dinakar Nethi************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/ |
 |
|
|
rozezard_862
Starting Member
2 Posts |
Posted - 2007-06-02 : 02:37:05
|
| hi,thanks for ur attention,i use "delete from tablename" statement,so my problem is solved.thanks,M.H.H |
 |
|
|
|
|
|