Viewing 15 posts - 3,976 through 3,990 (of 59,067 total)
Hello,
I found couple of indexes which looks like duplicate indexes. Before dropping any duplicate indexes...is there any additional checks that should be done. please advise.
Index A on Table A...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 1, 2022 at 10:20 pm
While I agree that IIF is "foreign" to SQL, it is VERY short for 2 part CASE statements. As you know, it does resolve to a CASE statement behind the...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2022 at 6:27 pm
--...
ALTER DATABASE [DBNameToRestoreHere] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2022 at 6:05 pm
I hate Excel...If your cutting and pasting into excel from SSMS, you could be losing leading zeros. Usually the only time I do this is exchanging results among my...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2022 at 7:09 am
Bad criteria. Empty source table. Some error that allowed the creation of the table but no data to transfer. There are a ton of reasons but can't tell because not...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2022 at 6:58 am
I don't use availability groups but I can tell you that you're using what people recommend as supposed Microsoft "recommended" "Best Practices" for index maintenance. In fact, most of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2022 at 6:56 am
Instead of worrying about where the bloody semi-colon goes, someone needs to convince this fellow that this absolutely needs to be converted to a single value iTVF or "iSF" and...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2022 at 6:40 am
**** NOTICE!!!! Please see Scott's warning at https://www.sqlservercentral.com/forums/topic/restore-autmomation#post-3979292 on this subject below and my post right after his. I only use this method on "test" boxes and didn't stress...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2022 at 6:33 am
It doesn't matter if it's ZOOM or not... meeting usually flat out just suck because the person who is supposed to be running the meeting is one of the worst...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2022 at 1:24 am
Thanks the above query worked great. If I wanted to do a daily extract of records saying start at 00:00 to 11:59 how would that query look?
Thx.
What does that...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 29, 2022 at 1:54 am
Of course, an even better way would be to buy an up-to-date zip code database and do a lookup because not every number from 00000 to 99998 is a valid...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 29, 2022 at 1:38 am
Another possibility is a bit shorter, uses only LIKE instead of LIKE and the LEN() function, and does the same thing is...
IIF(D.Zip LIKE '[0-9][0-9][0-9][0-9][0-9]', d.Zip, '99999') AS...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 29, 2022 at 12:31 am
As a bit of a sidebar, my personal preference for assigning alias names to columns is not to use "expression AS aliascolumnname". I use aliascolumname = expression.
Some people don't like...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 29, 2022 at 12:20 am
Hey Ratbak,
Thanks again, I tried SELECT CAST('A1-'+CustomerID as text) as CustomerID FROM Customers
Get the message. Conversion failed when converting the varchar value 'C25-' to data type int. Any help...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 29, 2022 at 12:09 am
Use the test data you were kind enough to post (nicely done there), here's an answer that uses a CROSSTAB. If you actually DO want NULL to appear, just change...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 28, 2022 at 2:40 am
Viewing 15 posts - 3,976 through 3,990 (of 59,067 total)