Viewing 15 posts - 196 through 210 (of 223 total)
That looks good but the SP uses a view to incert the data into tblclients:
INSERT INTO dbo.tblClients
(Client_Short_Name,
Client_Long_Name,
CountryCode,
ClientID)
SELECT dbo.vwImportAllNewClientIDs.Client,
dbo.vwImportAllNewClientIDs.Client, dbo.vwImportAllNewClientIDs.CountryCode, dbo.vwImportAllNewClientIDs.ClientID
FROM dbo.vwImportAllNewClientIDs
Where fore can I replace the above code...
November 28, 2008 at 4:33 am
Thanks,
I have changed all the vaules in the tblclient table to have the correct values, as you pointed out.
Now im having the following error:
Msg 2627, Level 14, State 1, Procedure...
November 28, 2008 at 4:06 am
That was extremely helpful…. THANK YOU VERY MUCH!!!! Chris Morris
Made me a happy man, I know thats sad but this has been hurting my head for the last 2 days!!
So...
November 28, 2008 at 3:51 am
Ok cant seem to get around this,
the error is:
Msg 8152, Level 16, State 4, Procedure procImportAllFiles, Line 33
String or binary data would be truncated.
The statement has been terminated.
This part...
November 28, 2008 at 2:20 am
Thanks VERY good idea!
Ok so the following line is bring the error:
INSERT INTO dbo.tblClients(Client_Short_Name,Client_Long_Name,CountryCode,ClientID) SELECT
dbo.vwImportAllNewClientIDs.Client,
dbo.vwImportAllNewClientIDs.Client,
dbo.vwImportAllNewClientIDs.CountryCode,
dbo.vwImportAllNewClientIDs.ClientID
FROM dbo.vwImportAllNewClientIDs
The View is a combination of 2 tables one of...
November 27, 2008 at 8:13 am
Sorry about the formatting.
Step One
I have a SSIS package which picks up and loads data from a flatfile (CSV) into 3 tables.
Step two
The SP then takes information from temp tables...
November 27, 2008 at 5:50 am
right sorry, your right I needed to remove that anyway.
That has now been removed but, now I have the following error:
Msg 8152, Level 16, State 4, Procedure procImportAllFiles, Line 33
String...
November 27, 2008 at 5:15 am
USE [book]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Procedure [dbo].[procImportAllFiles]
AS
SET NOCOUNT ON
DECLARE @Today DATETIME
DECLARE @ImportDate DATETIME
SET @ImportDate = Convert(SMALLDATETIME,(SELECT convert(char(8),date) FROM CheckDate),3)
SET @Today =Convert(SMALLDATETIME, (SELECT GETDATE()),102)
--We only update and append if...
November 27, 2008 at 4:56 am
I cannot edit the CSV file.
How can I use Derived Column exspress to change the column value from: 24 Nov 2008
to: 24-NOV-08
Need help with the Expression.
thanks
(slowly going mad)
November 25, 2008 at 4:53 am
Withing SQL DB the column is defined as VARCHAR(16),Null
Within SSIS the column is defined as:
OutputColumnWidth - 16
DataType - String[DT_STR]
TextQualified - True
November 25, 2008 at 3:55 am
SteveB - Thanks for the clear reply!!
Looks like I have fixed the date issue by using DataType 'Unicode string [DT_WSTR]'
:crazy: ...Now I have an issue with a column which holds...
November 24, 2008 at 3:51 am
THANKS ALL for the info!
Is there a way of creating a SQL SP to do the data conversion?
(Please see the attached pic).
As the import is occuring in the DataFlow do...
November 24, 2008 at 12:53 am
Ok to out line the issue:
Importing a flat file (.CSV) via SSIS into SQL2005 DB.
The Flat file row looks like:
"MANAGERS LTD","B","19 NOV 2008","1.249547"
The error is with the date column
Within...
November 21, 2008 at 2:31 am
Thanks,
easier said than done... im a newbi to SSIS...
Any tips?
November 20, 2008 at 4:27 am
Thanks again, No unfortunatily its not a one off.
This file gets replaced everday and will be in the same format.
I will have a look that that thread, thanks.
What Data type...
November 20, 2008 at 3:25 am
Viewing 15 posts - 196 through 210 (of 223 total)