Viewing 15 posts - 106 through 120 (of 158 total)
Would help to see the DDL for the Tables, TVF and the indexes defined with some sample data to reproduce the behavior. If it is not inline then a new...
March 19, 2023 at 12:37 am
Try this:
Go to the source connection, check the text file properties... make sure you have selected the checkbox Unicode.
March 15, 2023 at 5:34 am
You should also upgrade to SSRS 2016.... on the reporting side to support 2016 database.
-- Open the report and check for SQL is correct in the report.
-- Compare the table...
March 13, 2023 at 3:48 am
Link is going back to a topic written in 2012 which is an entirely different.
March 13, 2023 at 3:34 am
You can give these a try:
a) Import Export wizard.
b) Use Excel directly, Connect to the Instance by creating a connection and retrieve the data in itself.
c) Use SSIS.
March 10, 2023 at 11:40 pm
Note: From the data you provided program_id from client_vist cannot be joined with client program because they do not match.
May need some code tweaks... to get the correct program_id code,...
March 10, 2023 at 11:10 pm
Here is another way!!
-- Create a grouping column based on the difference between ID and row number within each usertier
;WITH CTE AS (
SELECT *,
...
March 10, 2023 at 8:29 pm
What are these WT1, WT2...... in the output? Why 15 has to be shown under WT1 for B and not in WT2?
You can use CASE WHEN THEN ELSE END and...
March 7, 2023 at 5:57 am
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
Viewing 15 posts - 106 through 120 (of 158 total)