Wednesday, March 21, 2012
Distibution servers ...
the feeling that restoring from last nights backup isn't going to get things
back to normal? I ask because we are going to build a replication solution
that will fall under Sarbanes Oxely issues, one of which is documented
business continuity plans. Our solution will likely have a dedicated
distribution server and even though we haven't even budgeted hardware yet, I
am having visions of a major meltdown and a trip to the mental ward.
P.S. to Hilary Cotter. I think your replication book is great. I would
suggest that a follow up title would be a book (or additional chapters in a
new edition) that deal with such questions as replication headaches during
recovery and restoration. At least from personal experience, our worst days
as IT people are when we are under the gun to restore failed services.
Bob Castleman
DBA Poseur
Nope. Basically you need to cluster your distributor and hope for the best.
There is a kb article which describes how to recover from this.
http://support.microsoft.com/default...b;en-us;886839
I am working on an article of my own explaining how to do this.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Bob Castleman" <nomail@.here> wrote in message
news:uzw0o4EcFHA.3204@.TK2MSFTNGP12.phx.gbl...
> So what happens when the Distribution Server blows a gasket? Somehow I get
> the feeling that restoring from last nights backup isn't going to get
things
> back to normal? I ask because we are going to build a replication solution
> that will fall under Sarbanes Oxely issues, one of which is documented
> business continuity plans. Our solution will likely have a dedicated
> distribution server and even though we haven't even budgeted hardware yet,
I
> am having visions of a major meltdown and a trip to the mental ward.
> P.S. to Hilary Cotter. I think your replication book is great. I would
> suggest that a follow up title would be a book (or additional chapters in
a
> new edition) that deal with such questions as replication headaches during
> recovery and restoration. At least from personal experience, our worst
days
> as IT people are when we are under the gun to restore failed services.
>
> Bob Castleman
> DBA Poseur
>
|||Thanks for the reference.
In your book there is mention of a second volume for merge replication. Is
this still in the works? Is there a publication date?
Thanks,
Bob
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:uy11nLFcFHA.720@.TK2MSFTNGP15.phx.gbl...
> Nope. Basically you need to cluster your distributor and hope for the
> best.
> There is a kb article which describes how to recover from this.
> http://support.microsoft.com/default...b;en-us;886839
> I am working on an article of my own explaining how to do this.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "Bob Castleman" <nomail@.here> wrote in message
> news:uzw0o4EcFHA.3204@.TK2MSFTNGP12.phx.gbl...
> things
> I
> a
> days
>
Sunday, March 11, 2012
Displaying parameter list in report header
Somehow it never evaluates anything after the first item in the array. 1st
below is the expression... 2nd is the custom code. I don't know what I'm
doing wrong...
1.
=code.ParameterList(Parameters!ProgCatCode.value(0))
2.
Public Function ParameterList(ByVal Parameter as Object) as String
Dim sParamItem as Object
Dim sParamVal as String = " "
For Each sParamItem in Parameter
If sParamItem Is Nothing then Exit For
sParamVal &= sParamItem & ", "
Next
Return sParamVal
End FunctionFigured it out..
"gdjoshua" wrote:
> I'm trying to display a parameter list of items to a textbox in the header.
> Somehow it never evaluates anything after the first item in the array. 1st
> below is the expression... 2nd is the custom code. I don't know what I'm
> doing wrong...
> 1.
> =code.ParameterList(Parameters!ProgCatCode.value(0))
> 2.
> Public Function ParameterList(ByVal Parameter as Object) as String
> Dim sParamItem as Object
> Dim sParamVal as String = " "
> For Each sParamItem in Parameter
> If sParamItem Is Nothing then Exit For
> sParamVal &= sParamItem & ", "
> Next
> Return sParamVal
> End Function
>|||What was it that you figured out. Share it with us.
EROK
"gdjoshua" <gdjoshua@.discussions.microsoft.com> wrote in message
news:1D6BB58A-C00C-496C-A675-3FBFBED4E332@.microsoft.com...
> Figured it out..
> "gdjoshua" wrote:
>> I'm trying to display a parameter list of items to a textbox in the
>> header.
>> Somehow it never evaluates anything after the first item in the array.
>> 1st
>> below is the expression... 2nd is the custom code. I don't know what
>> I'm
>> doing wrong...
>> 1.
>> =code.ParameterList(Parameters!ProgCatCode.value(0))
>> 2.
>> Public Function ParameterList(ByVal Parameter as Object) as String
>> Dim sParamItem as Object
>> Dim sParamVal as String = " "
>> For Each sParamItem in Parameter
>> If sParamItem Is Nothing then Exit For
>> sParamVal &= sParamItem & ", "
>> Next
>> Return sParamVal
>> End Function|||I had a similar issue, so I can tell you the things I tried.
1. His primary issue with the custom code was what he was passing into the
function. Parameters!ProgCatCode.value(0) will only give the value at index
0, but Parameters!ProgCatCode.value without the parentethis will pass in the
entire array
2. One way around having to write custom code is to use the Join function.
Join(Parameters!ProgCatCode.value, ", ") gives you all the selected Values.
Join(Parameters!ProgCatCode.label, ", ") gives you all the selected Labels,
which might be better in some cases. Your Value might be numeric data and
meaningless to the user, but the Lable you made to display in your drop down
list might be what the user really wants to see.
"Erok" wrote:
> What was it that you figured out. Share it with us.
> EROK
> "gdjoshua" <gdjoshua@.discussions.microsoft.com> wrote in message
> news:1D6BB58A-C00C-496C-A675-3FBFBED4E332@.microsoft.com...
> > Figured it out..
> >
> > "gdjoshua" wrote:
> >
> >> I'm trying to display a parameter list of items to a textbox in the
> >> header.
> >> Somehow it never evaluates anything after the first item in the array.
> >> 1st
> >> below is the expression... 2nd is the custom code. I don't know what
> >> I'm
> >> doing wrong...
> >>
> >> 1.
> >> =code.ParameterList(Parameters!ProgCatCode.value(0))
> >>
> >> 2.
> >>
> >> Public Function ParameterList(ByVal Parameter as Object) as String
> >> Dim sParamItem as Object
> >> Dim sParamVal as String = " "
> >> For Each sParamItem in Parameter
> >> If sParamItem Is Nothing then Exit For
> >> sParamVal &= sParamItem & ", "
> >> Next
> >> Return sParamVal
> >> End Function
> >>
>
>|||Rob,
sicne the others did not thank you, I'll say it for them.
THANKS!
"Rob 'Spike' Stevens" wrote:
> I had a similar issue, so I can tell you the things I tried.
> 1. His primary issue with the custom code was what he was passing into the
> function. Parameters!ProgCatCode.value(0) will only give the value at index
> 0, but Parameters!ProgCatCode.value without the parentethis will pass in the
> entire array
> 2. One way around having to write custom code is to use the Join function.
> Join(Parameters!ProgCatCode.value, ", ") gives you all the selected Values.
> Join(Parameters!ProgCatCode.label, ", ") gives you all the selected Labels,
> which might be better in some cases. Your Value might be numeric data and
> meaningless to the user, but the Lable you made to display in your drop down
> list might be what the user really wants to see.
Saturday, February 25, 2012
displaying % in value
Hi
I am calculating percentage using expression. I want to display % at the end of the result.
If I use P1 or P0 somehow it multiplies the result with 100 I guess.
Here is what my calculated value is
15.384515
and I want to display 15.38%
Using P1 or P0 I am getting 1,538.5%
How can I get the desired result?
Any help would be appreciated.
Regards
Amit
Yeah I always thought that was funny the way RS handles formating %.
You can try dividing your value by 100 and them formating it. I think the percent format requires a number between 0 and 1
e.d =format((field.value)/100,"P0")
that should give you "15%"
|||You are great Nialhannon.
Thanks for your help. Your solution helped.
Regards
Amit
|||I remember those issues, and I ended up doing the /100 in the dataset (or Stored Procs)
|||Hi niallhannon,
I also have a similar problem in formatiing the data after rendering to excel.
The Field value is a percentage.
If there isn't any value zeros are getting displayed.
So if i use a format expression #,# (not to display anything in the cell),the percentage field is getting disturbed and is not getting displyed with two decimal places.
Kindly help me out in this issue.Its a bit urgent.
Thanks in advance
Nalini
displaying % in value
Hi
I am calculating percentage using expression. I want to display % at the end of the result.
If I use P1 or P0 somehow it multiplies the result with 100 I guess.
Here is what my calculated value is
15.384515
and I want to display 15.38%
Using P1 or P0 I am getting 1,538.5%
How can I get the desired result?
Any help would be appreciated.
Regards
Amit
Yeah I always thought that was funny the way RS handles formating %.
You can try dividing your value by 100 and them formating it. I think the percent format requires a number between 0 and 1
e.d =format((field.value)/100,"P0")
that should give you "15%"
|||You are great Nialhannon.
Thanks for your help. Your solution helped.
Regards
Amit
|||I remember those issues, and I ended up doing the /100 in the dataset (or Stored Procs)