Viewing 15 posts - 1,291 through 1,305 (of 2,648 total)
I don't think it'd a good idea to have more than one log file for a database:
https://www.sqlskills.com/blogs/paul/multiple-log-files-and-why-theyre-bad/
there's one exception - your log file grows stupidly big and...
November 22, 2019 at 3:23 pm
I don't think it'd a good idea to have more than one log file for a database:
https://www.sqlskills.com/blogs/paul/multiple-log-files-and-why-theyre-bad/
November 22, 2019 at 1:10 pm
Try doing
select TOP (50000) * from EXT_data_Hist_TbL
on each database, without anything in the WHERE or ORDER BY, and see how many reads it does.
November 21, 2019 at 7:55 pm
I think this is a direct conversion of your SQL, just subtracting 2 inline SQL statements:
SELECT (SELECT count(p.[peopleId])
...
November 21, 2019 at 4:09 pm
Grab a copy of NGrams8k and you can do this:
Declare @Temp Table(SomeId INT IDENTITY, [Data] VarChar(8000))
Insert @Temp ([Data])
Values('hello my name is john 07999999999 smith...
November 21, 2019 at 3:49 pm
Grab a copy of NGrams8k and you can do this:
Declare @Temp Table(SomeId INT IDENTITY, [Data] VarChar(8000))
Insert @Temp ([Data])
Values('hello my name is john 07999999999 smith 07888888888 this...
November 21, 2019 at 3:04 pm
Hi,
There is a maximum of three occurrences.
I want the output to be the numbers separated by a comma.
07999999999, 07888888888
Thanks,
Paul
Once you have the numbers in separate rows you can make...
November 21, 2019 at 2:07 pm
I'm assuming that rows are added roughly in CREATE_DATE order. That means you will find the earliest rows on db1 very quickly as no rows have been deleted.
On db2 you...
November 21, 2019 at 1:59 pm
A recursive CTE will allow you to select more than one number from a line
DROP TABLE #t1
go
CREATE TABLE #t1
(
SomeText VARCHAR(500)
);
INSERT #t1
(
...
November 21, 2019 at 1:53 pm
How long does it take to do the select on just a small not null column with the same query on both databases? e.g.:
select TOP (50000) CREATE_DATE
from...
November 21, 2019 at 11:44 am
I didn't mess with any indexes on the table you provided.
Here are a few methods:
Update Windowed SUM/COUNT using ROWS BETWEEN
/*-- ****************************************************************************************
-- Update Windowed SUM/COUNT using ROWS BETWEEN
--...
November 20, 2019 at 4:07 pm
I do have a way to avoid that problem that will blow the doors off of most other methods for calculating running totals but it does take...
November 20, 2019 at 2:57 am
I do have a way to avoid that problem that will blow the doors off of most other methods for calculating running totals but it does take a bit...
November 19, 2019 at 8:04 pm
This is a classic Catch-All query.
November 19, 2019 at 7:56 pm
I'm not sure what the parameter values mean, but I think you might have meant to check if the parameter is null not the column?
SELECT *
...
November 19, 2019 at 6:02 pm
Viewing 15 posts - 1,291 through 1,305 (of 2,648 total)