Viewing 15 posts - 13,216 through 13,230 (of 15,381 total)
bteraberry (1/18/2012)
Sean Lange (1/18/2012)
January 18, 2012 at 1:35 pm
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. 😀
January 18, 2012 at 1:14 pm
shah.simmy (1/18/2012)
how many unique key we can have in a table?
if a data coming from xml format type,hw you can store in...
January 18, 2012 at 12:54 pm
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...
January 18, 2012 at 12:49 pm
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...
January 18, 2012 at 12:47 pm
adams.squared (1/18/2012)
The Merge and Output worked like a charm.Thanks
Glad that worked you and thanks for letting us know.
January 18, 2012 at 10:25 am
fahey.jonathan (1/18/2012)
We want to get the value of a...
January 18, 2012 at 10:25 am
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...
January 18, 2012 at 9:22 am
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.
January 18, 2012 at 8:18 am
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.
January 18, 2012 at 7:56 am
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.
January 17, 2012 at 2:21 pm
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...
January 17, 2012 at 2:18 pm
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...
January 17, 2012 at 1:18 pm
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...
January 17, 2012 at 1:08 pm
Viewing 15 posts - 13,216 through 13,230 (of 15,381 total)