Viewing 15 posts - 1 through 15 (of 345 total)
Wrong. Hmm. Does the "choose 3" mean choose three data types or choose three options from the selection provided? Apparently the former. Don't tick 3 boxes!
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
June 28, 2016 at 8:31 pm
robert_verell (4/15/2014)
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
March 29, 2016 at 7:52 pm
Markus (4/15/2014)
William Soranno (4/15/2014)
Your senario might work if I had only a few databases to mirror and a few "applications" to change connection strings.
I have 66 databases, and growing, on...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
March 29, 2016 at 7:45 pm
Good tip. I've done this in the past, but not via the service. I've stopped the service, opened a command prompt to the SQL Server program folder, and run the...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
October 26, 2014 at 1:00 pm
"Now, after you take a log backup, could you see a log file bigger than usual?"
No points for me. I perceive there being a difference between a "backup file" and...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
April 15, 2012 at 3:21 pm
Sean Elliott (UK) (11/7/2011)
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
November 7, 2011 at 12:06 pm
I thought this was a very good question. I must admit i spent time debugging the CASE statement in my head to try and determine what it would return -...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
July 21, 2011 at 6:25 pm
Good question. Couple of issues with the construction of it though:
1. Unless the database context is set to tempdb, or you explicitly reference tempdb..sysobjects, you will get no rows returned.
2....
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
November 21, 2010 at 12:56 pm
Like someone else who replied, I shortcircuited the whole thing & counted the delimiters (well, more specifically the spaces between the delimiters), assuming it was an obfuscation question not a...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
July 5, 2010 at 3:29 pm
Good point.
I've never really understood the big fuss over xp_cmdshell being enabled or not. I see how it can be a security risk, and how if SQL security gets...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
June 23, 2010 at 8:56 pm
If you're running it as a SQL Agent job, why not enable xp_cmdshell on the first step, run the utility in the next step then disable xp_cmdshell in the last...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
June 23, 2010 at 7:55 pm
Thanks for the info Hugo. I can now see where it would be useful in a couple of queries I have for some reports - where I was getting...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
May 6, 2010 at 2:46 pm
Good question but just raises another for me - when would you use NULLIF? It may be useful, but I am struggling to see where you would use it....
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
May 2, 2010 at 9:55 pm
This seems to work:
DECLARE @sql4 nvarchar(4000)
DECLARE @sql5 nvarchar(4000)
DECLARE @ParmDefinition nvarchar (500)
DECLARE @ParmDefinition2 nvarchar (500)
DECLARE @Prop int
DECLARE @SrvName sysname
SET @SrvName = N'AServer'
SET @sql5 = N'USE [model]; SELECT @PropOUT2 = FILEPROPERTY (''modeldev'',''SpaceUsed'')'
SET...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
January 28, 2010 at 3:01 pm
To start with, here's solution to your undefined variable error:
DECLARE @sql4 nvarchar(4000)
DECLARE @sql5 nvarchar(4000)
DECLARE @ParmDefinition nvarchar (500)
DECLARE @ParmDefinition2 nvarchar (500)
DECLARE @Prop int
SET @sql5 = N'USE [model]; SELECT @PropOUT2 = FILEPROPERTY...
MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare
January 28, 2010 at 2:35 pm
Viewing 15 posts - 1 through 15 (of 345 total)