Forum Replies Created

Viewing 15 posts - 301 through 315 (of 430 total)

  • RE: sp_getrecords to get all records from a table

    Sean Lange (8/29/2013)


    saravanakumar.G (8/28/2013)


    Hi,

    Thanks for the reply.

    Yes. the SP is working if we put single quotes across the tablename ('schemaname.tablename').

    I want to try...

  • RE: Trying to understand Cross Apply

    Right idea, wrong apply! I was so intent on finally coming up with a good use for cross apply that I didn't realize I needed an outer apply. So here's...

  • RE: How to put $ symbol in the query or result set

    SQLRNNR (8/27/2013)


    erikd (8/27/2013)


    Ah. That's weird. Why does that happen? I jumped from 2005 to 2012, and never ran into that happening. I feel pretty lucky :Whistling:

    I should probably clarify a...

  • RE: How to put $ symbol in the query or result set

    Ah. That's weird. Why does that happen? I jumped from 2005 to 2012, and never ran into that happening. I feel pretty lucky :Whistling:

  • RE: How to put $ symbol in the query or result set

    Koen Verbeeck (8/26/2013)


    kakumanukalyan (8/26/2013)


    SELECT ContactID,Concat('$',AVG(TotalDue)) AS [Avergare Total Due]

    FROM Sales.SalesOrderHeader

    GROUP BY ContactID

    ORDER BY 1 ASC

    Not really a fan of doing this in the database layer. If the result is NULL,...

  • RE: how to pass parameters into an openquery ?.

    wolfkillj (8/23/2013)


    Jeff Moden (8/21/2013)


    weston_086 (8/21/2013)


    Bcz i want to put the result of the stored proc into "dbo.INFORMATION" table.but it is giving me an error "unable to begin a distributed...

  • RE: Cool Projects

    Peter Schott (8/23/2013)


    On the tech side, I'm trying to learn more about BIML, PowerPivot, and PowerQuery. Seeing some of the built-in functionality in Excel 2013 has given me a handful...

  • RE: how to pass parameters into an openquery ?.

    I use this with OPENDATASOURCE. I think you can re-purpose the idea to do what you need.

    I generally find this method more readable and reasonable for a human being...

  • RE: Does anyone else...

    Those are cool. And yeah, I don't blame you. I'd hate to just hit f5 on all that outside of a SP/function.

    I call that red letter roulette.

  • RE: and x is NULL <> and x = 'NULL'

    dwain.c (8/22/2013)


    I hate it when OPENROWSET imports a value of ' (empty string in the Excel cell) as an empty string and thus thinks there's extra rows in the input...

  • RE: and x is NULL <> and x = 'NULL'

    aaron.reese (8/22/2013)


    Love it 😛

    Reminds me of one of my favourite jokes:

    Q: Why does Excel get Christmas and Halloween confused?

    A: OCT31 = DEC25 (actually OCT2DEC(31) = 25 but it doesn't...

  • RE: and x is NULL <> and x = 'NULL'

    Koen Verbeeck (8/22/2013)


    You'd be suprised what you can find these days 🙂

    In the same file something was doing MATH on a phone number column during import.

    So 212-555-5555

    or 212-555-5555 /...

  • RE: Does anyone else...

    David McKinney (8/22/2013)


    For more on the xml approach, check out this article (the url is for part 2, but part 1 will give you the introduction.)

    http://www.sqlservercentral.com/articles/XML/66518/

    This looks neat. I'll check...

  • RE: Does anyone else...

    Sean Lange (8/22/2013)


    erikd (8/22/2013)


    Sean Lange wins the Twisting the Knife Before 10am award! Congratulations! 😛

    Not my intention at all. Using sql to help you build sql is good idea and...

  • RE: Does anyone else...

    Sean Lange wins the Twisting the Knife Before 10am award! Congratulations! 😛

Viewing 15 posts - 301 through 315 (of 430 total)