Showing posts with label alter table. Show all posts
Showing posts with label alter table. Show all posts
Wednesday, 19 November 2014
Can not alter table tsql
If you find the following does not work
Alter table Table_name modify COLUMN column_name varchar(101);
Then try
Alter table Table_name Alter COLUMN column_name varchar(101);
This works on sql server 2005
Related
Friday, 7 November 2014
Cannot Alter Table Being Used For Replication
If you have a table you wish to change that is being replicated you may have trouble changing it and get an error saying that Cannot alter the table 'Table Name' because it is being used for replication.
To get round this I stopped the replication job then tried to change the table through management studio but this still failed. I then opened a query window and tried to alter the table with a script
ALTER TABLE table name ADD column_b VARCHAR(20) NULL ;
and bingo it worked.
Subscribe to:
Posts (Atom)
Multi Point USB Charger
USB Plug Charger, 4-Port USB Fast Charger Plug with 33W Intelligent Quick Charge 3.0 Wall Charger, Multi USBPower Adapter UK Fast Charging...
-
USB Plug Charger, 4-Port USB Fast Charger Plug with 33W Intelligent Quick Charge 3.0 Wall Charger, Multi USBPower Adapter UK Fast Charging...
-
Today, emergencies happen often. Below is a list of emergency supplies that you should have available. This list is not made in stone. For...
-
If you have a Samsung phone or pad and the keyboard is set to Google give the Samsung one a try. Just go into the keyboard settings and...