I have a report where I'm showing a list of users to select. When previewing the report, the width of the field is automatically set to the largest label in the dropdown list. But when I change the parameter to have "Multi-Values", then the width is set to a fixed value and a horizontal scrollbar appears. Does anyone know how to have a "Multi-Values" parameter, but keeping the lasgest width of the labels in the dropdown list ?
We have some reports that have optional columns. We have them working very nicely, with the column showing or hiding based on values in the report -- works great.
Except -- when the columns are present, the report spans onto two pages, when exported to PDF, in width. That's understandable, as there's a lot of extra data, and exactly what we want. However, when the columns are not present, we get empty pages instead, because the report doesn't automatically contract back onto the size that fits on one page.
Changing the report to a Matrix won't work, as the hidden columns on some of these come as sets of three, where each column in the three has different formatting (different widths, format codes, etc).
I know we could change the data type or width of a table column in SQl 7 database, but I am not certain if this column is a primary key. Can we change a primary key column width? If we can, how about this column as a foreign key in another table? Will it be automatically updated to the same width? Thanks in advance for your input.
I have a problem using the table object. I have columns that I sometimes want to show, and I want the page to run off the edge and be two pages. However, usually I'm hiding many of the columns and the table "shrinks" enough to fit on one page. When this happens, the table looks right on the first page, but I get blank pages after it, because the report itself will not shrink.
May I know is there a way to control the size of the parameter drop down box? In my current box, the width increase according to the option with label of the longest length, in which causes my report's width to increase out of my control.
I've designed a Reporting Services report that has a multi-value parameter. The report works just great. The only issue I'm running into is that the users are complaining that when they want to select the values, within the multi-value parameter box, they have to scroll it to the sides way too much. This also makes them select values by mistake.
Is there away to inscrease the width of the multi-value parameter box?
Hi there, May be a kind of dumb question, but I have a multi-value parameter that I would like to give users the ability to select from in a SSRS 2005 Report and I was wondering if there was a way to adjust the width of the drop down so the user wouldn't have to scroll horizontally to see a full parameter item. It looks like it cuts off after about 30 characters.
Does anyone know how to control the width of the parameter dropdownlist? If you select "Multi-value" for the parameter (non-sp1 version) the parameter list is in a dropdownlist that is manageable in size. If you do not use the multi-value parameter, it looks like the width of the dropdownlist is determined by the width of the longest text of the returned parameters.
Is there any way to control the width of the dropdown?
I have a subreport on my main report, and the subreport contains a matrix. When I run the report, the subreport seems to expand beyond the width of the main report. The matrix itself does not expand beyond the width of the body of the main report, but for some reason it seems that the subreport does. The subreport does not contain any headers that might be messing up the width. If I cut and paste the matrix from the subreport directly onto the main report, and remove the subreport, it prints fine. But as soon as I include the subreport on the main report it prints with blank pages because the subreport expands beyond the width of the body of the main report. I have checked the width and margins on the subreport and compared to the width of the main report and all looks good. Can anyone help?
I'm trying to read in a flat file (which, admittedly, has one very wide column), and it keeps breaking because of truncation when it tries to read in the file.
I've a report projects where each report has a number of columns and the spec is to have all the columns print-out on the same page. Is there a setting that will auto-scale these columns to fit to the page or will I have to edit the font size and widths manually on each report to fit to the page?
I am trying to create a program that transfers tables to flat files. At this point in time, I have suceeded in created one that creates delimited files.
However, I am now trying to create fixed-width files as you can do with the SSIS designer, but programatically.
Is there a way to programatically determine the width of a column from the source table? I can not seem to find any kind of function or member that stores this information or allows me to retrieve it.
I know what I need to change in order to set a width for a column, but I just don't know how to find the width without just asking the user to provide one.
I have a table named PERSON and a field named PERSON_ID. How can I set this field to Autonumber? I know I have to use the IDENTITY command, but when I view this field in "design" view, all the IDENTITY options are grayed out.
How can I set this field with the IDENTITY properties?
There is a table t1 with two fields, such as, ID NAME 1 Tokyo 2 Xian 3 America
For there are full-width and half-width strings in the values of the two fields, I can not select and get the right records. So I want to transform the two fields ID and NAME, I fail to find the function in the SQL Server 2005. Please give me some advice.
hi, I have a dropdownlist parameter like Today, 1 week ago, 2 weeks ago and I have 2 datetime parameters. What I want is when I select 1 week ago in the dropdownlist parameter I want other date parameters to be today-7 and today respectively. Is that possible?
Hello. I have a gridview that is connected to a sql datat srource witch gets a few columns to populate the GV with. I also have a drop down list where i enable the user to fill the gridview with the values that only match a specific category. What iv done is that i have a selected index changed event on my drop down list that does the following.string kategori = DropDownListKategori.SelectedValue.ToString(); Label1.Text = kategori; SqlDataSource1.SelectCommand = "SELECT [ARTNR], [ARTTYP], [AKTIVITET], [DATUM], [KUND], [PLATS], [KOMMENTAR] FROM [ARTIKEL] WHERE [ARTTYP] = @ARTTYP"; SqlDataSource1.SelectParameters.Add(@"ARTTYP", kategori); SqlDataSource1.DataBind(); Now when i launch the webpage and select a category (kategori) the gridview chanes and displays only the values that match that category but when i slect a new category Visual Studio throes me the following. The variable name '@ARTTYP' has already been declared. Variable names must be unique within a query batch or stored procedure. I thought that the parameter would get a new value but aparently when its set i cant declare a new value inside. What id like to know is how i can modify the above code so i can pass a new value to my select as soon as the drop down changes.
Hi I have below sql procedure CREATE PROCEDURE Qty @make as nvarchar(32)
AS select department as category from tblproducts where department = @make GO
Parameter (@make) will get the value from asp.net page
My Question: Is any possibilities to change the value of parameter when the procedure trigger. Examlpe like below
If @make = 'Sealed Lead Acid' then I need to pass parameter to the database as 'SLA' elseIf @make = 'Photographic' then 'Multimedia' elseif @make = 'cctv and accessories' then 'security'
and so on. I only have six categories. Please help
I read the Tang and Lennan's book 'SQL Server 2005 Data Mining'. It frequently says about changing the value of the algorithm's parameter. I tried changing values for MINIMUM_PROBABILITY in one occasion. However, the dialog box refuses to change the value; for any of 'Value', 'Default', and 'Range'. Similar thing happens when I tried to change the value.
What I can do is delete the parameter, then add it again. Even so, I can only supply the value, not the default value and range (of values).
What happen? Again, is this because I'm using evaluation copy?
I had a profile element named "Country", however, I want it to be named "CountryId". I can change this in the web.config with no problems, but then I need to update the code manually any place Profile.Country is referenced. Also, it seems I would have to write some SQL to update all the values in the profile table from Country to CountryId. Is there an easier way to do this? I'm using Visual Studio 2005 and SQL Server Express 2005.Thanks,Wes
I have a database on sql2000. I want to change the length of a field in Table A, but it is related to another field in Table B. When I tried to change the length of the field in Table A via
ALTER TABLE table ALTER COLUMN field varchar(5).The query analyzer generates the following error.
Server: Msg 5074, Level 16, State 8, Line 1 The object 'UQ__table__77BFCB91' is dependent on column 'field'. Server: Msg 4922, Level 16, State 1, Line 1
ALTER TABLE ALTER COLUMN field failed because one or more objects access this column.While when I tried the same query on the field in TABLE B, the query completed without any errors.
One of our Sales Reps is having issues with a report I've made and as far as I know he's the only one (Out of about 50) who has had this issue. He's running IE 7. What happens is he'll enter in the parameters and run the report and it works fine. But when he goes to change the dates he entered as parameters and then clicks "View Report" again to run the report again, the browser just redisplays the same results and doesn't even generate a new report. It appears as if the browser has cached his previously ran report and then just redisplays it instead of going back to the server and re-generating the report. Has anyone seen this before or have any ideas? I appreciate it.
What is the best way of converting datatime field value 29/03/2005 08:58:27 to 29/03/2005. I only want to remove Time from date and I am using Sql Server 2000. Thanks Arvind
Is it possible, using VB code, to retain a user on a particular page until the status of a certain field in a database is changed? The scenario I am working on is that a person makes a reservation and has to wait until that reservation has been accepted or rejected by the administration.
Dim dsResv As DataSet dsResv = objResv.DALgetResvStatus(resvId)
While (dsResv.Tables(0).Rows(0).Item("resvStatus") = "pending")
dsResv = objResv.DALgetResvStatus(resvId)
If dsResv.Tables(0).Rows(0).Item("resvStatus") = "denied" Then failure.Visible = True LinkButton1.Visible = True
ElseIf dsResv.Tables(0).Rows(0).Item("resvStatus") = "reserved" Then success.Visible = True LinkButton1.Visible = True End If
End While
This is how I tried to do it, but it doesnt seem to work. Any suggestions?
I have to change a due_date field with a varchar(10) to a datetime. I created a new table with datetime but when I imported data into the table it errored out due to the datatype. A varchar(10) going into a datetime(8).
Is there way to resolve this without losing data?. or how do you result this problem?.
The title says it all. I've used ALTER DATABASE, and ALTER TABLE...ALTER COLUMN to change all my character fields from 'Compatibility_42_409_30003' to the default I want ('Latin1_General_CI_AI') on databases converted from SQL7. Now I just have these ntext fields to change...
I have to modify field length in the table, which is part of publication. I tried to use an Enterprise Mgr and received an error message because that table is scheduled for replication. Is any way around this beside temporary stopping and restarting replication? And actually how to do this to be sure that after restart the data will be again in sync. We have SQL Server 2000 Enterprise Edition and Windows 2000 Advanced Server.