Viewing 15 posts - 1 through 15 (of 17 total)
select *
from Audit
where detail like '%2%[0-9]%'
April 19, 2016 at 4:25 pm
I cry foul!!! As James Lean has pointed out, the INFORMATION_SCHEMA.ROUTINES returns both stored procedures AND functions!!! Without the additional filtering, it would be analogous to saying that "SELECT *...
January 14, 2016 at 5:01 pm
What's the datatype of [Inventory Posting Group]? What values are contained in it? Are any of them 'B'?
December 17, 2015 at 3:23 pm
I ran into the nvarchar(max) issue where the returned value is NULL. If I run code (four part name) at the linked server, it returns the text; if I run...
December 3, 2015 at 11:17 am
Here is what I came up with. It does return an extra line of data and I'm not clear which one of us has the correct output. C'est la vie!
;with
SummedByYearMonth
as(
select
AccountID,
InvoiceYearMonth,
sum(Amount)...
November 24, 2015 at 5:03 pm
One of the answers is "Error" and it does throw an error. The answer listed as correct is "220" but the results are:
"Msg 220, Level 16, State 2, Line 2
Arithmetic...
July 30, 2015 at 4:31 pm
Here's another way:select uc.UserName, uc.CurriculumKey -- Select the user's...
from UserCurriculum uc
where exists ( ...
October 1, 2012 at 5:32 pm
In re: "it's the selectivity of the data that is what the SQL engine uses to determine whether to use an index or not."
For SELECTs that would be true but...
September 28, 2012 at 4:56 pm
I think your task is complicated, in this instance, by the fact that you need to be local to the SQL Server when accessing the file system, which a CREATE...
September 28, 2012 at 4:51 pm
Bring it online first, take the backup and take it back offline.
August 31, 2012 at 9:59 am
Is the list of databases static or are you going to need to modify the job step every time a database is added or dropped from your server? If it's...
August 31, 2012 at 9:55 am
You could return the two calculated values via parameters by using the "OUTPUT" keyword.
February 3, 2012 at 5:44 pm
For SQL Logins, there are check boxes in SSMS that define whether the password expires and if it needs to be changed on the first usage. Set these appropriately and...
February 3, 2012 at 5:26 pm
We did something similar to Gianluca's trigger code. The solution works well for us but allow me to make a couple of suggestions:
1) We define the set of Users who...
February 3, 2012 at 5:21 pm
Viewing 15 posts - 1 through 15 (of 17 total)