Viewing 15 posts - 2,596 through 2,610 (of 7,609 total)
Don't see anything directly wrong the calcs, although you should not do a calc on every LogTime column in every row, you should compare LogTime directly to the 60-days-ago EPOCH...
December 4, 2019 at 6:28 pm
A few quick thoughts (numbered to make discussion of them easier):
(1) You need to normalize this design, you're storing huge amounts of duplicate data. Specifically, encode the database name with...
December 2, 2019 at 7:53 pm
Several things that would/should help. You can implement / not implement each one as you see fit:
November 29, 2019 at 7:33 pm
You're welcome. Thanks for the confirmation!
November 27, 2019 at 7:23 pm
Change the end of the statement from ," ","_") to:
," ","")
November 27, 2019 at 5:47 pm
Also, considering that VALUES didn't actually come out until 2008, your lecture about getting rid of the old syntax "decades" ago is full of hooie. As for someones data...
November 27, 2019 at 3:11 pm
DROP TABLE #sampledata
GO
CREATE TABLE #sampledata
(
id int IDENTITY(1, 1) NOT NULL PRIMARY KEY, --<<--!!
folder varchar(100) NULL,
folder2 varchar(100) NULL
)
GO
INSERT INTO #sampledata VALUES
...
November 26, 2019 at 4:04 pm
You might also need to restart your DB services on a frequent basis in order to free up tempDB free space.
-- JigarShah
No, you should (almost) never need to restart...
November 26, 2019 at 3:53 pm
Indirectly, yes there is, and it's a guaranteed locking approach, since it's provided by the db engine itself, and uses its own locking mechanisms internally.
Use system procs sys.sp_getapplock...
November 22, 2019 at 4:05 pm
Indirectly, yes there is, and it's a guaranteed locking approach, since it's provided by the db engine itself, and uses its own locking mechanisms internally.
Use system procs sys.sp_getapplock and sys.sp_releaseapplock.
Before...
November 21, 2019 at 7:52 pm
The question ask for the amount of free space, correct? ... Really didn't think any of the answers were complete since ... you needed to use the size from...
November 21, 2019 at 4:35 pm
SELECT count(c.people_id) AS 'Inactives' --<<-- note counting from *right* table
FROM [BCC_DB].[dbo].[People] p
LEFT OUTER JOIN --<<-- note *LEFT* join
[BCC_DB].[dbo].[certs] c
ON p.peopleId = c.peopleId
WHERE p.status = 1
AND...
November 21, 2019 at 4:01 pm
Presumably you want the driving distance and not the "as the crow files" (straight linear) distance. For that you will need a software package. You will also need to get...
November 20, 2019 at 11:09 pm
Viewing 15 posts - 2,596 through 2,610 (of 7,609 total)