Viewing 15 posts - 6,016 through 6,030 (of 7,608 total)
You might want to give the query below a try, although it will output a given row only once, even if it would have matched multiple conditions in the original...
June 10, 2014 at 10:14 am
2nd log file is 140GB and free space 31GB
Wow, that's a lot of used log space.
Make sure you are taking proper log backups and/or that you don't have an old...
June 10, 2014 at 10:00 am
For databases with a significant number of transactions, I would expect differential backups to speed up the restores somewhat. My reasoning is that applying tran logs requires that every...
June 10, 2014 at 9:58 am
What you really need to do first is add the best clustered index to both tables. Then and only then do you add other, non-clustered, covering indexes if they...
June 9, 2014 at 5:09 pm
If there's a NULL in the "NOT IN" list, no rows will be excluded, so you may be seeing rows -- including without leading zeros -- that you didn't expect...
June 9, 2014 at 5:05 pm
ALTER TRIGGER triggerDeleted
ON [table_name]
AFTER DELETE NOT FOR REPLICATION
AS
SET NOCOUNT ON;
DECLARE @sql nvarchar(max);
SET @sql = (SELECT
'EXEC [procedure_name] ' + CAST(ID AS varchar(10)) + ', '...
June 9, 2014 at 5:00 pm
You're welcome! At least you don't need to change much of 3500 lines of code :-).
June 6, 2014 at 9:14 pm
Sadly, you can't do that directly in SQL Server.
The only way to simulate that would be to use alias data types -- lots of aliases.
June 6, 2014 at 3:22 pm
I think the issue may be that this format of query:
SELECT @variable = column FROM table WHERE ...
leaves the original value of @variable in place if a row is not...
June 6, 2014 at 3:17 pm
Honestly, I'd probably kludge this one if possible.
See if you can add an optional flag as a parameter to the proc to indicate that the first result set is not...
June 6, 2014 at 3:04 pm
Jeff Moden (6/6/2014)
rangu (6/6/2014)
However I haven't got the answer yet, when exactly do we need to go for Table Partition and Page compression....
June 6, 2014 at 2:51 pm
rangu (6/6/2014)
However I haven't got the answer yet, when exactly do we need to go for Table Partition and Page compression. If this...
June 6, 2014 at 2:24 pm
You can only have one clustered index, but the PK does not have to be the clustered index.
When time is available:
1) Drop the existing indexes (Edit: non-clustered first, clustered last)
2)...
June 6, 2014 at 2:08 pm
Lynn Pettis (6/6/2014)
sqldriver (6/6/2014)
sql-lover (6/6/2014)
June 6, 2014 at 2:07 pm
Actually MIN() and MAX() could use an index, even a seek, if the index was keyed on all the GROUP BY columns in the proper order.
June 6, 2014 at 1:40 pm
Viewing 15 posts - 6,016 through 6,030 (of 7,608 total)