Viewing 15 posts - 406 through 420 (of 2,469 total)
If I understand this right you may be looking for..
dbcc checkident('tblName', reseed, 1)
April 3, 2006 at 6:07 pm
Andrew...know how you must feel but if you incorporate it as part of the "Monday Blues" then it makes it easier to live with...
A...maybe next time you won't be so...
April 3, 2006 at 2:50 pm
Senthil - if Ryan was online you'd get your solution in a jiffy but since he's not around I'll post his (genius) t-sql...be sure to thank him...
--numbers table declare @Numbers...
April 3, 2006 at 12:42 pm
Along these lines...
DECLARE @string VarChar(6)
SET @string = 'abcd'
SELECT 'abcd' + SPACE(6 - LEN(@string)) String, DATALENGTH(@string) BeforePadding, DATALENGTH('abcd' + SPACE(6 - LEN(@string))) AfterPadding
April 3, 2006 at 10:57 am
No - he was referring more to the "...and inserts another set of characters at a specified starting point."...
However, you may be better off using "Space()" for your padding...
April 3, 2006 at 10:51 am
your post reminded me of a similar one some time back...while all the bonehead movers are fighting to get in their posts first here's an empathetic post to make...
April 3, 2006 at 10:34 am
try subtle hints...crank up the volume on the radio...
just out of curiosity...what's your response to "so it's okay to buy that diamond.."?!?!
April 3, 2006 at 10:11 am
You would have to use dynamic sql...something like this...
DECLARE @tableName varchar(50)
DECLARE @sql varchar(500)
SET @sql = 'CREATE TABLE ' + @tablename + ' (Col1 Int, Col2 VarVhar(50), Col3... )'
EXEC(@sql)
April 3, 2006 at 9:19 am
Seems there's no end to Steve's knowledge-base & talents..
And GPF2^...how nice to have your voice amidst us again...it was so quiet here last week...were...
April 3, 2006 at 7:11 am
Sanket - as a favour to everybody (and yourself)...next time please do not cross-post - it is too time-consuming to respond to a post only to find that others have...
April 3, 2006 at 7:02 am
You mean something like this...?!?!
select a.* from
(select top 5 nameid, nametitle from tblName
order by nameid desc)a
order by a.nameid
April 3, 2006 at 6:55 am
David - just as an FYI - this thread is posted all over the place...here's another thread to follow...
April 3, 2006 at 6:47 am
select top 5 nameid, nametitle from tblName
order by nameid desc
April 3, 2006 at 6:36 am
Viewing 15 posts - 406 through 420 (of 2,469 total)