Forum Replies Created

Viewing 15 posts - 481 through 495 (of 921 total)

  • RE: Columns properties-metadata

    It might be easiest to just get this information using SQL-DMO, where they are all properties of the column object, except for "Description"; is that an extended property?

    --Jonathan

  • RE: Max size of datafiles

    Use one file per filegroup and one filegroup per drive array. Use up to 80% of disk capacity. If your arrays are twelve-drive RAID 10 on a four-channel...

  • RE: date/time formats

    
    
    SELECT CAST(CAST(LEFT([Date],3) + 1900 AS char(4)) + '-' + STUFF(RIGHT([Date],4),3,0,'-') + ' ' +
    STUFF(REPLACE(REPLACE(STR([Time]/100,8,2),'.',':'),' ','0'),4,0,':') AS datetime)
    FROM StrangeDates

    --Jonathan

  • RE: Returning Nth row

    quote:


    I decided to go with adding a bitmask to the parameter table and have now found the following code to return the...

  • RE: Jonathan hit the 500 posts

    quote:


    I hail thee, o mighty newborn SQL Server Guru.

    May thy fountain of wisdom never run dry and may thy attitude never...

  • RE: Performance problems while Looping

    quote:


    You can add constraints to each table and them build a view to union the tables together. The end effect should...

  • RE: What datatype to use?

    I would use image.

    --Jonathan

  • RE: Backup Status

    You omitted not only the percentage but also the entire option. Try:

    
    
    RESTORE DATABASE DB1
    FROM DISK = 'K:\Backups\DB1.bak'
    WITH
    MOVE 'DB1_Data' TO 'k:\SQL\DB1_data.mdf'
    ,MOVE 'DB1_Log' TO 'l:\SQL\DB1_Log.ldf'
    ,REPLACE
    ,STATS

    --Jonathan

  • RE: relationships between tables

    quote:


    Can you think of any logical reason why a referenced key would need to be unique? I haven't checked this in...

  • RE: How should boot.ini look w/ 4GB

    quote:


    So if we do use the /PAE and only have 4GB, is that ignored or should we remove it?

    Darren


    November 14, 2003 at 2:00 pm

    #482133

  • RE: script to select top x rows

    sp_msforeachtable 'SELECT TOP 5 * FROM ?'

    --Jonathan

  • RE: relationships between tables

    quote:


    quote:


    but if one wants just the ID to be a foreign key then one...

  • RE: Utilizing AWE

    quote:


    So if we turn that off and reboot, it should access more than 2GB, correct?

    Darren


    Set...

  • RE: Utilizing AWE

    Don't use AWE with only 4GB of memory in the server; use just /3GB. AWE is for managing memory above the 4GB boundary.

    --Jonathan

    Edited by - Jonathan on 11/14/2003 ...

  • RE: relationships between tables

    quote:


    Would it help if you made the ID column in the "one" table your primary key, then create an index on ID...

Viewing 15 posts - 481 through 495 (of 921 total)