Viewing 15 posts - 1 through 15 (of 24 total)
Hello,
I will try to answer with an single answer to all of the questions.
June 12, 2024 at 7:13 am
No, if the combination of all three columns would always be unique if CHANGENR were added:
dbo.CDPOS ( OBJECTCLAS, OBJECTID, CHANGENR )
I see, I didn't know that. I will check...
May 31, 2024 at 5:23 am
You've got the correct clustered index on CDPOS, except perhaps that it's not unique. If adding CHANGENR to the clus index will make it UNIQUE, you should do that.
About...
May 30, 2024 at 10:02 am
I don't have time to dig into this, but there is an error in the query.
LEN('L') will always equal 1, because that's how long 'L' is.
You should also remove...
May 30, 2024 at 9:57 am
Why use sql auth and not windows auth?
We are using SQL Auth for the applications, Windows Auth for the SSMS.
May 27, 2024 at 6:46 am
Having the same user names and passwords on production and test is stupid beyond belief and violates any number of basic system controls. If you are a public company,...
May 24, 2024 at 4:51 am
Now things in your post that mildly concern me are creating new tables. Are you creating new tables from the app? If so, that feels like it MAY be...
May 23, 2024 at 6:35 am
Obvious question, why does this person have the ability to do this in prod in the first place, kill this and you resolve 99.9% of the issues
Put delete triggers...
May 23, 2024 at 5:28 am
I appreciate the perspective you've shared regarding the use of temp tables, but I'd like to offer a different view on the robust capabilities and advantages of using tempdb...
April 18, 2024 at 5:18 am
thx Martin
i have to ask why tempdb is singled out in your post as a problem. Wouldnt each server's instance be managing its own tempdb within the confines of...
April 18, 2024 at 5:02 am
A little stupid question by me, I am new into SQL Server, but if the tables are empty after truncate, the statistics should be finished in probably less than a...
April 17, 2024 at 8:40 am
As someone who used temp table and had a lot of issues with it, I highly recommend start creating table into DB and use it.
TempDB is good only if you...
April 17, 2024 at 8:17 am
From the conversation it sounds like the OP has a string field that is actually holding multuiple pieces of information. The issue here is actually one of poor database...
April 17, 2024 at 7:39 am
this is a rather incorrect assumption and can be easily proven to be wrong.
SQL Server will ALWAYs compare the whole contents with exception of trailing spaces which are ignored...
April 16, 2024 at 12:50 pm
Using a function on a column generally stops it being SARGABLE. (ie It will not be able to use any indexes.)
You should use:
AND CDHDR_NEW.OBJECTID LIKE MM_EKKO_STAGING.EBELN...
April 16, 2024 at 11:38 am
Viewing 15 posts - 1 through 15 (of 24 total)