Forum Replies Created

Viewing 15 posts - 31 through 45 (of 66 total)

  • RE: Can I use Case?

    Control-of-Flow Language is the section that refers to the Case statement.

     

    And yes I know that GOTO is messy but I don't think there is another way around it in this...

  • RE: Maybe a simple question

    Yes, Yes, Yes. 

     

    I want my default to be grid and then through a command change it to text.

     

    Steve

  • RE: Maybe a simple question

    Yeah  I was looking for a program command like a SET command.

  • RE: How do Increase the time out time in Enterprise Manager?

    It is a select with a sum and group by. 

     

    Tools-> Options are set to 4, 0, 0

     

    'right click on the server name, select properties, tab connection, in the second square exist...

  • RE: how to add one second

    Why did you add % 60?  Second answer seems to work as expected.

     

    Happy New Year!

    Steve

  • RE: how to add one second

    Riddle me this batman...

    (and no I'm not the orginator of this discussion)

    What if you want the number of Seconds since some time period?

     

    Let say you want to know the number...

  • RE: how to add one second

    Why do you want to do this?  What are the requirements?

     

    Here is a fun "Select"

     

    SELECT DatePart(s, Getdate()), DatePart(s, Getdate()) + 1, GetDate(), DateAdd(s, 1, GetDate())   

  • RE: Question of the Day for 20 Dec 2004

    Perhaps this was too complicated.  But I have created a fun APOST to add a second Apost to any string.

    So O'Brien

    is returned

    O''Brien

     

     

    Here is the code

    Function funApost(X) As String

    On Error GoTo...

  • RE: More than one file for transaction log

    Back to the original comment...

    What if the database is receiving 300  committed transactions per second?  What if its 60K per second?

    People having a large volume of transactions beleive that many...

  • RE: More than one file for transaction log

    Well we had a report from a Microsoft Conference that the number of files for transaction logs should match the number of processors on the server, thus preventing I/O contention...

  • RE: Question of the Day for 04 Nov 2004

    Great Suggestion!

  • RE: Question of the Day for 04 Nov 2004

    Here is the original and another method.

    It works from 1743 to 9998

    Steve

     

    Declare @Year_Begin as int, @Year_End as int,

          @IndependeceDay as char(10), @DayofWeek as char(10)

    If...

  • RE: Question of the Day for 06 Oct 2004

    BOL states

    The ListAvailableSQLServers method returns a NameList object that enumerates network-visible instances of Microsoft® SQL Server™ 2000.

     

    Wouldn't that make "A" the correct answer?

  • RE: Backup file paths

    Here is my final SQL query that I used to get this information.

    DECLARE @olddatabasename as sysname,@backuppath as NVARCHAR(4000)

    SELECT @backuppath = MAX([physical_device_name]) FROM [msdb].[dbo].[backupmediafamily]

    WHERE  [physical_device_name] like '%' + @olddatabasename + '%'...

  • RE: Backup file paths

    Thanks Peter, but it only has the .mdf and .ldf files not the location of the .BAK.

     

    Still looking,

     

    Steve

Viewing 15 posts - 31 through 45 (of 66 total)