Viewing 15 posts - 766 through 780 (of 2,649 total)
multiple issues there.
Union on its own needs to sort the data to remove duplicates - adding to this you have identity_insert on which has its own issues.
and (probably the worst)...
September 17, 2022 at 1:44 pm
to use UTF8 in SQL 2019 NVARCHAR is not required (see https://docs.microsoft.com/en-us/sql/relational-databases/collations/collation-and-unicode-support?view=sql-server-ver16#Unicode_Defn) - but increasing the size of the existing varchar MAY be required.
have a look at https://techcommunity.microsoft.com/t5/sql-server-blog/introducing-utf-8-support-for-sql-server/ba-p/734928
September 15, 2022 at 11:16 am
example of what I do on one of my databases with regards to users and groupmembership
note the detail of formatting the dates in a very specific format as well as...
September 14, 2022 at 3:38 pm
You want the unique clustered index on ( date_, ID_vard ), assuming that you do primarily query the table by date_, and not on just ID_vard.
Can you clarify how...
September 13, 2022 at 3:57 pm
You should look at partitioning the table by period.
Maybe.. maybe not.
one of my main big tables (clustered columnstore) is partitioned as well - but each partition has 3 Billion...
September 13, 2022 at 3:29 pm
Columnstore is good for aggregation SQL's - not for plain retrieval of data but 45 min still looks very bad.
on your case I would be interested in seeing how it...
September 13, 2022 at 2:36 pm
if you get the files in Excel and convert to CSV then it would be better if you define the format of the dates at that point - assuming the...
September 12, 2022 at 10:15 pm
You also need to consider licencing costs for MSSQL and they can be very complicated. From memory the minumum licence is 4 cores and then in multiples of 2...
September 12, 2022 at 4:48 pm
there is nothing we can say to help you there - all those values are specific to your own AD structure. It can be whatever your admins decided it would...
September 10, 2022 at 2:21 pm
why don't you try it? should be rather easy for you to set up a test case on your own instead of spending time asking if it is possible.
you even...
August 31, 2022 at 3:20 pm
to use xp_cmdshell within a SP this is NOT what you need.
regarding the SQL Jobs e.g. using sqlcmd as the step type you are missing one step as per below
on...
August 31, 2022 at 3:15 pm
I would go further than that - using better names that make it clear what each date is
with dates as
(select DateFromParts(Year(current_timestamp)-IIf(Month(current_timestamp)=1, 6, 5), 1, 1) as...
August 30, 2022 at 11:23 pm
and have you considered that we are not here to do your work?
We can help with particular errors or some logic questions - but rewriting your code is not something...
August 30, 2022 at 4:14 pm
order is a reserved word - either use 2 naming convention (which you should be doing anyway) or enclose in square brackets - or both
August 30, 2022 at 9:41 am
you just need to replace that "if(od.amend..." with a "coalesce(od.amend.." and the "date(..." with a "convert(date, ...".. and fix the IN clause to have all values enclosed in single quotes...
August 29, 2022 at 6:18 pm
Viewing 15 posts - 766 through 780 (of 2,649 total)