Viewing 9 posts - 1 through 9 (of 9 total)
do you look for sometinh like this:
declare @area table(
AreaID int,
Area_SubAreaID int,
SubAreaID varchar(2)
)
insert into @area
(AreaID, Area_SubAreaID , SubAreaID )
select 5689 , 568901 , '01'
union all
select 5689 , 568903 , '03'
union...
February 23, 2009 at 1:53 am
I do not unsterstand the question
are you looking something like this?
declare @counter table
(
pk varchar(2)
)
insert into @counter
(pk)
values
('1'),
('2'),
('3'),
('10'),
('11'),
('2c'),
('2'),
('23'),
('24'),
('25'),
('1a'),
('1b'),
('1j'),
('2a'),
('2b')
select
pk
from
@counter
order by
convert(bigint ,
substring(pk,1,case
When PATINDEX('%[^0-9]%',pk)> 0...
January 20, 2009 at 5:50 am
Grant Fritchey (11/3/2008)
All you're doing with the -+- operators is simple math, a + adds an equivalent value and a - takes it away. +++@param is the same as 3*@param.
no,...
November 3, 2008 at 7:15 am
I am sorry This is sql 2008.
i repost it in the correct group
November 3, 2008 at 2:02 am
thank you for the explanation
September 3, 2008 at 11:21 am
hi ,
You are saying that table variables always are stored in tempdb.
the reason I was asking the question was the following line from http://blogs.msdn.com/sqlserverstorageengine/archive/2008/03/30/sql-server-table-variable-vs-local-temporary-table.aspx
The table variable is NOT necessarily...
September 3, 2008 at 9:01 am
The question I had, was not the XOR swap but the following,
When I write “Select @variable1 =… , @variable2 =@variable1 + … ;”
October 25, 2006 at 1:18 am
please check for sql 2000
http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=1589
for sql 2005
http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=1608
August 28, 2006 at 12:05 am
Viewing 9 posts - 1 through 9 (of 9 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy