Viewing 15 posts - 481 through 495 (of 683 total)
Here's one crazy technique that will work for your example... ![]()
If it doesn't work for your actual situation, please adjust your example to illustrate...
April 28, 2006 at 8:45 am
It's just a quick (and dirty) way to get a table of numbers. We need them from 0 to 200 because your string can be from 0 to 200 characters in...
April 27, 2006 at 8:29 am
So show the whole result...
April 27, 2006 at 8:00 am
And what do you want the output to look like?
April 27, 2006 at 7:50 am
Can you give an example?
April 27, 2006 at 5:51 am
April 27, 2006 at 5:34 am
Here's one way... ![]()
--data
declare @x table ( id INT, t VARCHAR (200))
insert @x (id,t) values (1, 'These are three words')
insert...
April 27, 2006 at 5:32 am
Hi all,
Here's a simpler way... ![]()
--data
set dateformat mdy
declare @t table (ID int, Date datetime)
insert @t
select 1, '1/1/06'
union all select...
April 27, 2006 at 3:25 am
Hi Sanket,
This is very commonly requested. These articles should help you find the technique that will work best for you...
April 27, 2006 at 3:18 am
Great work, Jeff. I agree with your recommended approach, and that it's crazy design. ![]()
For fun, I thought I'd try to write it without...
April 26, 2006 at 8:06 am
Hi Brett,
I would either simply create the 2 separate UDFs and use those (see here: http://www.sqlteam.com/forums/forum.asp?FORUM_ID=11 for more date UDFs than you know what to do with).
Or, if the above...
April 26, 2006 at 5:32 am
Hi Sateesh
If this is a homework question, please post what you've tried so we can see you've made an effort. ![]()
In any case, please...
April 26, 2006 at 3:45 am
Try this...
--data
if object_id('tempdb.dbo.#t') is not null drop table #t
create table #t (Product int, x varchar(20), Product_Choice varchar(12))
insert #t
select 671703420, 'Department', '158779036X'
union all select 671703420, 'Document',...
April 25, 2006 at 12:03 pm
April 25, 2006 at 11:49 am
Viewing 15 posts - 481 through 495 (of 683 total)