Viewing 15 posts - 13,831 through 13,845 (of 15,381 total)
Good point Kraig. Just use his query with my order by clause and you should be there. 😉
October 5, 2011 at 2:56 pm
You can add a case statement as a where clause like this:
select Short_Name from t_One where short_name like 'val%'
union
select short_Name from t_One where short_name like '%val%'
order by case when short_name...
October 5, 2011 at 2:55 pm
James Goodwin (10/5/2011)
October 5, 2011 at 12:29 pm
pwalter83 (10/5/2011)
I have a requirement to update the values in a table thru SSIS, however, there is a primary key restriction. The table has a combination of 3 columns as...
October 5, 2011 at 12:25 pm
Yes that is true. Was just being precise about your comment that it would find all records with a single space. 🙂
October 5, 2011 at 11:09 am
Take a look at the undocumented stored procedure. sp_msforeachdb
This will do what you want without the need for dynamic sql that you will encounter in this cursor.
October 5, 2011 at 11:00 am
Paul Bradshaw (10/5/2011)
SELECT 'UPDATE...
October 5, 2011 at 10:56 am
John Mitchell-245523 (10/5/2011)
L' Eomot Inversé (10/5/2011)
I find it quite frightening that so few people know enough about normalisation to get this one right.
I don't. This question is couched in...
October 5, 2011 at 9:43 am
ramadesai108 (10/4/2011)
October 4, 2011 at 3:06 pm
ramadesai108 (10/4/2011)
Can you please take a look at my SP, the challenge is right at (@StartYear IS NULL AND @EndYear IS NULL)) where I need to...
October 4, 2011 at 2:24 pm
Jeff Moden (10/4/2011)
Sean Lange (10/4/2011)
October 4, 2011 at 2:08 pm
ramadesai108 (10/4/2011)
Sean,Casting does work. Now the question is how do i execute? using
EXEC (@query)
or
EXEC sp_execsql (@query)
Thanks.
I could say "Yes". It doesn't really matter...
October 4, 2011 at 1:59 pm
drew.allen (10/4/2011)
Sean Lange (10/4/2011)
October 4, 2011 at 1:21 pm
Viewing 15 posts - 13,831 through 13,845 (of 15,381 total)