Click here to Skip to main content
15,891,650 members
Home / Discussions / Database
   

Database

 
GeneralRe: Sql server Pin
Blue_Boy28-Mar-09 0:47
Blue_Boy28-Mar-09 0:47 
GeneralRe: Sql server Pin
anup keshari28-Mar-09 1:04
anup keshari28-Mar-09 1:04 
GeneralRe: Sql server Pin
Blue_Boy28-Mar-09 1:08
Blue_Boy28-Mar-09 1:08 
GeneralRe: Sql server Pin
anup keshari28-Mar-09 1:17
anup keshari28-Mar-09 1:17 
GeneralRe: Sql server Pin
Eddy Vluggen29-Mar-09 1:33
professionalEddy Vluggen29-Mar-09 1:33 
GeneralRe: Sql server Pin
anup keshari29-Mar-09 23:55
anup keshari29-Mar-09 23:55 
GeneralRe: Sql server Pin
Eddy Vluggen30-Mar-09 2:36
professionalEddy Vluggen30-Mar-09 2:36 
GeneralRe: Sql server Pin
Eddy Vluggen30-Mar-09 6:15
professionalEddy Vluggen30-Mar-09 6:15 
Result
         0
        111
       22222
      3333333
     444444444
    55555555555
   6666666666666
  777777777777777
 88888888888888888
9999999999999999999
Here's my homework;
DECLARE @R AS INT
SET @R = 0
DECLARE @FILL AS INT
SET @FILL = 10
DECLARE @NUMCNT AS INT
SET @NUMCNT = 1

DECLARE @ROWSTR AS VARCHAR(100)
DECLARE @I AS INT

WHILE (@R < 10)
BEGIN
      SET @ROWSTR = ''

      SET @I = 0
      WHILE (@I < @FILL)
      BEGIN
            SET @ROWSTR = @ROWSTR + ' '
            SET @I = @I + 1
      END

      SET @I = 0
      WHILE (@I < @NUMCNT)
      BEGIN
            SET @ROWSTR = @ROWSTR + CAST(@R AS VARCHAR)
            SET @I = @I + 1            
      END

      SET @R = @R + 1
      SET @FILL = @FILL - 1
      SET @NUMCNT = @NUMCNT + 2

    PRINT @ROWSTR
END
Suspicious | :suss:

I are troll Smile | :)

GeneralRe: Sql server Pin
anup keshari30-Mar-09 6:34
anup keshari30-Mar-09 6:34 
GeneralRe: Sql server Pin
Eddy Vluggen30-Mar-09 8:05
professionalEddy Vluggen30-Mar-09 8:05 
AnswerRe: Sql server Pin
Luc Pattyn28-Mar-09 6:55
sitebuilderLuc Pattyn28-Mar-09 6:55 
JokeRe: Sql server* Pin
Eytukan30-Mar-09 19:05
Eytukan30-Mar-09 19:05 
QuestionMaintaining multiple copies of the db and its contents Pin
Mustafa Ismail Mustafa27-Mar-09 20:40
Mustafa Ismail Mustafa27-Mar-09 20:40 
AnswerRe: Maintaining multiple copies of the db and its contents Pin
Mycroft Holmes28-Mar-09 0:58
professionalMycroft Holmes28-Mar-09 0:58 
GeneralRe: Maintaining multiple copies of the db and its contents Pin
Mustafa Ismail Mustafa28-Mar-09 2:06
Mustafa Ismail Mustafa28-Mar-09 2:06 
GeneralRe: Maintaining multiple copies of the db and its contents Pin
Mycroft Holmes28-Mar-09 15:58
professionalMycroft Holmes28-Mar-09 15:58 
QuestionRun a exe file using xp_cmdshell Pin
inderjmd27-Mar-09 3:01
inderjmd27-Mar-09 3:01 
AnswerRe: Run a exe file using xp_cmdshell Pin
Reza Raad28-Mar-09 23:38
Reza Raad28-Mar-09 23:38 
QuestionLooking for Batch file for open/close Oracle service Pin
E_Gold26-Mar-09 21:08
E_Gold26-Mar-09 21:08 
AnswerRe: Looking for Batch file for open/close Oracle service Pin
scottgp27-Mar-09 1:55
professionalscottgp27-Mar-09 1:55 
QuestionSimple way to search for all special characters in all fields? Pin
Rafferty Uy26-Mar-09 16:12
Rafferty Uy26-Mar-09 16:12 
AnswerRe: Simple way to search for all special characters in all fields? Pin
Rafferty Uy26-Mar-09 16:42
Rafferty Uy26-Mar-09 16:42 
AnswerRe: Simple way to search for all special characters in all fields? Pin
ed575627-Mar-09 5:40
ed575627-Mar-09 5:40 
QuestionReset auto number in Access Pin
~Khatri Mitesh~26-Mar-09 3:50
~Khatri Mitesh~26-Mar-09 3:50 
AnswerRe: Reset auto number in Access Pin
riced26-Mar-09 5:06
riced26-Mar-09 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.