Viewing 15 posts - 2,596 through 2,610 (of 7,614 total)
Probably the easiest work-around is likely a DDL trigger that prevents them from issuing any DROP TABLE (and ALTER TABLE on a table they didn't create, if you need that,...
December 5, 2019 at 6:52 pm
You need to back up and actually do logical data modeling (Google "logical data modeling") not table modeling. You literally cannot normalize what you posted because there are no usable...
December 5, 2019 at 3:55 pm
Ok, interesting. Can you give an example of code that is indefinitely executing? Are you sure it is this sp_executesql code and not some other code in the proc?
[Yes, I...
December 4, 2019 at 8:53 pm
2. ... [H]ow to address this problem ?
That depends on the specific details in this situation.
2A. How many rows are in the remote table?
2B. How much data do you need...
December 4, 2019 at 7:37 pm
A basic numeric calculation should not take long to execute. Look at the @ParmDefinition and make sure that it is not a calling stored procedure or doing something else that...
December 4, 2019 at 6:33 pm
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
Viewing 15 posts - 2,596 through 2,610 (of 7,614 total)