Viewing 15 posts - 826 through 840 (of 2,701 total)
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
my advise is for your company to hire a good SQL Consultant with both code and Data analysis experience to go through your issues and find out what happened and...
August 29, 2022 at 6:12 pm
you going to replace a PROD DB with a non prod one? how is it that your QA db is correct and your prod is bad? or is it just...
August 29, 2022 at 4:15 pm
it will have issues with connecting to prior SSIS instances.
for plain SQL database/dba access it should be fine with 2008 - maybe not 2005.
latest versions also have the "debug" option...
August 26, 2022 at 2:21 pm
what is the database compatibility level?
Assigning a value to a variable as part of the declaration is only possible if the database is a certain level - don't remember which...
August 18, 2022 at 9:47 am
Viewing 15 posts - 826 through 840 (of 2,701 total)