Viewing 15 posts - 4,741 through 4,755 (of 8,731 total)
frdrckmitchell7 (7/9/2015)
Thanks Louis, I will see if there is something on SSIS/SSAS that I can use.
Using a column that might vary its name from one run to the other is...
July 9, 2015 at 8:32 am
Maybe you could use dynamic sql for better results as shown in this article: http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
Or you could simply go like this:
WHERE parameter1 = @parameter1
AND (parameter2 = @parameter2 OR ISNULL(@parameter2,'')...
July 8, 2015 at 3:35 pm
That seems to be because the NULL checkbox isn't selected. You could allow blanks to prevent this problem.
July 8, 2015 at 3:00 pm
haiao2000 (7/8/2015)
July 8, 2015 at 2:35 pm
I'd use a suggestion very similar to Leo's code. I'm not sure if that's the update format that can cause unexpected performance problems with no logical reason.
UPDATE o
SET obsolete =...
July 8, 2015 at 12:01 pm
Actually, you don't need it. Just create it on the fly as part of the query.
WITH CTE AS(
SELECT p.Prefix
...
July 8, 2015 at 11:50 am
I use the IFCode tags which are visible to the left of the message text box. For SQL code, I use the [ code="sql"][/code] with no space. You can also...
July 8, 2015 at 11:39 am
I'm not sure which of the 2 HAVING clauses you need so I'm including both so you can test.
I also changed the pivot approach to a cross tabs which is...
July 8, 2015 at 10:37 am
If you're using something else for the front-end, such as SSRS or any other reporting tool, you should format the label on that tool. It's a lot easier to maintain...
July 8, 2015 at 9:50 am
After you understand how a tally table works, you can play with other variants such as views or functions which might include zero reads.
CREATE FUNCTION dbo.NumbersRange
( ...
July 8, 2015 at 9:30 am
It depends.
The best way would be to have your DOB column in your table as a date data type. This will validate that the data is correct and generate an...
July 7, 2015 at 8:30 pm
mtlsql (7/7/2015)
You can also query sys.sydepends for more information. This is nice since you can join to it in SQL statements, unlike a stored procedure. There's more info at:
Which is...
July 7, 2015 at 8:00 pm
sqlguy-736318 (7/7/2015)
July 7, 2015 at 7:46 pm
Are you looking for something like this?
EXEC sp_depends 'Schema.Object'
July 7, 2015 at 1:40 pm
The best reason that I've encountered is consistency. We can't treat NULL values the same way as other values when comparing them. What would you expect when you use SomeValue...
July 7, 2015 at 10:33 am
Viewing 15 posts - 4,741 through 4,755 (of 8,731 total)