Viewing 15 posts - 121 through 135 (of 155 total)
It's not the sub-query that's your problem, it's mixing variable assignment with returning a result set.
You can do this:-
Select MyField From MyTable
Or This:-
Select @MyVar = MyField From MyTable (as long...
June 7, 2012 at 6:32 am
Hmm, that might be worth a punt. I'm away from work until Wednesday but I'll definiely give this a try. Nice lateral thinking:cool:
June 1, 2012 at 8:20 am
I don't get an actual error message. I'm just getting the #err# appearing in the matrix cells. Basically it's SSRS telling me "I can't work out the value...
May 31, 2012 at 11:46 am
Hmm, not the answer I wanted but thanks anyway.:-)
May 11, 2012 at 10:16 am
Don't get me wrong, I've found this site to be freindly, professional and informative. Alot better than many I've encoutered, in fact. My criticism is definitely around an...
May 10, 2012 at 6:37 am
Speaking as a relative newcomer to the forum I find the point per post system a bit flawed in that it encourages garbage posting. I find this to be...
May 9, 2012 at 6:24 am
I think you want something like :-
Update A
Set A.Address = @StudAddress1
From Student S
Join Address A
on S.PersonID = A.PersonID
Where S.Student_Number = @IDStudent
You'll need to adjust that statement for...
May 3, 2012 at 7:46 am
I just had a very simliar problem. It was on a report I'd developed myself and was occuring in the project in which I'd developed it. Clicking View...
April 30, 2012 at 6:44 am
I'm sorry but I still don't understand the problem. Can you provide some example of what the user would pick and what you'd expect the result to be?
April 30, 2012 at 1:21 am
I guess I just always enumerate my columns so I don't have to worry about the underlying structure of the table changing (such as columns changing position due to datatype...
April 26, 2012 at 9:03 am
I apologise, Lynn, but my inner pedant insists on butting in here.
The first column of your table is an integer field defined with the Identity property. You have to account...
April 26, 2012 at 6:46 am
I think the point is that you want to understand the difference between replacing and trimming and why you use each technique.
A Trim will remove leading or trailing spaces from...
April 25, 2012 at 8:18 am
Oops, my edit crossed over with your post.
Assuming you want to get rid of it regardless of where it is in the string then just replace(MyField, 'Tab', '') (I've...
April 25, 2012 at 6:30 am
Are you sure those are actually spaces? Trimming won't remove tabs, for example.
Try this and you'll see what I mean:-
select LEN(RTRIM('Test '))
Select LEN(RTRIM('Test'))
(In the first select there's a trailing...
April 25, 2012 at 6:20 am
Just had a chance to do a quick read up and this is definitely what I was after. I think my problem was that I just didn't know what...
April 18, 2012 at 5:59 am
Viewing 15 posts - 121 through 135 (of 155 total)