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...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
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...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 27, 2006 at 8:29 am
So show the whole result...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 27, 2006 at 8:00 am
And what do you want the output to look like?
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 27, 2006 at 7:50 am
Can you give an example?
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 27, 2006 at 5:51 am
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=65291
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
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...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
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...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
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...
http://www.sqlteam.com/item.asp?ItemID=2955
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
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...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
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...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
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...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 26, 2006 at 3:45 am
Good luck ![]()
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 25, 2006 at 12:22 pm
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',...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 25, 2006 at 12:03 pm
Hi Aaron,
You request reminded me of this article...
http://www.sqlteam.com/item.asp?ItemID=1417
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 25, 2006 at 11:49 am
Viewing 15 posts - 481 through 495 (of 683 total)