Viewing 15 posts - 781 through 795 (of 2,654 total)
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
Bruin wrote:Is there a script that will report savings for Page Compression?
Thanks.
yes - its called "read the manual"
Sometimes, that's difficult because a lot of technical manuals aren't written...
August 15, 2022 at 6:36 pm
Is there a script that will report savings for Page Compression?
Thanks.
yes - its called "read the manual"
August 15, 2022 at 5:10 pm
might be good to post a link to the tool you are using
August 10, 2022 at 5:50 pm
@Ed B - in order to truncate a partitioned table , the table and indexes must be aligned (partitioned on the same partition function).- see https://docs.microsoft.com/en-us/sql/t-sql/statements/truncate-table-transact-sql?view=sql-server-ver15
@ScottPletcher - while for a...
August 8, 2022 at 9:30 pm
how is the packaging being executed? and are those parameters to the SP also parameters to the execution of the package?
August 8, 2022 at 3:56 pm
Create a unique clustered index on ( TNR_DATE, GSN_ID ). You can still have a nonclustered PK on GSN_ID alone.
and how will the OP create a non clustered PK...
August 8, 2022 at 2:10 pm
Viewing 15 posts - 781 through 795 (of 2,654 total)