Viewing 15 posts - 4,651 through 4,665 (of 8,731 total)
Have you checked if anything is blocking this query, or if you have an adequate index?
July 21, 2015 at 8:16 am
Wow, that's a lot of data (to be considered a sample).
I'll give it a try when I get home in the afternoon, because I want to do some tests that...
July 21, 2015 at 8:14 am
What's wrong with keeping it simple with a single SELECT statement?
DECLARE @NACELLE varchar(max) = 'NULL, NULL, NULL, NULL',
@timeint int = 5; --time...
July 21, 2015 at 8:00 am
Using CHARINDEX and SUBSTRING would be one option. To simplify it, you might want to use CROSS APPLY.
If You want more help, please post your data in a consumable format...
July 21, 2015 at 7:31 am
Just remember that if there's human input, there's a threat. It doesn't matter if it comes from outside or inside of the company. Protect yourself against any way that a...
July 21, 2015 at 7:20 am
.Netter (7/21/2015)
I would have multiple entries / statuses in one table which may become a nightmare to manage / control.
Why is that a problem? Tables are designed to have...
July 21, 2015 at 7:11 am
As mentioned, you need to use dynamic SQL, but with your current code, you're wide open for SQL Injection. Here's an example on how could you do it.
CREATE PROCEDURE EP_Conterbalances
(
@Start_Date_For_Totals_Date...
July 21, 2015 at 6:59 am
If you only need the Ids, here's another option.
SELECT ID
FROM Test
WHERE Type = 'Non-IT'
EXCEPT
SELECT ID
FROM Test
WHERE Type = 'Manager'
July 21, 2015 at 6:48 am
The payment table looks almost as a fact table to me. Just remove the payment_id and invoice_id, and group by the other columns. You need to create a dimension for...
July 21, 2015 at 6:35 am
A little tough to answer before the morning coffee, but got it right.
It's a nice question, thanks.
July 21, 2015 at 6:16 am
You might want to review your code as it has some issues that might cause problems. Such as the use of sp_MSforeachdb (Check an alternative[/url]), functions on columns in WHERE...
July 20, 2015 at 2:04 pm
I can't test right now, but instead of doing an insert an update in here:
INSERT @FinalResult (seq_num, database_name, iuser_name, principal_type_desc, role_name)
SELECT ROW_NUMBER() OVER(PARTITION BY database_name ORDER BY database_name ASC) AS...
July 20, 2015 at 1:28 pm
Foreign keys can improve performance. It might not always happen, but there's a possibility.
http://www.scarydba.com/2010/11/22/do-foreign-key-constraints-help-performance/
Triggers can prevent deletes in general. This is good if you want that. If you only want...
July 20, 2015 at 11:10 am
Ed Wagner (7/20/2015)
Eirikur Eiriksson (7/20/2015)
SQLRNNR (7/20/2015)
Ed Wagner (7/20/2015)
BWFC (7/20/2015)
Eirikur Eiriksson (7/20/2015)
Ed Wagner (7/20/2015)
djj (7/20/2015)
Eirikur Eiriksson (7/18/2015)
jasona.work (7/17/2015)
djj (7/17/2015)
crookj (7/17/2015)
Ed Wagner (7/17/2015)
Jeff Moden (7/16/2015)
SQLRNNR (7/16/2015)
clamfn_clam 😀
Oyster
Pismo (The Great Clam Festival)
Geoduck
Dirty
Read
Random
Sequential
Waterfall
Cataract
Stigmatism
fn_eye
tvfn_eyes
Video Game...
July 20, 2015 at 10:06 am
Different fill factor? Difference on index fragmentation?
July 20, 2015 at 8:06 am
Viewing 15 posts - 4,651 through 4,665 (of 8,731 total)