Forum Replies Created

Viewing 15 posts - 13,216 through 13,230 (of 15,381 total)

  • RE: Dynamic SQL Error

    bteraberry (1/18/2012)


    Sean Lange (1/18/2012)


    I second the opinion of not doing dynamic sql like this. Your whole query is only a single simple select statement. Even if this is "internal" only...

  • RE: A Tough One, At Least For Me

    Maybe I am misreading the OP but there was never any mention of anything other than inserts. Either way the OP has figured out the solution. 😀

  • RE: Unique key

    shah.simmy (1/18/2012)


    hi this is just que i am confused.

    how many unique key we can have in a table?

    if a data coming from xml format type,hw you can store in...

  • RE: Joining 2 tables, with all values from first

    Please see the first link in my signature. You need to provide ddl (create table), sample data (insert statements) and a clear explanation of what your desired output is based...

  • RE: Dynamic SQL Error

    I second the opinion of not doing dynamic sql like this. Your whole query is only a single simple select statement. Even if this is "internal" only you are still...

  • RE: A Tough One, At Least For Me

    adams.squared (1/18/2012)


    The Merge and Output worked like a charm.

    Thanks

    Glad that worked you and thanks for letting us know.

  • RE: A Tough One, At Least For Me

    fahey.jonathan (1/18/2012)


    We are not trying to do an UPDATE or a DELETE, so using the OUTPUT clause with those statements does not help.

    We want to get the value of a...

  • RE: A Tough One, At Least For Me

    fahey.jonathan (1/18/2012)


    The OUTPUT clause is going to work only with the MERGE statement.

    From BOL: "Returns information from, or expressions based on, each row affected by an INSERT, UPDATE, DELETE, or...

  • RE: A Tough One, At Least For Me

    The others will work but the Output clause is a bit more flexible and is more of the preferred way. Ping back if you need some help.

  • RE: A Tough One, At Least For Me

    Take a look at the Output clause. http://msdn.microsoft.com/en-us/library/ms177564.aspx

    This would be a great starting point for doing exactly what you are trying to do.

  • RE: Conditional Trigger Question

    Yeah that should work just fine.

  • RE: Conditional Trigger Question

    yes...

    ...of course the trigger will always fire, your condition is just not going to execute the code inside your if block. Splitting hairs perhaps but very important to understand.

  • RE: Table design bias to rows or columns

    I have never heard of this vertical vs horizontal but I would use your first schema. The second one is just plain strange to me. A transaction does not have...

  • RE: concatenating two name fields into a single field

    rbond 51820 (1/17/2012)


    Sometimes I just don't know enough to ask all the right questions......

    Asking the right question is really tough, especially when it is new. There are lots of people...

  • RE: concatenating two name fields into a single field

    I see...I am by no means an SSRS guru. I can barely spell it. Interesting that the syntax is different for concatenation than in tsql. Either way, glad you were...

Viewing 15 posts - 13,216 through 13,230 (of 15,381 total)