Viewing 15 posts - 1,021 through 1,035 (of 2,701 total)
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
better option for me would be to use a small powershell script to download the contents and load directly to sql server.
edit: the original link only extracts current year -...
January 4, 2022 at 12:52 am
kindly supply table and indexed DDL for all tables involved as well as row count for each table - and at same time do tell us why table TPartFeature does...
January 3, 2022 at 10:01 am
ssms is not BCP - and what you get on SSMS is in many cases totally out of sync with what you get with other tools.
on this case SSMs applies...
December 31, 2021 at 12:03 am
your expectation may not be what you can generate from sql using BCP - not knowing what options you are using I would advise using
"-c" which will add a \r\n...
December 30, 2021 at 9:24 pm
why don't you wish to use stuff?
you can use substring - but that will make your code a bit more complex.
on diff note - avoid hardcoding dbnames (use synonyms instead)...
December 27, 2021 at 10:28 pm
To add to what Jeffrey said - if a CTE is mentioned in the following code 2 or more times it's evaluated and executed as many times. No...
December 26, 2021 at 6:46 pm
the issue is not the sql itself but the whole combination - your system is likely constrained in memory and was unable to produce a plan for the full query.
the...
December 24, 2021 at 9:11 am
My favorite lie is that NOLOCK improves performance.
Of course it must vs taking locks.
"and use snapshot isolation." MEGA-HUGE overhead. SI should only be used...
December 22, 2021 at 6:40 pm
you don't change the connection manager - you change the connection string that the connection manager uses.
only case where this is not possible is when your connection is a flat...
December 21, 2021 at 6:55 pm
ahhhh. numbers....
2 situations - long ago, still on mainframes.
some reports were based on Lines of Code written.. so 2 teams each with their own type of code managed to "improve"...
December 21, 2021 at 6:51 pm
Viewing 15 posts - 1,021 through 1,035 (of 2,701 total)