Viewing 15 posts - 106 through 120 (of 149 total)
Here is a sample script..... to get column usage metrics.
Replace DBNAME with your database name.
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE procedure [dbo].[usp_Capture_TableColumnUsageMetrics] (@TableName nvarchar(100))
as
begin
SET...
March 6, 2023 at 11:49 pm
See if this helps...
I just provided for two scenarious using UNION, you can add the rest.. with actual columns and their table names
declare @Today date = getdate()
--...
March 6, 2023 at 7:58 am
PARSENAME is used by Jeff to extract the HOUR portion which is extracted by specifying 2 before a .(dot). Similarly 1 is used to extract the SECONDs portion after the...
March 6, 2023 at 6:02 am
I tried and found only ClientPrograms table is joined but not ClientEpisodes. From the data provided for ClientPrograms and ClientEpisodes. It looks like one-many relationship from ClientEpisodes to ClientPrograms.
Have you...
March 6, 2023 at 5:38 am
Ahh.. @Today is just declared while testing. You can replace it with getdate().
Would it be possible to turn them into another subquery within second solution
Can you elaborate...
March 6, 2023 at 4:58 am
You can use s10, s11 and update if that is required. Otherwise it will provide the days difference between actual and schedule times.
declare @Today date = Getdate()
select...
March 5, 2023 at 3:50 am
Go through this link looks like there are few CU's released by Microsoft.
March 5, 2023 at 1:56 am
Try to connect from outside the network if that is public facing or you can try incognito window using google chrome or some other browser.
March 5, 2023 at 1:40 am
Another way...
SELECT *
FROM (
SELECT a.*
,(CASE
WHEN (a.primarydoc = b.visitdoc...
March 4, 2023 at 2:18 am
What if the secondaries are not read only?
Explore other routes... upgrade hardware or add more compute power.
March 3, 2023 at 6:37 pm
Python is used heavily for web scraping, you should give it a try using it to extract the data between the html tags.
March 3, 2023 at 3:58 am
Direct your analytical and other readable queries to secondary replica.
See if that helps.
March 3, 2023 at 3:18 am
When you enable CDC (Change Data Capture) on a database. It creates two SQL Agent Jobs in the same instance. Every DML operation is captured for each table whether it...
March 3, 2023 at 3:11 am
You can also use sp_whoisactive.
Check this thread:
March 3, 2023 at 3:00 am
Installing only Visual Studio will not help. You need to use SSDT Tools to open any SSIS package.
https://learn.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt?view=sql-server-ver16
Once the installation is complete, use SSDT to create a new...
March 3, 2023 at 2:53 am
Viewing 15 posts - 106 through 120 (of 149 total)