Viewing 15 posts - 271 through 285 (of 2,469 total)
If the words in your string are separated by spaces then you can use charindex (as Pam suggested)..like this:
DECLARE @String1 VarChar(20) DECLARE @String2 VarChar(20) SET @String1 = 'OneWord' SET @String2 = 'Two...
April 27, 2006 at 12:28 pm
Oh I agree..I'm obsessive compulsive to the point of sickness too..I had a co-worker who (to his credit tried really hard) couldn't for the life of him be consistent with...
April 26, 2006 at 2:05 pm
Sure..but I was addressing CK's.."you HAVE to use column aliasing, whether you use the AS keyword, or not. The AS keyword is optional - but you do have to provide...
April 26, 2006 at 12:11 pm
sorry - I am in a disagreeable mood today..
select au_id, au_lname, au_fname into #AS_Discussion from dbo.authors select * from #AS_Discussion drop table #AS_Discussion
..unless there's still something I...
April 26, 2006 at 8:59 am
Not sure what you mean...
if it is "select col1 NewCol1, col2 NewCol2 into #temp from myTable" then again there is no error on omitting...
April 26, 2006 at 8:25 am
this is completely untried & untested so you need to "play around with it"...
select * from myTable where right(name, 4) = 'mcxl' and col like replicate('[^0-9-]', datalength(col) - charindex(col,...
April 26, 2006 at 8:14 am
My one (& only) experience with classes was so abysmal that I'd sworn off ever taking one again...but that was before the new training centre in FL!
April 26, 2006 at 7:39 am
I believe it was Sean (McCown) who wrote a neat article on using char(39) for single quotes (search this site)...
based on that you could do a ...
select char(39) + char(44)...
April 25, 2006 at 9:02 pm
Have you tried using a subquery instead ?!
In all probability your 2nd machine isn't compatible with the t-sql extension - there is a compliance testing level called "fips_flagger" (check it...
April 25, 2006 at 8:56 pm
Well - I will certainly wish you luck for I think you could use all that you can get..
so you'd have to sort first...
April 25, 2006 at 12:27 pm
Maybe there's more to worry about than mere iJacking...read snippets below and rejoice everytime you walk out of Starbucks with your skin intact...
"An afternoon...
April 25, 2006 at 9:38 am
a mystery that shall remain unsolved until Vandy makes a comeback..
April 25, 2006 at 9:21 am
cross-post...follow link here!
April 25, 2006 at 8:52 am
Great catch...maybe a link to the most read article on dynamic sql should be posted here.
btw..@dept_id is not being used!
ps:we used...
April 25, 2006 at 7:35 am
Viewing 15 posts - 271 through 285 (of 2,469 total)