Viewing 15 posts - 1,126 through 1,140 (of 9,643 total)
You need to change your WHERE clause to something like this:
WHERE
d.VendorRelationStatus = ’On Hold’
AND d.ContractEndDate > getdate()
OR (d.VendorRelationStatus = 'Active'
AND d.ContractEndDate >= dateadd(d, +360, getdate())
)
This WHERE clause now says,...
March 4, 2014 at 4:56 pm
When using table-valued functions you need to use the APPLY operator. Your example query should look like this:
select FP.* from dbo.pbaseid as PBI CROSS APPLY Fport(PBI.pbaseid,'us',1,'12/31/2013') as FP;
March 4, 2014 at 4:49 pm
GrassHopper (3/4/2014)
March 4, 2014 at 4:46 pm
I think you can replace both scripts with the File System Task in SSIS. The first one would be a delete task and it won't do a delete if...
March 4, 2014 at 1:46 pm
I think one of these should work for you:
DECLARE @clientDomains TABLE
(
DomainName VARCHAR(1000)
);
DECLARE @DomainShortList TABLE
...
March 4, 2014 at 1:40 pm
Not recommended for use in production, but used for dev/test you run:
to clear the cache to simulate having to read everything from disk.
March 4, 2014 at 1:17 pm
As Sean has said, they aren't tabs, they are carriage returns (CHAR(13)) If they were tabs you wouldn't get multiple rows, you'd get multiple columns in excel.
There...
March 4, 2014 at 1:14 pm
This isn't really the way SSRS is designed to work. There are a couple of ways you could possibly do it, but I haven't tried, nor would I recommend either....
March 4, 2014 at 12:28 pm
Sounds like you may have an issue with the scope. So you probably need something like SUM(TotalTurnover.Value, [Group Name]). Check out BOL, http://technet.microsoft.com/en-us/library/dd283120(v=sql.105).aspx
March 4, 2014 at 12:06 pm
Issues with different white space characters is a pain. You just need to use the CHAR/NCHAR function in the REPLACE, like this:
DECLARE @data NVARCHAR(MAX) = 'EXEC Proc_gen' + CHAR(9)...
March 4, 2014 at 11:50 am
I think you need to look at FailPackageOnFailure and/or FailParentOnFailure properties at the package level.
March 4, 2014 at 11:39 am
Yes, you need either PATINDEX or LIKE in order to do what you want. You'd need to test to find out which one will perform better.
March 4, 2014 at 11:33 am
That value is larger than the max value for BIGINT so you need to use a different datatype like this:
SELECT Cast(('20140304800084500001') AS DECIMAL(20, 0))
March 4, 2014 at 10:18 am
Great. Glad it looks like we were able to piece together something that helped.
March 4, 2014 at 10:16 am
So if, I'm understanding better you need something like this:
DECLARE @d DATETIME;
SET @d = '3-1-14';
DECLARE @sales TABLE
(
period TINYINT ,
...
March 4, 2014 at 9:57 am
Viewing 15 posts - 1,126 through 1,140 (of 9,643 total)