Viewing 15 posts - 10,906 through 10,920 (of 15,381 total)
I believe the article from Jeff Moden http://www.sqlservercentral.com/articles/T-SQL/71550/%5B/url%5D is exactly what you are looking for.
August 29, 2012 at 8:54 am
Actually I don't think your works Luis.
I added some more data and it doesn't do what the OP asked for originally.
;with MyRank (col1)
as
(
select 6 union all
select 5 union all
select 5...
August 29, 2012 at 8:35 am
Or you could start over at 'a'.
declare @MyChar char(1) = 'z'
select NextLetter = case @MyChar when 'z' then 'a' else char(ascii(@MyChar) + 1) end
Or you could add collation to make...
August 29, 2012 at 8:28 am
Luis Cazares (8/29/2012)
Try this instead:
;with MyRank (col1)
as
(
select 6 union all
select 5 union all
select 4 union all
select 3 union all
select 2...
August 29, 2012 at 8:24 am
Luis Cazares (8/29/2012)
;with MyRank (col1)
as
(
select 5 union all
select 4 union all
select 3 union all
select 2 union all
select 1 union all
select 1 union all
select 1
)
SELECT TOP 5 col1
FROM...
August 29, 2012 at 8:10 am
he said it's an unsupported flag, but doesn't know the number.
Sounds to me like a lot of smoke blowing is going on there. 😛
August 29, 2012 at 8:06 am
Kumar SQL (8/29/2012)
Sno Text
1 Batch 58701, Sub -000 .
2 ...
August 29, 2012 at 7:55 am
This is pretty simple using Row_Number. Please notice how I posted sample data to make this a lot easier for anybody else. You should do something similar in your future...
August 29, 2012 at 7:43 am
kamasat (8/29/2012)
Thank you for your reply.
In my client place, to take backup of the database, in SQL server, there is an option 'Generate Scripts' which is not allowed...
August 29, 2012 at 7:29 am
kamasat (8/28/2012)
I tried using the stored procedure to connect to the external server bu am unable to connect by entering the correct server name, user name and password. I don't...
August 28, 2012 at 2:25 pm
mak101 (8/28/2012)
GilaMonster (8/28/2012)
Set up a server side trace,...
August 28, 2012 at 1:38 pm
mak101 (8/28/2012)
August 28, 2012 at 12:48 pm
Viewing 15 posts - 10,906 through 10,920 (of 15,381 total)