Viewing 15 posts - 1,966 through 1,980 (of 7,608 total)
January 12, 2021 at 4:09 pm
Perhaps a synonym would work for you here.
Why do the created tables have to have the same name? Presumably it's because some common code needs to run against the tables? If...
January 12, 2021 at 2:35 pm
I've never seen a time system that didn't use separate system entries to record check in / check out. If fact, I don't see how else they could work, for...
January 11, 2021 at 7:23 pm
Btw, I too would process the rules tables with a cursor to create / generate the final code. I think a cursor gives you much better control and more flexibility...
January 8, 2021 at 6:49 pm
I suggest that the results of the dynamic SQL should be to create a view. Your manager can then SELECT from the view.
Likely the view name would be the same...
January 8, 2021 at 6:44 pm
I would like your opinion on this solution
First, you really need to go back and do logical modeling, aka normalization, before you create tables (you have a table but it...
January 8, 2021 at 6:35 pm
SELECT
path AS original_path,
LEFT(path, LEN(path) - CHARINDEX('/', REVERSE(path)) + 1) + 'this.bat'
FROM
(
VALUES ('temp/a/g.txt')
...
January 8, 2021 at 5:12 pm
It's better to put all conditions related to the LEFT table directly in the LEFT JOIN, i.e.:
SELECT
Names.productName
,NameProperty.Value
,NameProperty.Property
FROM Names
LEFT OUTER JOIN NameProperty
ON Names.productName = NameProperty.productName
AND NameProperty.Property =...
January 8, 2021 at 5:07 pm
Oracle dbms treats an empty string as NULL. Don't ask me why, it's totally bogus to me, but it does.
January 7, 2021 at 11:23 pm
Yes, definitely. That's another reason I wrote the trigger that way, to allow sample value(s) to be pulled for use in the email, if needed.
For example:
DECLARE @min_number_of_entries_expected...
January 7, 2021 at 10:08 pm
Or take the month difference and divide by 12.
January 7, 2021 at 6:47 pm
Create a job to check on the data. Even though it will check the last hour, you could schedule it to run as often as you wanted to check:
January 7, 2021 at 5:14 pm
My first thought would be to simply take the difference of the year. Do you want to adjust based on the month as well as the year?
SELECT...
January 7, 2021 at 4:15 pm
I don't see any view defs. Instead of attaching them, you can post them using the "insert/edit code sample" button when you go to post a Reply.
If I'm overlooked them...
January 7, 2021 at 3:38 pm
If you have some indexes that have woefully low (less than 80% average percent of page fullness [page density]), then rebuild (NOT reorganize) them at 82%...
January 6, 2021 at 11:03 pm
Viewing 15 posts - 1,966 through 1,980 (of 7,608 total)