Viewing 15 posts - 3,061 through 3,075 (of 59,098 total)
I don't understand what that query is doing?
Is there another query written in a more standard way that produces the same results but is slower?
It creates an million row...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2022 at 8:09 pm
Is the current database that you're running the code in the same database as where the table is?
If so, then I don't know what the issue is other than there...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2022 at 7:54 pm
Drew, thanks again for the solution. It's "Spec-hacular"!
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2022 at 7:53 pm
Drew showed me his wonderful code to do this same thing on another thread. I did a deep dive on it and the concept is wonderfully simple and it solved...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2022 at 7:50 pm
Aye. Thanks for the link. The solution that you posted is even simpler than either of those two and now I understand about why you say it's not where you...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2022 at 6:45 pm
It clearly states that you do NOT need to grant sys_admin privs...
source connection must have the sysadmin role, OR have the db_owner role and the SELECT...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2022 at 6:29 pm
I have a table that is empty and it should have data in it. I need to find a stored procedure or table(s) that populates this table.
How do i...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2022 at 6:22 pm
I just did a deep dive on that code. ANSI NULLs are the key there! Really cool code! Thanks, again, Drew. Do you have a link where Itzik provides this...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2022 at 6:08 pm
I agree with Drew... the code he posted does a single scan and not a scan with a wad of seeks.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2022 at 5:41 pm
Thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2022 at 10:01 pm
It doesn't. You're wayyyy over-analyzing this. Again, it's a simple q with a simple answer. Save the big analysis for a more significant q.
Says the guy with the critique...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2022 at 9:59 pm
I actually wouldn't be surprised that someone posted such a thing somewhere. 😀 That's why I posted the code to prove what it actually does. It was just easier...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2022 at 8:09 pm
I ran Jeff's query, it returns nothing:
DUDE!!!! CHANGE THE VALUE OF THE STRING FOR THE BLOODY @OBJECTNAME VARIABLE TO THE SCHEMA NAME AND OBJECT NAME FOR...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2022 at 7:59 pm
Here's your original data as a Temp Table to persist the test data to make "playing" easier...
DROP TABLE IF EXISTS #Temp;
GO
CREATE TABLE #Temp
...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2022 at 7:53 pm
Using the following code, please note that the DATE and DATETIME datatypes behave exactly the same way when it comes to blanks and NULLs. Run the following code and see.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2022 at 6:10 pm
Viewing 15 posts - 3,061 through 3,075 (of 59,098 total)