Forum Replies Created

Viewing 15 posts - 616 through 630 (of 1,109 total)

  • RE: Newbie Help Please

    INSERT INTO schedule

    SELECT class_id

    , class_dte

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Selecting a year from an ntext field

    Mark Green (11/22/2007)


    No there isn't a need to use ntext. It just set that format when I copied it in.

    In this case, i.e. if you have control over what...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Selecting a year from an ntext field

    Using substring is one solution, you could of course do a double cast, and use the datetime functions then:

    CAST(CAST(data AS VARCHAR(20)) AS datetime)

    Out of curiosity, is there really a need...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Tables - Filegroups

    Anchelin (11/20/2007)


    Hi All

    I just want to know if one of you have a script that shows which table belongs to which filegroup?

    Thanks in advance

    A

    On 2000:

    SELECT USER_NAME(o.uid) AS owner

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: avoiding to print nulls in select queries

    ckmoied (11/20/2007)


    Thanks Ramesh/Andras Your solutions worked fine, but they are only good for the first row of the table, What about the other rows. All the records are not null.

    You...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: avoiding to print nulls in select queries

    you could cast the int to a varchar (since it is an email it will be textual anyway, and replace nulls with say ''

    Example:

    select coalesce(cast(intcolumn as varchar(10)),'') from mytable

    Regards,

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Retrieve XML sql field into standard SQL result set

    A simple solution (may not be the best though):

    SELECT a.Policy.query('data(./Roles/Role/Name)')

    , a.Policy.query('data(./GroupUserName)')

    FROM xmlTable CROSS APPLY x.nodes('//Policy') AS a(Policy)

    To set it up (for others who would like to play):

    create...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Retrieve XML sql field into standard SQL result set

    Could you please repost your question and escape the < with & lt;

    XML can get filtered out from posts if they are not escaped 🙁

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Using INSERT between dates?

    mick burden (11/19/2007)


    I've used update to add data to records that fall between 2 dates, is it possible to use INSERT in the same way

    update set field1 = 'test'...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Join 2 fields to get initials HELP

    You could also make the (left([First name],1)+left(surname,1)) expression a computed column.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Join 2 fields to get initials HELP

    ritesh (11/19/2007)


    Hi , Im trying to get a new column called initial .. I want to obtain this data from the two columns First name and surname.

    eg. Bob Ryder...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Upgrade from SQL 2000 to SQL 2005

    Chrisb (11/19/2007)


    Yes, it do work in 2000. However, after Upgrading to SQL 2005, it will not work anymore and I want to correct all possible errors before Upgrading to SQL...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Password Encryption in SQl SERVER 2005

    Books online has a good example: http://technet.microsoft.com/en-us/library/ms179331.aspx

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Upgrade from SQL 2000 to SQL 2005

    Also, isn't the information your query returns the page size? In which case it is 8192 in 7, 2000 and 2005. Since 7 is the earliest compatibility mode you can...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Upgrade from SQL 2000 to SQL 2005

    Just a note that this table is still available in 2005, so your query seems to work.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

Viewing 15 posts - 616 through 630 (of 1,109 total)