Viewing 15 posts - 556 through 570 (of 2,356 total)
Your use of ISDATE may not work as you think. I would suggest using TRY_CONVERT. Also, what happens if the test for a valid date is false? You code will...
January 28, 2022 at 3:32 pm
As two other folks have suggested, doing an upgrade is not a very good approach.
SQL 2000 cannot be upgraded to anything but SQL 2005. As Grant suggested, the cardinality estimator...
January 28, 2022 at 2:18 pm
Do you have a Visual Studio subscription? It's available there.
January 28, 2022 at 1:53 pm
Good stuff!
I use the dbatools to do the same things. https://dbatools.io/commands/
There are a few different commands that copy logins and permissions between servers.
January 26, 2022 at 2:41 pm
I realize the question is very broad and that is likely due to me not having experience loading transactional data. What I'm getting out of all of the responses...
January 21, 2022 at 7:57 pm
I am no longer receiving e-mail notifications when someone responds to a post I am subscribed to. Is it me, or is this affecting others?
Me too.
January 21, 2022 at 7:49 pm
I'm not an SSIS guru by any means, but won't an execute SQL task work?
One of the few SSIS packages I've had to work with does a nightly ETL. There...
January 21, 2022 at 6:04 pm
Within the first few sentences of reading this, I wondered if better code would lessen that need. You pointed that out in the last paragraph.
But, I think I would tend...
January 21, 2022 at 6:00 pm
Can you use a MIN or MAX on one of the varchar columns?
I also recommend reading Jeff's two articles on Pivots and Cross Tabs.
https://www.sqlservercentral.com/articles/cross-tabs-and-pivots-part-1-converting-rows-to-columns-1
https://www.sqlservercentral.com/articles/cross-tabs-and-pivots-part-2-dynamic-cross-tabs
January 21, 2022 at 5:53 pm
I did a google search for "Auditing SQL Server with Triggers"
https://www.sqlshack.com/creating-smart-trigger-based-audit-trail-sql-server/
And, searching SQL Server Central for "Audit Triggers", I found
https://www.sqlservercentral.com/scripts/script-generates-audit-triggers
https://www.mssqltips.com/sqlservertip/1468/designing-tables-for-audit-data-in-sql-server/
January 20, 2022 at 4:33 pm
How about:
SELECT
a.[GroupID],
a.[GroupName],
b.AgentCount,
c.SkillCount
FROM [ApexCCM].[dbo].[AgentGroups] a
LEFT JOIN (SELECT GroupID, COUNT(*) AgentCount
FROM [ApexCCM].[dbo].[AgentGroupMapping]
GROUP BY GroupID) b ON a.[GroupID] = b.[GroupID]
LEFT JOIN (SELECT GroupID, Count(*) SkillCount
FROM [ApexCCM].[dbo].[SkillGroupMapping]...
January 20, 2022 at 4:28 pm
Simple question. Why not just update both places as opposed to using a trigger?
January 20, 2022 at 1:38 pm
I'm taking a guess here.
Query the Subscriptions table in the SSRS database. In the ExtensionSettings column is the XML that might store the path.
Update the column to the new path. ...
January 19, 2022 at 8:06 pm
This is little to go on. We cannot see your system.
Can you provide something more? A sample query? A table structure? Sample data?
See the link in my signature on how to...
January 19, 2022 at 1:42 pm
If you have zero free space, you may not be able to put a clustered index on the table.
I suggest you add space to the file or filegroup, and attempt...
January 19, 2022 at 1:35 pm
Viewing 15 posts - 556 through 570 (of 2,356 total)