Viewing 15 posts - 46 through 60 (of 75 total)
thanks. yes, i knew it created a snapshot, and needs extra space to do that. My concern is why it didn't stop, after the first alert went out. The dbcc...
August 15, 2013 at 3:16 pm
is this what you are looking for:
msdb.dbo.agent_datetime($(ESCAPE_SQUOTE(STRTDT)), $(ESCAPE_SQUOTE(STRTTM)))
June 27, 2013 at 1:02 pm
You are in a loop because you don't have a fetch next in your loop. Also, move the DECLARE @return_value int outside the loop. And you don't need the select,...
October 1, 2012 at 12:51 pm
it also appears like you are missing a primary key, thus allowing multiple rows with the same empid to be inserted.
As suggested, ddl, data, and expected results would be helpful.
Leonard
August 1, 2012 at 12:51 pm
You really only need to reorganize or rebuild, depending on how much fragmentation you have on your indexes, although you can do it as often as you like, if you...
July 27, 2012 at 1:14 pm
Setting aside why you may or may not need a cursor, what you need to do is:
Either:
select @sum =
CASE
WHEN (@cslPricingFactorRef = @90000119) THEN @Avamel
else
0 end...
July 10, 2012 at 1:17 pm
I finally got it to do what I wanted.
When I populate the string, I had to do this:
SET @Command = N'--My Comment
SELECT GETDATE()'
Not this:
SET @Command = N'--My Comment ' +...
June 27, 2012 at 1:43 pm
Just as an aside, if you are looking to defragment your indexes, try this: http://ola.hallengren.com/
Leonard
June 26, 2012 at 10:55 am
This looks like you don't have a default profile in your Database Mail.
Right click Database Mail, in SSMS.
Click Next.
Select the Manage profile security option.
Click Next.
On the Public Profiles tab, select...
June 8, 2012 at 12:02 pm
not sure if this will help, but check this out.
http://www.sqlservercentral.com/articles/Tally+Table/72993/
has a great function for splitting comma delimited rows.
Big thanks to Jeff Moden.
Leonard
May 21, 2012 at 1:50 pm
I actually prefer my model database to be in Simple mode. If I need full recovery, I change it, when I create a new database, then I change my...
December 20, 2011 at 8:53 am
thanks for that. I considered it, but thought there might be a way to do it through policy. I haven't used them before, so thought this might be...
July 1, 2011 at 10:56 am
That myth should have died in sql 7. Sql 11 is coming out and it's not anywhere as near as dead as I'd like to see it!
yep, like I said,...
June 23, 2011 at 12:53 pm
I was always taught to use the create table, insert method. not because it is faster, but because it blocks the sysobjects while the table is being created and...
June 23, 2011 at 6:51 am
There are a couple of things you can do. As stated, Link Servers can be really bad performers. We have them, I am slowly removing them.
Replication...
April 22, 2011 at 5:34 am
Viewing 15 posts - 46 through 60 (of 75 total)