Viewing 15 posts - 1 through 15 (of 417 total)
I think that ANY, SOME and ALL have the advantage that you can use comparisons like less than or greater than. Imagine the Beer table has cost and a country...
December 11, 2024 at 10:31 pm
If you have any empty strings you need to ensure they are not chosen as the shortest description.
SELECT TeamCode, Description,
...
November 7, 2024 at 10:22 pm
Sorry, I should have mentioned that sp_whoisactive is not a system stored procedure. It's something you can download and install, created by Adam Mechanic. It has not been updated for...
November 5, 2024 at 9:25 pm
Have you looked at what's going on in SQL server when the procedures get stuck? If you use something like sp_whoisactive it's easy to see if you have spids that...
November 5, 2024 at 7:16 pm
Do you have one or two tables? are "data" and "table" the same table? Do you want all the data for dates where there are more than 600 measures? if...
November 1, 2024 at 3:38 pm
Grasping at straws here, but is there any chance you have an expression overwriting the server name? It appears from the image that your connections do have expressions, but they...
October 31, 2024 at 8:18 pm
Can you not leave the server name alone, but change the connection manager name to remove the square brackets and the backslash, which is an illegal character?
October 31, 2024 at 5:11 pm
The delete removes rows for id 102 that share Ident and val with 101. Should the 101, euid01, x010 row be updated in some way?
October 31, 2024 at 4:32 am
One solution might be to use a an explicit cache transformation for the lookup. The cache has to be loaded using a data flow first, but that allows the source...
October 30, 2024 at 3:34 pm
I always have to look up the pivot syntax so I usually use case statements, but this is an attempt at both.
--PIVOT
SELECT b.MemberID, b.[1] AS EntryDate1,...
October 29, 2024 at 8:08 am
Is this an accurate description? you want to update all rows where ID = 102 (set id = 101, Isactive = 0, closedate = getdate()) unless the combination of ident...
October 28, 2024 at 3:51 pm
I haven't used maintenance plans for years, but this link suggests that you need to explicitly define the log files to delete.
https://www.mssqltips.com/sqlservertip/3225/sql-server-maintenance-plans-reporting-and-logging/
October 23, 2024 at 4:17 pm
I think that Oracle displays dates in a UK format with days before months, at least that's how it seems when extracting dates without formatting. We always use to_char with...
October 22, 2024 at 6:20 pm
What do you want to achieve by partitioning the table? Monthly partitions help manage large tables and would allow you to truncate a historical partition at the end of a...
October 14, 2024 at 10:06 pm
That code is now running without error, but the problem is the code is taking out ALL results where company = 'abc01' and eliminating all custids like '%abc%' from...
October 9, 2024 at 4:25 pm
Viewing 15 posts - 1 through 15 (of 417 total)