Viewing 15 posts - 1,966 through 1,980 (of 7,614 total)
Your understanding is correct, I think. As Grant noted, since tables, views, etc., exist only within a database, and not at the instance level, you can't grant permissions to them...
January 13, 2021 at 11:30 pm
1) You need another table with just ID and NAME. Repeating the same name in multiple rows is a 1NF violation.
2) The clustering key to this table should be (ID,...
January 13, 2021 at 9:58 pm
For example, please provide us the table structure in code and sample data in code form, as INSERT statements:
IF OBJECT_ID('tempdb.dbo.#Employee') IS NOT NULL
DROP... January 13, 2021 at 9:49 pm
Yes, I also thought about it, but the following example shows it doesn't matter - SQL Server implicitly converts NULL to the correct type, no?
DECLARE...
January 13, 2021 at 9:41 pm
It's completely dependent on the indexes. I know Minion lets you pick lists of indexes & break up the process. I suppose Ola's script must too. Do that....
January 13, 2021 at 7:49 pm
And you never want the log to autogrow during index maintenance because it's such a slow process.
Instead, pre-grow the log to the total size you'll need. If you really must,...
January 13, 2021 at 3:30 pm
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
Viewing 15 posts - 1,966 through 1,980 (of 7,614 total)