Viewing 15 posts - 3,646 through 3,660 (of 4,087 total)
I think this is what you are looking for.
WITH Test(TestField) AS (
SELECT 'aaa'
UNION
SELECT 'abc'
UNION
SELECT 'bbb'
UNION
SELECT 'bcd'
UNION
SELECT 'ccc'
UNION
SELECT 'cccccc'
UNION
SELECT 'cccccccccccccccccccccccc'
)
SELECT *
FROM Test
WHERE NOT TestField LIKE '%[^' + Left(TestField,1) + ']%'
It basically...
August 26, 2011 at 8:38 am
I never said anything about adding square brackets. Those tell SQL to treat your filter as if it were the name of a single item.
You may want to put...
August 25, 2011 at 3:08 pm
Set the DelayValidation property of your File Connection to True.
Drew
August 25, 2011 at 2:14 pm
You're probably missing the space between the "WHERE" and your filter.
Drew
August 25, 2011 at 2:09 pm
Instead of using "SQL command" try using "SQL command from variable". The variable would need to contain the entire SQL command rather than just the filter.
Drew
August 25, 2011 at 9:24 am
paul.r (8/24/2011)
Ultimately I would like to read a specific value from the dtsConfig file.
You should be using Package Configurations to read values from the dtsConfig file. Why re-invent the...
August 24, 2011 at 1:06 pm
bhushan_juare (8/23/2011)
This is not possible using stored procedure
I've never done it, but this link claims that it is possible.
Drew
August 23, 2011 at 7:45 am
Why would you want to? That's like building a table only with columns not with rows.
Drew
August 23, 2011 at 7:40 am
Have you considered using a view? That's also a way to reuse code, but it's still set-based.
Drew
August 19, 2011 at 6:44 am
In your "Lookup" transformation, you need to "Configure Error Output..." to "Ignore Failure" for the lookup error.
Drew
August 18, 2011 at 1:25 pm
I don't understand why you're even using a UDF for this update. It looks like you should just be able to join your tables directly to perform the updates.
Drew
August 18, 2011 at 1:20 pm
Maybe the problem is that you are using a cursor in the first place. Cursors are horribly inefficient and are rarely the optimal solution to the problem.
Drew
August 17, 2011 at 8:11 am
Here is a good example of dynamically changing the connection string to a server connection using the foreach ADO enumerator. It can easily be adapted to dynamically set the...
August 15, 2011 at 8:23 am
Phil Parkin (8/15/2011)
You'd just need to alias accordingly:
Just adding an alias isn't enough. The original solution assumes that the records are unique for MonthYear and Location within their respective...
August 15, 2011 at 7:30 am
You indicate no extension by ending your Regex with a period, e.g., "Filename*." The trailing period is optional if there is no extension, so it is usually omitted, but...
August 12, 2011 at 1:56 pm
Viewing 15 posts - 3,646 through 3,660 (of 4,087 total)