Viewing 15 posts - 1,936 through 1,950 (of 7,608 total)
No. SQL doesn't really care which proc is using the index, and even trying to capture that kind of data about index usage would be huge overhead. Indexes need tuned...
January 27, 2021 at 6:02 pm
Do you pre-restore the full backup each time to speed up the next restore? (Assuming you have the disk space available -- and if not, you can get the space...
January 26, 2021 at 4:40 pm
@@TRANCOUNT itself is fine, I think. Does UPDATE increment and decrement @@TRANCOUNT as it processes?!
CREATE TABLE #foo (i INT NOT NULL);
INSERT INTO #foo(i) VALUES (0);
SET NOCOUNT ON;
SELECT...
January 26, 2021 at 3:17 pm
How large is the log file? The disk area for a log file must be preformatted, whereas data files do not (assuming you have IFI activated, which is standard now).
Do...
January 26, 2021 at 3:04 pm
You would do that with view(s). The ENCRYPT / DECRYPT would be only within the view(s).
The users don't have to query anything different, as you can make the original table...
January 25, 2021 at 7:44 pm
You're welcome! I'm glad it helped. Interesting q to play with.
January 25, 2021 at 7:38 pm
Maybe something like this?:
SELECT Item, Date1, Date2, Date3
FROM @headerTable
UNION ALL
SELECT
Item,
CAST(MAX(CASE WHEN week# = 1 THEN Quantity END) AS varchar(10)),
...
January 22, 2021 at 6:13 pm
Yeah, this can be definitely done in a standard SELECT.
Do you want to show only the weeks that had a match or do you want to show all 52 weeks,...
January 22, 2021 at 5:58 pm
I'm confused about a couple of things.
First, why do you only want to INSERT "field3" (really column3)?
There's no link or association to #FieldValues. Surely there must be some columns missing...
January 21, 2021 at 7:56 pm
SQL provide missing index info that you can use to help determine whether you need other index(es) or not, or even whether you need to change the clustered index to...
January 21, 2021 at 7:38 pm
OK, technically, other queries in the same transaction that did the UPDATE could see it before committing it, in something like this:
BEGIN TRANS
UPDATE
SELECT
COMMIT TRANS
But not within the context of a...
January 21, 2021 at 7:34 pm
Actually you'd get an error, since alias "s." is not defined.
January 21, 2021 at 3:59 pm
The old value. The new value can't be seen by a transaction modifying that table until the transaction's been committed.
January 21, 2021 at 3:53 pm
You really need to provide directly usable table structures and data. That is:
CREATE TABLE and INSERT statement(s)
CREATE TABLE #df1 /*or just df1*/
( version varchar(10) NOT NULL, host ... )
INSERT INTO...
January 20, 2021 at 10:42 pm
SSMS is not great about how best to define indexes.
Would you be able to post the query and the DDL for the table, including the indexes?
And please confirm, are you...
January 20, 2021 at 7:03 pm
Viewing 15 posts - 1,936 through 1,950 (of 7,608 total)