Viewing 15 posts - 1,591 through 1,605 (of 59,065 total)
If you're on 2022 then you could use DATE_BUCKET:
WHERE YourDateTimeColumn >= DATE_BUCKET(DAY,1, GETDATE(), CONVERT(datetime,'19000101 16:00:00'))
AND YourDateTimeColumn < DATEADD(DAY, 1, DATE_BUCKET(DAY,1, GETDATE(), CONVERT(datetime,'19000101 16:00:00')))
Another method...
April 5, 2023 at 7:36 pm
When doing (upsizing wizard), problems appeared in copy (sql server), so I deleted it and installed it again, and after I tried (import), it worked and the database was...
April 5, 2023 at 7:21 pm
onetsql,
Nice link. Thanks.
April 5, 2023 at 2:26 pm
I did attempt to import your bacpac, ...
I'll likely never make the attempt on these forums because it's not permanent to this forum. If it goes away, any answer...
April 5, 2023 at 2:11 pm
Created a table in such a way, each rowsize is one 8K page.
Now when I execute this
SELECT T.name as 'Table', ix.index_id, ix.[name] AS IndexName, ix.type_desc AS IndexType, [ips].[index_level],...
April 5, 2023 at 2:00 pm
So what was your final problem and resolution?
April 5, 2023 at 1:37 pm
Hi Jeff
Yeah vendor is aware of this issue. But get where you are coming from for sure.It was caused by a crappy import tool they wrote.. Really the records...
April 5, 2023 at 1:02 am
I seriously wish you the best of luck. Get your QA/UAT started on checking for bad info/reporting/etc.
April 4, 2023 at 7:56 pm
Personally, it was the DB Vendor's code that allowed the "duplicate" to begin with and I'd ask them rather than changing data that may have a substantial impact somewhere else. ...
April 4, 2023 at 7:47 pm
That would happen if you did not have ord.Amount wrapped in the aggregate SUM function.
It should work w/ the query listed.
It can't... there's no ORDER_ID column in...
April 4, 2023 at 7:21 pm
That would happen if you did not have ord.Amount wrapped in the aggregate SUM function.
It should work w/ the query listed.
It can't... there's no ORDER_ID column in the Vendor...
April 4, 2023 at 6:41 pm
You are correct. Each 7000 byte + the ID row occupies 1 page.
On my box, I'm always getting 2 reads more than the number of leaf level pages regardless of...
April 4, 2023 at 6:30 pm
It'll be interesting to see what kind of Execution Plan is built from all that. The use of DISTINCT also suggests that you may have at least 1 many-to-many return...
April 4, 2023 at 5:06 pm
In the following, you have an underscore in the code that does not exist in the TBL_Vendor table.
on vnd.ORDER_ID = ord.ID
April 4, 2023 at 4:56 pm
Lordy. My apologies. I didn't look at the "record layout" for sys.dm_tran_active_transactions (from your query you posted)... The bloody database_transaction_begin_time column in that DMV is returned, by the system, as...
April 4, 2023 at 3:44 pm
Viewing 15 posts - 1,591 through 1,605 (of 59,065 total)