Viewing 15 posts - 12,241 through 12,255 (of 15,381 total)
I guess my previous answer was not enough?
Try looking at the error message.
@Portfolios or @PortfolioObjectID cannot both be null, one must be populated
@Portfolios or @PortfolioObjectID cannot both be null, one...
April 25, 2012 at 1:59 pm
This example works with your sample data.
;with Data(Name, DefaultValue, DayValue, Building) as
(
select 'MrA', 1, 'monday', 'A' union all
select 'MrA', 1, 'monday', 'A' union all
select 'MrA', 1, 'monday', 'A' union all
select...
April 25, 2012 at 1:32 pm
Personally I would not store this total in your database. It makes updates and deletes way more difficult than they need to be. If you need this type of thing...
April 25, 2012 at 1:26 pm
Or you might be able to use ROW_NUMBER() based on your brief sample data and the output.
April 25, 2012 at 1:09 pm
April 25, 2012 at 1:02 pm
Lynn Pettis (4/25/2012)
Sean Lange (4/25/2012)
April 25, 2012 at 12:44 pm
Without some context of your dynamic sql it is shooting in the dark. Can you post some details about what you are trying? At least the code you are running.
April 25, 2012 at 12:40 pm
I did find a post right on this site with some code that will list this exactly as I understand you are looking for.
http://www.sqlservercentral.com/Forums/Topic1104688-8-1.aspx
April 25, 2012 at 12:36 pm
The problem is that xp_dirtree does not return data in a format that is going to help put this back together. It looks like you are trying to get a...
April 25, 2012 at 12:32 pm
LOL that would certainly be a good candidate as a "feature" to remove in some version.
April 25, 2012 at 12:15 pm
It doesn't check for SSNs issued from Connecticut for people born and raised in Hawaii.
ROFL!!!! 😛
April 25, 2012 at 9:38 am
Figured I would dig a little and try to refresh my memory, it has been awhile since I had to deal with SSNs.
April 25, 2012 at 9:34 am
If you are just using this as random dates just update your table to change the 2/29 values to something else, or delete them. Then your previous update code will...
April 25, 2012 at 9:25 am
Viewing 15 posts - 12,241 through 12,255 (of 15,381 total)