Forum Replies Created

Viewing 15 posts - 2,686 through 2,700 (of 7,429 total)

  • RE: Best practice when to use an index Part II

    quote:


    1. SELECT blala FROM table WHERE field != value

    Is in this case any index used, or does SQL Server always perform a...

  • RE: Restore database error number 3132

    The error means the backup was done using more than one device or backup file and you

    are trying to restore using just one. You need to provide all the backup...

  • RE: @@ServerName

    First, check SERVERPROPERTY('SERVERNAME') and see what it returns. You can

    try executing the following to fix @@SERVERNAME:

    EXEC sp_dropserver 'oldservername'

    EXEC sp_addserver 'newservername', 'LOCAL'

    restart SQL Server service and generally it should be fixed.

    SELECT...

  • RE: Numbering the ResultSet - Equivalent of Rownum

    Unfortunately (and it has been suggested as I made it at least 4 times to reps) no true ROWNUM in SQL 2000. There are a number of tricks you can...

  • RE: one terabyte of data

    Normally I would suggest pushing to the filesystem and stroing pointers to that location for you pages or app to be able to retrieve. But with changes in the way...

  • RE: Smily question

    You know, I don't think the majority of people even have a clue on this one so they jsut ignore it. Of course it is a good one if you...

  • RE: Smily question

    Here I think this is right.

    quote:


    EIGHTBALL

    'Eightball' is a highly uncomplimentary slang word standing for a rather objectionable character ('gold brick', 'goof'). The...

  • RE: How can i find a the date of birthday ?

    Oh, another thought. What day will you use for people who were born leap-day. I didn't account for that.

  • RE: How can i find a the date of birthday ?

    This will give you the age and the people born on that day.

    select

    [id],

    FirstName,

    LastName,

    Date_born,

    DATEDIFF(yyyy,Date_born,GETDATE()) AS Age

    from dbo.users

    WHERE

    DATEADD(yyyy,-(YEAR(Date_born)-1900),Date_born) = DATEADD(yyyy,-(YEAR(GETDATE())-1900),GETDATE())

  • RE: Time Comparison In MS SQL

    How do you want to compare? Need an example of what it is you want to see.

  • RE: how to know the lastest procedure compilation time

    When you say compilation time do ou mean when it was last created/altered or the last time it ran, or something else entirely?

  • RE: comparing specific rows

    Which code are you running?

  • RE: DTS Scheduled Job Failed

    1) What is the error message in the history for each.

    2) What account is SQL Server Agent set to run under?

    3) Is there anything special that these have in common...

  • RE: Exploring reasons for full tempdb Log

    First keep in mind that tempdb is design to automatically flush to make room for other queries use otherwise you would be doing a manual flush everytime a data set...

  • RE: comparing specific rows

    This is how I do it but I do sugegst follow using the TRANSACTION method to be able to recover if you find an error in the data.

     

Viewing 15 posts - 2,686 through 2,700 (of 7,429 total)