Forum Replies Created

Viewing 15 posts - 91 through 105 (of 463 total)

  • RE: hex to decimal

    Not sure if this is what you are looking for?

    select convert(int, 0xFFFF)

    Select convert(varbinary, 65535)

    ---------------------------------------------------------------------------------

  • RE: Play with string

    you'd use len as suggested by GSquared if its a variable length value,

    Select RIGHT(wday,LEN(wDay)-1)+ LEFT(wDay,1) FROM @tday

    ---------------------------------------------------------------------------------

  • RE: [HELP] dynamic header in cross tabs

    Not sure what you are describing here(images are not displayed), but looking at the topic subject, i think this is what you are looking for?

    http://www.sqlservercentral.com/articles/Crosstab/65048/

    ---------------------------------------------------------------------------------

  • RE: inserts are slow, please help

    thlubbe (1/4/2010)


    Might be your worth reading this article on SSC

    http://www.sqlservercentral.com/articles/Large+Data+Sets/68930/

    A broken link

    ---------------------------------------------------------------------------------

  • RE: How to write query for following problem

    or may be this?

    select name,city,email, sum(amount) as amt

    from tb1

    group by name,city,email

    Having sum(amount) > 500

    ---------------------------------------------------------------------------------

  • RE: Need help with a SQL Query

    You gotta give some test data in a consumable format (sorry if you are just asking for a direction/suggestion only?)

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    Edit: Sorry, dint see the post from Chris.

    ---------------------------------------------------------------------------------

  • RE: need sql

    I guess u were close ( if i am not wrong about your requirement).

    (Please read this for your future posts, (u might get quicker and varied responses)

    http://www.sqlservercentral.com/articles/Best+Practices/61537/)

    DOes this help?

    Create...

    ---------------------------------------------------------------------------------

  • RE: Find duplicate records in a table and update them by duplicate id

    Your insert throws an error I guess(may be because of the identitiy insert)

    Anyhow, if I am anywhere close to what you are looking for, see if this helps please.

    Select...

    ---------------------------------------------------------------------------------

  • RE: Incrementing Values

    If the difference between start and end is within the limit of 2047, then this is 'one' of the method,

    Declare @start int

    SET @start = 12000

    Declare @End int

    SET @end =...

    ---------------------------------------------------------------------------------

  • RE: Help in Bulidng a Query

    dupe I guess,

    http://www.sqlservercentral.com/Forums/Topic838859-338-1.aspx?Update=1

    ---------------------------------------------------------------------------------

  • RE: Help in Bulidng a Query

    Not that I know the answer completely, but it would help all of us here if you can post the data like this and on what basis the amount(last column)...

    ---------------------------------------------------------------------------------

  • RE: Can I use PIVOT for this Problem?

    sean_denney (12/22/2009)


    I'm trying to create output that looks like

    Email, favorite color, product preference...

    You want these to act as columns of your resultset?

    ---------------------------------------------------------------------------------

  • RE: Convert() problem

    Not sure what your problem is, but just to help you to help us to help you,(:-)) post the data like this and show us whats your problem

    CREATE TABLE...

    ---------------------------------------------------------------------------------

  • RE: MSDB..sysjobhistory issue

    Its all about formatting the data I guess, have you tried anything?

    ---------------------------------------------------------------------------------

  • RE: blocking

    'BlKBy' column of sp_who2 (stored procedure) should tell you that!

    ---------------------------------------------------------------------------------

Viewing 15 posts - 91 through 105 (of 463 total)