Viewing 15 posts - 1,006 through 1,020 (of 2,701 total)
don't use SSIS for it - if the database is on same server just do a straight insert into it - if it is on a different server then use...
January 22, 2022 at 7:29 pm
the index you were asked to supply is the one on table parts.tradecodecontrol - index IDZ_ZPLID , not on ExtractReports.dbo.TPls
the indexes that Des mentioned above would not help you as...
January 20, 2022 at 4:08 pm
and winscp can be used within c# code - recommended way to use it - https://winscp.net/eng/docs/library_ssis - or alternatively use it as a process task https://winscp.net/eng/docs/guide_ssis
January 19, 2022 at 6:33 pm
shrink database is pointless - you do need to do shrinkfile but not using the option truncateonly as that will not move data around the file so it can free...
January 12, 2022 at 11:10 pm
did you do a shrink database or a shrink file? looks like the first 1 and that is the wrong one to use
January 12, 2022 at 7:40 pm
same issue - no emails and toolbar gone
January 11, 2022 at 6:10 pm
this is the 4th thread you create on the same subject - if no one has answered the other 3 then creating a new one is not going to sort...
January 10, 2022 at 9:54 pm
Good SQL programmers do not use proprietary features like TOP in their code. If your system lives for a few years, there's a good chance it will be moved...
January 10, 2022 at 9:50 pm
once you add the parameter you can't add it again - but you can update it.
so on your last example where you have the case block you need to instead...
January 8, 2022 at 5:04 pm
your most welcome and it was no bother at all to help on this.
and we all learn something everyday mainly when we help others.
January 6, 2022 at 11:49 pm
ok. issue is the row separator
you defined it as \r - but it really is \n\r so the way the code is there will be a few records with hex...
January 6, 2022 at 10:33 pm
I've added some print statements to the following - run it again and the filename before the error will be the one failing - would need to look at that...
January 6, 2022 at 9:14 pm
try the following - untested
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Procedure [dbo].[import_dailytracing] @filepath varchar(500), @pattern varchar(100), @tablename varchar(100)
As
Begin
-- these 2 should always be set in ALL sp's
-- ...
January 6, 2022 at 6:13 pm
your issue is the blank lines at the end of the file - if this is always how you get them you have 3 options (in order of preference)
1 -...
January 6, 2022 at 5:12 pm
both files worked for me
if object_id('dbo.TestTracingImportSP') is not null
drop table dbo.TestTracingImportSP
create table dbo.TestTracingImportSP
(
[Initial] varchar(200)
,[Number] varchar(200)
,[Location City] varchar(200)
,[State] varchar(200)
,[Month] varchar(200)
,[Day] varchar(200)
,[Time] varchar(200)
,[L or E] varchar(200)
,[Event] varchar(200)
,[Train ID] varchar(200)
,[Destination... January 6, 2022 at 4:52 pm
Viewing 15 posts - 1,006 through 1,020 (of 2,701 total)