Viewing 15 posts - 31 through 45 (of 58 total)
I Got this. It worked. I just changed the column data type as nvarchar(4000) and gave size as 4000 near flat file source input. Thanks a lot for all your...
January 11, 2012 at 3:39 pm
USE [ESG]
GO
/****** Object: StoredProcedure [dbo].[usp_Dashboard] Script Date: 01/06/2012 15:38:24 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[usp_Dashboard]
AS
--TRUNCATE TABLE dbo.dashboard
/*Cut_Date*/
declare @cut_date date
--set @cut_date = cast(('30-NOV-2011') as date)
set @cut_date...
January 6, 2012 at 2:44 pm
Incorrect syntax near bb
Incorrect syntax near a.
January 6, 2012 at 2:18 pm
Yup. I used merge statement. It worked. Except was not giving the accurate results. That was weird.
December 30, 2011 at 1:21 pm
Thanks so much. That worked. I used Max function
December 29, 2011 at 2:46 pm
select cal.datevalue
,datename(DW,cal.datevalue) day_of_week
,isnull(flowon.sum_flow_on,0) flow_on
,isnull(flowend.sum_flow_end,0) flow_off
...
December 28, 2011 at 12:46 pm
I have selected ignore failure for truncation and ran the package. But the data is getting truncated. How to solve this error. In my dest table for this column I...
December 22, 2011 at 8:28 am
Yup I got it. Thanks so much for the reply. I just replaced substring in place of right and it worked.
December 21, 2011 at 9:04 am
Thanks Drew and Ninja. It worked.
I used CAST(DATEADD(D,16,NULLIF(CURRENT_STMT_DATE,' ')) AS DATE)
Thanks for your time.
December 19, 2011 at 9:57 am
Thanks for the reply.
Its not working.
I have tried like this
CONVERT(DATEADD(D,16,CURRENT_STMT_DATE),NULLIF([CURRENT_STMT_DATE],' '))
December 19, 2011 at 9:31 am
Not from BIDS. I want something like that in sql agent.
December 16, 2011 at 12:48 pm
Thanks for your time. I will try that approach
December 15, 2011 at 2:50 pm
Viewing 15 posts - 31 through 45 (of 58 total)