DECLARE @SearchPhrase nvarchar(1000) |
Adding fuel to my passion on SQL Server
DECLARE @SearchPhrase nvarchar(1000) |
1: SELECT destination_database_name,max(restore_date) as restore_date
2: FROM msdb.dbo.restorehistory
3: WHERE destination_database_name = 'testDB’ ---- Place your database name here
4: GROUP BY destination_database_name
The result will look like;
destination_database_name restore_date
testDB 2013-04-29 11:49:19.940
In SQL Server 2008 Management Studio,
We can not do
•Change the Allow Nulls setting for a column
•Reorder the columns
•Change the column data type
•Add a new column
How to fix / Resolution:
•Go to Tools -> Options -> Designers -> Tables and Designers
•Uncheck the Prevent Saving Changes that require table re-creation