Viewing 15 posts - 166 through 180 (of 276 total)
declare @newfilegroup varchar(60)
set @newfilegroup = substring(CONVERT(VARCHAR, DATEPART(YEAR, GETDATE())), 3, 4)
EXEC ('ALTER DATABASE northwind ADD FILEGROUP [' + @newfilegroup + ']')
It needs to be wrapped in the [ ].
November 6, 2007 at 8:39 am
My guess (note, guess) is that filegroup names cannot start with a number.
November 6, 2007 at 8:10 am
I think you should consider doing your own homework. 🙂
October 31, 2007 at 2:04 pm
Oh jeez, somehow I missed these replys.
homebrew01: The issue is that, as Paul Randal said, the metadata requires X for space, even tho, it may only use X-Y. ...
October 26, 2007 at 7:09 am
Okay - I have a followup question, as I am trying to do this myself, only from standard 2005 to enterprize 2005 - What sort of downtime could be expected?...
October 8, 2007 at 1:29 pm
http://cwashington.netreach.net/depo/view.asp?Index=869
I think I originally found this somewhere on SSC, but here is the link:
It is not TSQL based, but can be modified to get what you want.
October 1, 2007 at 12:27 pm
can you give some sample data that you are seeing?
September 26, 2007 at 7:02 am
Hey Steve -
I have been working in this all day, and I realized that when I am in a forum, it states the time at the bottom,
"All times...
September 24, 2007 at 12:23 pm
YES, searching scripts / forums / articles was easier before...
Otherwise, I really like it!
September 24, 2007 at 10:19 am
I cannot find the SEARCH - I see the goggle search, but I liked the search articles / scripts / forums...
September 24, 2007 at 10:05 am
I use a variety of tools from Idera. Diagnostic Manager for quick overview of DB Perfomance, Mobile Manager for overview and administration on the go, Change Management for watching what...
August 29, 2007 at 7:29 am
This looks really good...now, I need to understand what infomation I have here...still looking.
THANKS!
C
August 27, 2007 at 7:35 am
Because mistakes tend to be made pushing scripts like this, I require a USE <DBNAME> to start all the scripts I run...its safer, and, would solve this issue...
August 24, 2007 at 10:39 am
August 21, 2007 at 7:51 pm
Viewing 15 posts - 166 through 180 (of 276 total)