Monday, March 19, 2012
Controlling the X-Axis
I would like to do the following with my chart:
1. Have the label always appear vertically, and;
2. Limit the number of labels to 20 or less.
Any suggestions?
Thanks,
Forch#1: the chart control uses automatic label positioning based on the
available space. Vertical labels are only used if they don't fit
horizontally.
#2: Assuming you have the "numeric or time-scale" option turned on for the
x-axis, you could probably achieve this by setting the x-axis major interval
and/or min and max values.
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Forch" <Forch@.discussions.microsoft.com> wrote in message
news:61AA4890-A0B4-4BB2-BF5C-7006FC755650@.microsoft.com...
> Hi guys...
> I would like to do the following with my chart:
> 1. Have the label always appear vertically, and;
> 2. Limit the number of labels to 20 or less.
> Any suggestions?
> Thanks,
> Forch
Sunday, March 11, 2012
Controlling errors in Stored Procedure
Hi everyone:
I need to use the "SET ROWCOUNT" statement to limit the amount of data returned to the application in a query, I know that if "SET ROWCOUNT = 0" is not specified at the end of this stored proc all the next queries will return only the amount of records specified in the initial "SET ROWCOUNT" call, so I would like to know if a I can have something like theTRY-CATCH-FINALLY statement (inSQL-92 forSQL Server 2000, not in SQL 2005) to make sure the "SET ROWCOUNT = 0" is sent at the end even if an error israised.
Can it be done?
Thanks for any help.
No, I'm afraid in SQL2000 we can not do the error handling like usingTRY-CATCH-FINALLY block. If you only want to limit the rows returned by SELECT statements, you can use TOP key word instead. For example:
select top 1 * from sysobjects
|||Ok, thanks Lori_jay.
Control/Limit Memory usage
Hello,
I was wondering if there was a setting or a way to limit or restrict the amount of Memory an SSIS package can use? I know that by default the windows OS limits a process (a package in this case) to 2GB and up to 3GB with AWE enable but what if I wanted to say Limit it to 1GB of memory is there anyway to do that? Is there an SSIS Engine setting or Package property somewhere?
Thanks!
See if this helps you. Check out the Buffer size section in this paper:http://www.microsoft.com/technet/prodtechnol/sql/2005/ssisperf.mspx
Control the size of a text box via a report parameter
pages.
However we would like to either limit the field to lets say 4 lines or all
lines via some parameter.
Is there any way to do this?Did you look into using the Left() function to limit the field content to a
certain length based on a report parameter? You could use an expression
similar to this for the textbox value property:
=iif(Parameters!RestrictLength.Value = True,
Left(Fields!LongDescription.Value, 200), Fields!LongDescription.Value)
MSDN documentation for Left():
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctLeft.asp
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Kyle Jedrusiak" <kjedrusiak@.princetoninformation.com> wrote in message
news:eMmW3XeFFHA.3272@.TK2MSFTNGP10.phx.gbl...
> We have some note fields that are very large so reports take up too many
> pages.
> However we would like to either limit the field to lets say 4 lines or all
> lines via some parameter.
> Is there any way to do this?
>
Thursday, March 8, 2012
Control number of options selected in a multi select parameter
I have a report which has a multi-value parameter. Problem is, it can contain up to 100 options.
Is there a way to limit the number of options that is passed to the SQL statement?. EG list has 100 options, user selects 10 but only the first 4 selected options are passed to the SQL statement.
Many Thanks
Delli
I will try an expression for the query parameter (Parameters tab in the dataset properties) which passes your parameter to code-behind function that in turn filters out the parameter values accordingly.|||
After looking into this some more, I’ve found a split
function for MS SQL server, and in PL/SQL. Have system in both databases
:( grrrrrrr
The split function takes in the multi select parameter as a comma separated
list, and creates a virtual table of the results.
By using SQL code similar to the following: select top 10 element
dbo.split('string,split,code',',') I could stop the SQL engine running
for too many selected parameters. A search on Google or msn search ;) will find
codes examples for these functions. Keywords: SQL split function or PL/SQL
split function.
Also helps to inform your users on the front page of the report you have
done this!!!
control concurrent users?
regards,
You can change the "max worker threads" option in SQL Server by running the statements below:
sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'max worker threads',255
reconfigure
go
For more information about this option, please take a look at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_config_09wu.asp
|||the problem is how can i configure my customer's SQL Server configuration. Now, i get one way. is it the right one?
Data Source=XXX;database=XXX;UID=XXX;PWD=XXX;MAX POOL SIZE=5
|||Sorry for misunderstanding. Yes the MAX POOL SIZE property should work in this case.
Tuesday, February 14, 2012
Constraints
How do I create a Constraints for a table column.
I want to limit the user to enter a W or an S how can I do that?
Thanks
Dib
You want a CHECK constraint. You can create a check constraint using the
ALTER TABLE statement, or from Enterprise Manager. See the topic Creating
and Modifying CHECK Constraints in Books Online for details.
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no rights
"Dib" <dNOSPAMshahene@.conNOSPAMsoftware.com> wrote in message
news:e1bbC8fOFHA.3376@.TK2MSFTNGP09.phx.gbl...
> Hi,
> How do I create a Constraints for a table column.
> I want to limit the user to enter a W or an S how can I do that?
> Thanks
> Dib
>
Constraints
How do I create a Constraints for a table column.
I want to limit the user to enter a W or an S how can I do that?
Thanks
DibYou want a CHECK constraint. You can create a check constraint using the
ALTER TABLE statement, or from Enterprise Manager. See the topic Creating
and Modifying CHECK Constraints in Books Online for details.
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no rights
"Dib" <dNOSPAMshahene@.conNOSPAMsoftware.com> wrote in message
news:e1bbC8fOFHA.3376@.TK2MSFTNGP09.phx.gbl...
> Hi,
> How do I create a Constraints for a table column.
> I want to limit the user to enter a W or an S how can I do that?
> Thanks
> Dib
>
Constraints
How do I create a Constraints for a table column.
I want to limit the user to enter a W or an S how can I do that?
Thanks
DibYou want a CHECK constraint. You can create a check constraint using the
ALTER TABLE statement, or from Enterprise Manager. See the topic Creating
and Modifying CHECK Constraints in Books Online for details.
--
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no rights
"Dib" <dNOSPAMshahene@.conNOSPAMsoftware.com> wrote in message
news:e1bbC8fOFHA.3376@.TK2MSFTNGP09.phx.gbl...
> Hi,
> How do I create a Constraints for a table column.
> I want to limit the user to enter a W or an S how can I do that?
> Thanks
> Dib
>