Viewing 15 posts - 6,871 through 6,885 (of 15,381 total)
SQLTestUser (9/11/2013)
ID Type XID Note
21 Note 1 This is a note
21 Note 2 This is not for 2...
September 11, 2013 at 1:49 pm
When I run it from SSMS connected to ServerTwo I get an error message as expected, but my TRY clause never seems to get triggered.
What do you mean the TRY...
September 11, 2013 at 1:26 pm
Duplicate post. direct replies here. http://www.sqlservercentral.com/Forums/Topic1493862-392-1.aspx
September 11, 2013 at 1:24 pm
Think you just need to specify the sort order.
ORDER BY s2.MonthNo DESC
September 11, 2013 at 1:14 pm
Sure that is pretty simple with a correlated subquery.
Btw, it would be really helpful if you would post ddl and sample data.
create table #SomeTable
(
MyYear int,
MonthNo int,
Volume int,
Cost numeric(9,2)
)
insert #SomeTable
select 2013,...
September 11, 2013 at 10:10 am
jaiswalabhishek22 (9/11/2013)
I need data from all different table with the condition match in join.
And when those values differ they are no longer duplicates. That is what distinct means.
September 11, 2013 at 10:08 am
I have to say that a trigger that is creating a txt file throws up a big red flag to me. That sounds like the wrong tool for the job...
September 11, 2013 at 9:53 am
You are welcome. Glad that worked for you.
September 11, 2013 at 9:40 am
Maybe if you can explain what you are trying resolve we can offer some suggestions.
September 11, 2013 at 8:44 am
timscronin (9/11/2013)
September 11, 2013 at 8:40 am
DISTINCT means to get rows that are unique across the entire row, not just one column. You have "duplicates" but if you look close you will find that at least...
September 11, 2013 at 8:33 am
Sure you can do this pretty easily with a tally table.
;with MyData as
(
select '12th Main St' as StreetName, 1 as FromPremise , 5 as ToPremise
union
select '10th Main St' as StreetName,...
September 11, 2013 at 8:31 am
Do you really need this in another table? This sounds like a great place for a computed column in your original table. That way you don't have to duplicate all...
September 11, 2013 at 7:34 am
rray 44280 (9/10/2013)
September 10, 2013 at 1:51 pm
Steve Jones - SSC Editor (9/10/2013)
I wish I could be in Orlando, or KC.I'll be at SQL Sat San Diego, Denver, and DevConnections.
I wish I could make the KC event...
September 10, 2013 at 10:41 am
Viewing 15 posts - 6,871 through 6,885 (of 15,381 total)