Viewing 15 posts - 16 through 30 (of 231 total)
To create the table -
/****** Object: Table [dbo].[test] Script Date: 25/02/2016 16:01:36 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[test](
[CalendarPeriodId] [int] NOT NULL,
[CalendarId] [int] NULL,
[CalendarYearId] [int]...
February 25, 2016 at 9:03 am
ALTER PROCEDURE [dbo].[usp_test_Arrears_BrokenArrangement]
@PolicyId INT, @AccountId INT, @PolicyNodeId INT, @output BIT OUT
AS
BEGIN
SET NOCOUNT ON;
SET @AccountId = 1
DECLARE @CurrentArrangement as bit
DECLARE @LastSystemActionId as int
DECLARE @ActionDate as date
DECLARE @NoOfBrokenArrangements...
February 22, 2016 at 8:13 am
Yes I did try but kept getting errors as I'm obviously using the SET in the wrong place.
February 22, 2016 at 8:01 am
Just worked it out -
As the ASSET table is now populated - I can use the following
-- Populate the AssetAddress Table with the relevant data. Only if the AddressID...
February 10, 2016 at 6:47 am
Thanks everyone - between you all you got me to where I want to be.
January 25, 2016 at 7:26 am
Hi Dave,
That's what I did - basically in my flat file Destination, when I double click it - in the big white space under Header, I have placed -...
January 25, 2016 at 6:18 am
Yeah tried to convert to varchar and it didn't do anything different.
January 25, 2016 at 6:04 am
The following -
CONCAT('"',DATEPART(d,ra.StartDate),'-',DATEPART(m,ra.StartDate),'-',DATEPART(year,ra.startdate),'"' ) as test,
Just goes - "11-9-2015" I need it to be "11-SEP-2015"
January 25, 2016 at 5:56 am
I don't have the skills in that though, so was just wondering if there was anything in TQL that could do it.
If not, not to worry, I'll see what I...
January 25, 2016 at 3:17 am
/****** Object: Table [dbo].[Contact] Script Date: 13/11/2015 11:38:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING OFF
GO
CREATE TABLE [dbo].[Contact](
[ContactId] [varchar](100) NULL,
[ContactGroupRef] [varchar](100) NULL,
[RelationshipToLead] [varchar](100) NULL,
[id] [int] IDENTITY(1,1) NOT...
November 13, 2015 at 4:46 am
Thanks for your reply but sorry I don't know how to achieve that.
November 13, 2015 at 3:41 am
Hi,
Thanks for both responses.
1. Jeff Moden you mention placing a WHERE clause. How do you do that when it is referencing a worksheet from Excel like below?
SELECT *
FROM [Sheet1$B2:Q2]
UNION
SELECT...
October 27, 2015 at 3:31 am
Hi There,
Yes there is a primary key called "id". And the row is all fields null. Which becomes id 1.
Thanks
October 23, 2015 at 6:14 am
Appreciate your help with.
As I have the above UNION and the Excel Connection has "First Row has Column Names", so that the first select statement picks up the actual header...
October 23, 2015 at 3:33 am
Thanks for that.
That gives me the data that I require.
However it does not list the headers of the columns. How would I achieve that in the SQL statement?
The columns (as...
October 8, 2015 at 3:51 am
Viewing 15 posts - 16 through 30 (of 231 total)