Viewing 6 posts - 16 through 21 (of 21 total)
wow, that works, i just have to decipher it now!
you're a genius, if you were a guitar player you'd be jimi hendrix...
the datasets are usually going to be really small...
April 6, 2012 at 1:59 pm
ColdCoffee (4/6/2012)
April 6, 2012 at 1:18 pm
yes sir, here would be the result table:
CREATE TABLE [dbo].[distancetest2](
[FromStop] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ToStop] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[dist] [numeric](3, 1) NULL
) ON [PRIMARY]
INSERT INTO DISTANCETEST2 (FromStop, ToStop, dist)
select 'A','B', '3.5'...
April 6, 2012 at 1:01 pm
Thanks for the advice mr. lutzm. my logic fails me on this one...
ok here's a table and sample data:
CREATE TABLE [dbo].[distancetest1](
[StopName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[dist] [numeric](3, 1) NULL
) ON [PRIMARY]
INSERT...
April 6, 2012 at 12:18 pm
thanks for that, i looked around your site, could only find an article called 'Dynamic SQL and SQL injection' and that didn't seem to apply to my case... 🙁
November 18, 2011 at 1:28 pm
i know how to do the 'All' option, i do it like this:
where line = case when @line = 'All' then line else @line end
i just don't know how to...
November 18, 2011 at 12:37 pm
Viewing 6 posts - 16 through 21 (of 21 total)