Viewing 15 posts - 166 through 180 (of 277 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 [ ].
-- Cory
November 6, 2007 at 8:39 am
My guess (note, guess) is that filegroup names cannot start with a number.
-- Cory
November 6, 2007 at 8:10 am
I think you should consider doing your own homework. 🙂
-- Cory
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. ...
-- Cory
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?...
-- Cory
October 8, 2007 at 1:29 pm
Did this work for you?
-- Cory
October 4, 2007 at 6:18 am
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.
-- Cory
October 1, 2007 at 12:27 pm
can you give some sample data that you are seeing?
-- Cory
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...
-- Cory
September 24, 2007 at 12:23 pm
YES, searching scripts / forums / articles was easier before...
Otherwise, I really like it!
-- Cory
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...
-- Cory
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...
-- Cory
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
-- Cory
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...
-- Cory
August 24, 2007 at 10:39 am
search this site I found this:
http://sql-articles.com/articles/lship/fail-lship.htm.
good luck!
-- Cory
August 21, 2007 at 7:51 pm
Viewing 15 posts - 166 through 180 (of 277 total)