Viewing 15 posts - 4,471 through 4,485 (of 59,069 total)
My recommendation would be to read the documentation for BULK INSERT, which is located at the following URL:
https://docs.microsoft.com/en-us/sql/t-sql/statements/bulk-insert-transact-sql?view=sql-server-ver15
The two keywords to search for in that article are ERRORFILE and...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2021 at 4:11 pm
A trigger is the perfect approach for this. Some developers just irrationally avoid triggers no matter what.
Be sure to specify option FIRE_TRIGGERS in your BULK INSERT command.
[Edit] My...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2021 at 4:06 pm
If you filter on step_id = 0, you'll get the info for the entire job instead of the final step.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2021 at 2:26 pm
Have you thought about how many rows are in the table to begin with? If 35m and you're deleting 30m, maybe a faster approach, to
begin with, is to insert...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2021 at 2:14 pm
If you're calling a scalar function, it's RBAR.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2021 at 1:03 am
And yet, I've not seen where that actually matters. And, it won't matter unless you're doing RBAR updates of the same row more than once every 3.3 milliseconds because the...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2021 at 4:02 am
If it's a connection pool, then you'll know the benefit... faster connections for your users.
If it's a connection leak, you'll eventually run out of connections.
The disadvantage is that each connection...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2021 at 2:26 pm
Are you sure it's not just a connection pool of some sort? Killing such spids could cause a bit of slowdown.
The opposite of that beneficial thing is that it could...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2021 at 1:12 pm
Your research idea needs to be fresh, relevant, and interesting. Read as much as you can on your topic. Look at textbooks, read journal articles, watch relevant documentaries, and...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2021 at 12:59 pm
Hi,
I am looking to create a case statement that gets different quantities. For example, I would like to see how many orders were created between 6pm yesterday till 6pm...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2021 at 5:45 am
Hi Zidar,
Here's the create table code and attached is a sample output. Hopefully this helps!
CREATE TABLE [dbo].[FactBP](
[CREATE_DATE] [date] NULL,
[CREATE_TIME] [varchar](8) NULL,
[ADJ_REQ_SHIP] [datetime] NULL,
[RELEASED_DATE] [date] NULL,
[RELEASED_TIME] [varchar](8)...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2021 at 5:31 am
you now do groupings based on the timeslot name. No proprietary computations. Fast, simple joins. The ability to adjust your timeslots in the event of banking holidays.
Cool! Got...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2021 at 3:34 am
The only reason I can see for doing such a thing is to have all the files since the last backup in one file especially for when it comes to ...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2021 at 2:40 am
One of the best ways to find subjects to write about is to let them find you. You will have to start reading the best source in the world for...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2021 at 7:19 pm
Just double checking... what's the target here... An Excel spreadsheet or a table? I'm pretty sure that it's not possible to do in a single blob in Excel.
Data...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 8, 2021 at 7:06 pm
Viewing 15 posts - 4,471 through 4,485 (of 59,069 total)