Viewing 15 posts - 2,401 through 2,415 (of 59,086 total)
As a bit of a sidebar, having only 16GB of RAM on a Developer Server where production code is developed and unit tested and has restores done so frequently seems...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 28, 2022 at 3:35 pm
Awesome, question, Steve! Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 28, 2022 at 2:41 pm
Yes... you can backup to anywhere you can reach or the server can reach. There are a couple of ways to do it and, rather than me forgetting something, have...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 28, 2022 at 5:32 am
ALTER TABLE UserLog DROP CONSTRAINT PK__UserLog__7F8B815172CE9EAE WITH (MOVE TO HISTORY)
USE TestDB GO
CREATE UNIQUE CLUSTERED INDEX UIX_UserLogID ON UserLog(UserLogID) ON [PRIMARY]
That'll certainly fill up your log file! When you drop...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 28, 2022 at 5:17 am
Sounds to me like Tenant/Year might be the way to go for the queries, then. Don't be alarmed by the high fragmentation that will occur on that clustered index. It's...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 28, 2022 at 4:47 am
"Learning by example" opportunity here... spend some time looking things up on the web, as suggested in the code below.
And, like Frederico suggests, learn how to use "Object Aliases" and...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 27, 2022 at 4:08 am
Clustered and non-clustered indexes are all stored in the data file (MDF/NDF files). What you may not know is that the Leaf Level of the Clustered Index IS the actual...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 27, 2022 at 2:28 am
1)Loading data in a grid (by tenant,year)
Just one tenant at a time?
--Jeff Moden
Change is inevitable... Change for the better is not.
November 27, 2022 at 2:12 am
you really need to read the manuals for MySQL - datediff in Mysql is totally different of that for SQL Server hence the error you get.
in mysql you would...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 27, 2022 at 2:00 am
Hello Jeff and thank you very much for your answer. You're right. My mistake. I thought I was in a MySql forum.
About the issue....you're sure that the function to...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 27, 2022 at 1:59 am
I just noticed that "substring_index" isn't the name of a alias here... it's the name of a function and that function doesn't exist in SQL Server. You should let people...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 26, 2022 at 12:26 am
With the understanding that I'm not even sure how to spell "SSIS", have you checked it to see if the stored procedure contains a "Revert" statement?
all the SP's...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 26, 2022 at 12:11 am
I don't know about CyberArk but I would hope that getting a Password for an SQL Service Account couldn't actually be done in such an easy fashion.
Cyberark if...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 26, 2022 at 12:08 am
Found it, never mind
substring_index(TT.horas,':',1)*60+substring_index(TT.horas,':',-1),
Thanks
The SUBSTRING() stuff will make it slower than you need to. Here's a way to easily convert such "time strings" to Decimal hours.
...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 25, 2022 at 11:26 pm
I don't know about CyberArk but I would hope that getting a Password for an SQL Service Account couldn't actually be done in such an easy fashion.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 25, 2022 at 11:16 pm
Viewing 15 posts - 2,401 through 2,415 (of 59,086 total)