Viewing 15 posts - 91 through 105 (of 13,838 total)
This is not directly related, but still worth mentioning.
We try to avoid using FORMAT() here because of its poor performance. Assuming tblWTHistory.EstCompDate is a date, please try changing those two...
February 26, 2025 at 5:59 pm
If you are really sure that it's not going to cause issues, you can do this.
Disable the trigger, perform the deletion, then re-enable the trigger.
https://www.mssqltips.com/tutorial/sql-server-disable-and-enable-triggers/
February 26, 2025 at 1:00 pm
OK, that explains it. The deletes are being blocked and instead the delete attempts are being logged in table JournalDeleteAudit.
February 26, 2025 at 12:52 pm
Yes there is a trigger
Please right-click / Script as Create
and post the code here.
February 26, 2025 at 12:25 pm
Weird. Are there any triggers on this table?
February 26, 2025 at 11:33 am
What does it say in the Messages tab after attempting the deletions?
February 26, 2025 at 10:43 am
Understood. But in your database, the function definition will exist. Otherwise the code you provide would not execute.
You need to provide that (in the form of CREATE FUNCTION oracle.xxxfloat AS...
February 25, 2025 at 5:47 pm
Are you trying to rewrite the Oracle functions? In which case, you'll need their definitions, not just the code which is using them. If not, I don't really understand what...
February 25, 2025 at 4:25 pm
Sorry Phil, I had to correct my statement. When I redacted our names, I redacted too much. I guess you could say I over redacted.
OK (and good pun!). I...
February 25, 2025 at 3:44 pm
DECLARE @first INT = 13
,@second INT = 2;
SELECT Result = CASE
...
February 25, 2025 at 2:31 pm
I was asking about a subquery, not a view or a where exists.
That wasn't clear, given that the first two sentences of your original post were this:
Is there any circumstances...
February 24, 2025 at 3:29 pm
You don't mention the error you are getting, but I think you might have missed a bit of syntax:
CREATE FUNCTION LoafIngredientCostsOverTime
(
@StartDate DATE =...
February 24, 2025 at 9:02 am
thx morgan3445. there is no edit dax button in the properties pane of my sales table.
The Morgan3445 post contained a spammy link, so I reported it.
February 22, 2025 at 1:40 pm
Have a look at this. I used a temp table & added a PK for fun.
DROP TABLE IF EXISTS #temptable
CREATE TABLE #temptable
(
SomePK INT...
February 20, 2025 at 5:32 pm
Viewing 15 posts - 91 through 105 (of 13,838 total)