Forum Replies Created

Viewing 15 posts - 26,056 through 26,070 (of 26,490 total)

  • RE: SSMS SQL editor problem

    Adds the silly "TOP 100 %" to a view with an order clause; while this seems to work when you run the query while editing it, the order may not...

  • RE: Shrinking Log file?

    Yes, you can.  But if it needs to grow again due to database updates or maintenance procedures, you will take a performance hit.

  • RE: Convert Date to number format

    select convert(char(8), getdate(), 112)

  • RE: Changing Recovery mode from simple to Full

    You shouldn't see any real hit on your server during the change.

  • RE: Restore Problem

    Have you checked the SQL Server Logs for the day that the full backup, differential backup, and transaction log backups you are attempting to restore were taken?  If no backup...

  • RE: Computed Column Using User Function

    Just curious, but does the index on the initials need to be unique?  If so, how will the individuals in question know what their unique initials are when you finish...

  • RE: Changing Recovery mode from simple to Full

    I would do it before users get on the system.  After you switch to full recovery mode, do a full backup and then start your transaction log process to start...

  • RE: math functions in SQL?

    Also, convert your data from int to float before using and that you aren't passing the log10 function a 0 (zero) value.

  • RE: math functions in SQL?

    LOG in Excel defaults to base 10, where as LOG in SQL is the Natural Logarithm  (same as ln in Excel) of a number.  In SQL you need to use LOG10.

    hth

  • RE: Importing data from a binary file in SQL 2000

    Here is my suggestion without looking at the data, import the data into a temporary table as text (character data), then convert it as you move it to your database. ...

  • RE: Shrinking Log file?

    Yes

  • RE: how many columns is ''''too many'''' ?

    I agree with Aaron if you are going to keep your database in 3NF.  Again, however, I'd also still say "It depends".  Yes you can keep the database in 3NF,...

  • RE: Rewrite SQL with ANSI for 2005- HELP!!

    Or try this:

    select

        MAIN_CODE,

        SUB_CODE,

        NAME,

        DAYS = (select

                    INTVALUE

                from

                    PINF p2

                    right outer join PINF p3

                        on (p2.MAIN_CODE =* p3.MAIN_CODE

                            and p2.SUB_CODE = p3.SUB_CODE

                            and p2.NAME = 'DAYS'))

    from

       ...

  • RE: Rewrite SQL with ANSI for 2005- HELP!!

    How about showing us the code you wrote in 2005?

  • RE: Restore Problem

    Also, you can query msdb.dbo.backupset to see what backups were completed if you don't have access to the logs for the time in question.

Viewing 15 posts - 26,056 through 26,070 (of 26,490 total)