Viewing 15 posts - 31 through 45 (of 111 total)
There would appear to be an error in CASE statement as there are two when 3's ?
December 15, 2014 at 2:08 pm
I am able to create the synonym and select from the table just fine in 2008 R2. The question specifically states the table exists hence the command will work...
September 8, 2014 at 11:37 am
The script has a minor problem in that if a database has multiple data files (.ndf files) then there is a backup command generated for the database once per file....
April 15, 2014 at 1:31 pm
Alex, Nice set of fixes. The procedure had compiled for me, but execution was failing looking for a database named UP. I had another piece of code to...
November 7, 2013 at 2:25 pm
Josha, what is the main difference from this version and the version your wrote in July 2007 and updated in May 2009 that also performs a string search?
May 21, 2013 at 12:41 pm
FYI - running the posted statents using 10.50.4000 I got a response with only the message tab back with the message "Command(s) completed successfully"and 0 rows listed in the bottom...
January 18, 2013 at 1:40 pm
I am not a T-SQL person since I am primarily an Oracle DBA, but I did notice the single quotes and it make me think. The equivilent SQL in...
August 21, 2012 at 9:04 am
The question specifically states 2008+ and on 2008 the syntax is invalid. The first answer is the correct answer, not the answer you indicate.
June 15, 2012 at 7:18 am
Grasshopper, both your posted SQL statements result in invalid length passed to substring errors when I attempted to execute the statements on SQL Server 2008R2 RTM.
- -
HTH -- Mark D...
February 7, 2012 at 12:56 pm
I think the posted query answers the question that was asked which I remember as being how to prove to the auditor via a query that the sa account requires...
November 18, 2011 at 6:42 am
Tested on 2005 and 2008 successfully. It errors on 2000 (no sys.sql_logins table after all)
-- Mark --
November 17, 2011 at 2:03 pm
Now that you have pointed it out the extra 1 is plan as daylight. Here is my version of the query you posted.
select
name
,default_database_name
,is_disabled
,modify_date
from
...
November 17, 2011 at 1:09 pm
Leo, maybe my eyes just cannot make out the difference but where is the difference from your WHERE line and the OR line condition? Should one of the entries...
November 17, 2011 at 11:41 am
Viewing 15 posts - 31 through 45 (of 111 total)