Forum Replies Created

Viewing 15 posts - 4,156 through 4,170 (of 5,393 total)

  • RE: Correlated Subquery WITHIN a Join

    Great.

    Glad I could help.

    -- Gianluca Sartori

  • RE: Correlated Subquery WITHIN a Join

    You're welcome.

    Let me know if this worked for you.

    -- Gianluca Sartori

  • RE: Group of neighbour entries

    You're welcome.

    Glad I could help.

    -- Gianluca Sartori

  • RE: Insert Into

    If you just want to update table Client, you must use an UPDATE statement:

    UPDATE DB1.dbo.Client

    SET Notes = DB2.dbo.AllNotes.notes

    FROM DB1.dbo.Client

    INNER JOIN DB2.dbo.AllNotes

    ON cid=UserID

    If you also want to insert...

    -- Gianluca Sartori

  • RE: Is 'BACKUP TRANSACTION' valid syntax?

    I know for sure of SAVE TRANSACTION, but I've never heard of BACKUP TRANSACTION.

    -- Gianluca Sartori

  • RE: Insert Into

    It doesn't look like a message you can get from that statement.

    Are you sure there's no trigger on the table?

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    GilaMonster (6/16/2010)


    To start with, because they are not equivalent queries.

    -- some code here

    Oh, don't be too picky, Gail! You know what I mean.

    BTW, they can be equivalent. Just change your...

    -- Gianluca Sartori

  • RE: Group of neighbour entries

    This should help:

    SELECT * into #tmp_table from

    (

    SELECT 1 AS ID, 'ProductA' AS Code, 5 AS Quantity

    UNION ALL

    SELECT 2 AS ID, 'ProductA' AS Code, 5 AS Quantity

    UNION ALL

    SELECT 3 AS ID,...

    -- Gianluca Sartori

  • RE: Decimal to datetime

    shanila_minnu (6/16/2010)


    131402252 decimal is changing to 02/09/2005 8:37:16

    I'm sorry, but I don't see how.

    I don't understand that code. What language is it?

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    Trey Staker (6/16/2010)


    Dave Ballantyne (6/16/2010)


    Damn Damn Damn, ive mislaid my sql magic wand.

    http://www.sqlservercentral.com/Forums/FindPost937995.aspx

    Perhaps if i shouted at the server .....

    skcadavre's comment on that thread cracked me up to tears.

    It's quite...

    -- Gianluca Sartori

  • RE: very urgent linked server issue.

    Just a guess, but maybe the providers are loaded in process and you won't get them back working without restarting SQL Server.

    It's something I experienced in the past with a...

    -- Gianluca Sartori

  • RE: Decimal to datetime

    So, it's not a valid date.

    Probably that field has concatenated data inside. You will have to find out how data is represented in that column. Where does this data...

    -- Gianluca Sartori

  • RE: Synonym with servername\instancename

    I think you confused server and database. Does this work?

    CREATE SYNONYM [dbo].[Product] FOR [06WEBSQL\WEBSQL].[06dw].[dbo].[Product]

    -- Gianluca Sartori

  • RE: Decimal to datetime

    Datetime is represented internally by a float value, where the integer part is the date value and the fractional part is the time value.

    You could try casting with something like:

    select...

    -- Gianluca Sartori

  • RE: Non Disclosure Agreements (What's the point?)

    steveb. (6/16/2010)


    Though this could all change under the Tories.

    I don't want to disappoint you, but when a government changes, the government itself is most likely the only thing that...

    -- Gianluca Sartori

Viewing 15 posts - 4,156 through 4,170 (of 5,393 total)