Viewing 15 posts - 961 through 975 (of 2,654 total)
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
it is a double hop issue for sure - when you execute on the server the credentials are available locally so it can access the share - when you go...
January 6, 2022 at 4:41 pm
using "\n" worked fine for me with your sample file.
WITH (FIRSTROW=2, LASTROW=1000, FIELDTERMINATOR=',', ROWTERMINATOR='\n');
January 6, 2022 at 4:33 pm
as you state your table is partitioned maybe you can switch out each partition onto a staging table, convert the table (repeat for all partitions, one table per partition) and...
January 5, 2022 at 1:26 pm
I work on SQL server 2014 I need to rewrite update statement with best practice CAN I Write it without subquery ?
UPDATE FFFFF
SET...
January 4, 2022 at 11:34 pm
That's awesome, Frederico! Thanks for posting that.
It would appear, though, that you actually have to program for the table structure. Is there anything like the getting data from the...
January 4, 2022 at 8:21 am
Viewing 15 posts - 961 through 975 (of 2,654 total)