Viewing 15 posts - 31 through 45 (of 119 total)
I usually stay away from expressions when I assign values to variables. I generally use a SQL Task, once you figure it out, I find it easier to maintain.
Also...
March 14, 2018 at 10:55 am
I am surprised no one here mentioned Error Handling like try catch.
Print statements and logging errors will help.
There has to something different when you are running in ssms...
March 8, 2018 at 10:45 am
DECLARE @crlf CHAR(4)
DECLARE @v_SQL varchar(MAX) = ''
SET @crlf = CHAR(10) + CHAR(13)
SELECT @v_SQL = @v_SQL + 'DELETE FROM dbo.Some_Table' + ' ' + @crlf ...
February 12, 2018 at 12:10 pm
Thanks for your confirmation, I did stumble upon the answer knee deep in the documentation.
I have to get one record, get a xml node that contains the total records, then...
August 18, 2016 at 1:28 pm
Try this:
WHERE roofyearbuilt <= YEAR(DATEADD(yy,-17,GETDATE()))
September 30, 2015 at 11:43 am
I saw someone post the idea of a script task and think this option is your best route.
I did this a few times, I just imported the data into one...
August 4, 2015 at 2:37 pm
While I agree with Jeff that working with Excel using SSIS has a lot of drawbacks, I have done what you are attempting.
You can start writing the rows to the...
June 22, 2015 at 11:10 am
Hello,
In the project Properties, on the Debugging tab, ensure the Run64BitRunTime is set to false.
May 29, 2015 at 7:58 am
I agree with all that data conversions should happen in SQL, import all as varchar. I worked with a programmer whom tried determining data types in SSIS and ncoa'd...
April 20, 2015 at 1:18 pm
SELECT column_A,
column_B,
SUM(Column_4)
...
December 5, 2014 at 2:02 pm
Don't know if this is the cause but when you are working with excel go to the Project Properties--->Debugging and set Run64BitRunTime to False
November 5, 2014 at 10:07 am
Not to sound like an advertisement for redgate...(I don't work for this site or redgate)
But Redgate has a great tool in SQL Compare which would be perfect for what you...
October 27, 2014 at 12:44 pm
In regards to my previous post, we have the jobs tied to a pager which the developers take turns monitoring.
So when the processing step checks fails, we are alerted and...
October 23, 2014 at 1:26 pm
We have a job that runs for hours and have another Job that runs this code at a certain time to alert us that the job is running late or...
October 23, 2014 at 12:30 pm
Here is a simple way, create a step called Check Schedule
DECLARE @FirstDayofMonth date
SET @FirstDayofMonth = DATEADD(month, DATEDIFF(month, 0, getdate()), 0)
--print @FirstDayofMonth
IF @FirstDayofMonth <> CAST(GETDATE() AS DATE)
BEGIN
RAISERROR ('Not...
October 14, 2014 at 2:32 pm
Viewing 15 posts - 31 through 45 (of 119 total)