Viewing 15 posts - 556 through 570 (of 683 total)
Who are you responding to there, Tareg? It seems like it's Amit - in which case I agree. But rsharma's post seems to do what you need, no?...
March 28, 2006 at 7:18 am
Hi Stephen,
No, that's not really possible - well, not unless you're striving for a performance nightmare
In my opinion you don't have the best...
March 28, 2006 at 7:11 am
Oh.
Can't you even create a view which uses STR, and export that?
March 28, 2006 at 6:39 am
Just for fun...
--data
declare @t table (name varchar(10), age int)
insert @t
select 'John', 26
union all select 'Jame', 32
union all...
March 28, 2006 at 5:17 am
I agree with you there Gila.
Since 'a between b and c' is interpreted as 'b <= a and a <= c' (I believe - and...
March 28, 2006 at 3:23 am
And here's a slightly "crazier" option...
--data
create table #table1
(id int ,
myvalue varchar(20)
)
March 28, 2006 at 3:13 am
Hi Daryl. Interesting problem - thanks for posting it
Off the top of my head, here's one possibility...
--data
create table #table1
(id...
March 28, 2006 at 3:09 am
I guess you can simply "pad out" those columns. Something like this...
SELECT id, STR(id, 12) AS IdRightAligned FROM SYSOBJECTS
March 28, 2006 at 1:55 am
There are a few techniques. Here's my preferred method...
--data
declare @t table (jobcardn_fk varchar(10), Technician_code varchar(100))
insert @t
select 'jc01', 'TC01'
union all...
March 27, 2006 at 3:37 am
All 3 methods use a tally/numbers/value table and old value setting trick, but that's definitely the neatest yet! Well done, Jeff...
March 27, 2006 at 3:23 am
Bill - Why do you keep asking the same question in different threads?
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=267409
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=267685
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=267396
There might even be more.
March 24, 2006 at 12:09 pm
As I said, I think the formatting of your question made the request difficult to understand. I'd like to understand why what I gave...
March 24, 2006 at 8:58 am
From EXECUTE in BOL:
This example creates a stored procedure with default values for the first and third parameters. When...
March 24, 2006 at 4:53 am
It looks like the formatting of your question made the request difficult to understand.
This does the trick (I think), but I've used an id column as a helper, so maybe...
March 24, 2006 at 3:47 am
LOL - I thought about doing it exactly that way, but ended up going the other way to keep things clear. I guess they're really the same way, but definitely...
March 23, 2006 at 8:09 am
Viewing 15 posts - 556 through 570 (of 683 total)