Viewing 15 posts - 2,386 through 2,400 (of 13,851 total)
I don't use the data import wizard, but if you know how to edit the SSIS package it produces, you will see that there is a property called 'Header rows...
September 23, 2020 at 9:06 pm
My head just overheated, trying to understand what your query is trying to do 🙂
Can you explain, in English, what you are trying to achieve?
Even better if you can provide...
September 23, 2020 at 8:43 pm
It's not clear what sort of output you are looking for, but how about this?
SELECT t2.CATEGORY
,t2.ITEMID
FROM dbo.SomeTable t2
WHERE EXISTS
(
...
September 23, 2020 at 4:52 pm
What exactly are you hoping for? Some code to generate a calendar table, or some code which takes a date as its input and returns week number? Something else?
September 20, 2020 at 6:16 pm
Did my response satisfy your requirement?
September 17, 2020 at 3:25 pm
Are all of the job steps running pure T-SQL?
Or are there other task types (eg, execution of SSIS packages)? If so, this task could be deceptively difficult.
September 17, 2020 at 2:43 pm
Do you have any backups of this database?
September 15, 2020 at 7:18 pm
Try this:
DROP TABLE IF EXISTS #T;
CREATE TABLE #T
(
ServiceDate DATE
,Department VARCHAR(50)
,WeekOfYear INT
);
INSERT #T
(
ServiceDate
...
September 15, 2020 at 5:24 pm
Have you tried something like this? The HOLDLOCK helps avoid potential concurrency issues.
MERGE [dbo].[tableone] WITH (HOLDLOCK) T
USING [dbo].tabletwo S
ON (S.PARTID = T.PART_ID AND S.SERIAL = T.SERIAL)
WHEN MATCHED...
September 14, 2020 at 9:38 pm
5. Avoid using reserved words as column names (PERIOD)
PERIOD is not a reserved word in SQL Server. (Nor is it reserved in ODBC, also not on the list of...
September 14, 2020 at 9:32 pm
OK, I've had a coffee now, so brain is out of first gear!
Are you suggesting that SSIS packages run OK after a reboot of the SSIS server, but then at...
September 14, 2020 at 1:46 pm
Since SSIS packages do not share memory with SQL Server and you are not using the DB engine, it seems like it would make sense to reduce that allocation, not...
September 14, 2020 at 1:10 pm
each one has there own opinion. it should be left to them. that idle for mutual respect.
i would like to maintain my code in pastebin.
is there any hard rule...
September 11, 2020 at 4:10 pm
Given any MSKU, what is the lookup logic for getting its Title?
September 11, 2020 at 2:26 pm
if I understand right, you want to do an insert into 2 different temp tables from a CTE in a single query? If so, I don't think that is...
September 8, 2020 at 10:01 pm
Viewing 15 posts - 2,386 through 2,400 (of 13,851 total)