Viewing 15 posts - 511 through 525 (of 4,820 total)
Try this on for size:WITH LEAVERS AS (
SELECT *, Steve (aka sgmunson) 🙂 🙂 🙂
ROW_NUMBER() OVER(PARTITION BY EmployeeId ORDER BY LeftDate DESC) AS row_num
FROM dbo.Employee AS E
WHERE E.Leaver = 1
)
Rent Servers for Income (picks and shovels strategy)
October 4, 2018 at 7:43 am
This is a duplicate post. Please respond only in the original thread, here:
https://www.sqlservercentral.com/Forums/Dialogs/PostDetails.aspx?PostID=1998574
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 4, 2018 at 6:55 am
I have installed BCP utility in Linux server.
when am executing below command...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 4, 2018 at 6:52 am
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 4, 2018 at 6:43 am
I get the feeling this has to do with running a part of the script separately, which might be getting treated differently than if it were all in the same...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 4, 2018 at 6:36 am
The only question worth asking here at the moment is WHY? You are already storing dates as integers and depriving yourself of all kinds of cpu time wasted converting back...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 4, 2018 at 6:15 am
The answer here might depend on the nature of your manufacturing process and ordering system. Some companies go so far as to record multiple SKUs that represent the same item,...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 4, 2018 at 6:05 am
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 3, 2018 at 2:42 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 3, 2018 at 2:38 pm
Within SQL Server, you can run a query to check for the existence of a table:IF OBJECT_ID(N'dbo.SomeTable', N'U')
BEGIN
PRINT 'Starting T-SQL actions...'
--Your T-SQL actions go here
END;
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 3, 2018 at 2:23 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 3, 2018 at 2:17 pm
I start asking how large is the table you are inserting...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 3, 2018 at 6:47 am
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 3, 2018 at 6:29 am
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 3, 2018 at 6:25 am
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
October 2, 2018 at 8:53 am
Viewing 15 posts - 511 through 525 (of 4,820 total)