Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Chumley40

    formatting not showing up in report builder 3.0

    I have the exact same report installed in two environments. One of my fields has formatting to bold if value = 1 otherwise default. The value is passed from the database as 1 or 0. = IIF(Fields!LastTempBold.Value=1, "Bold","Default") In one system it works as expected, bolding only those...
  2. Chumley40

    Mon-dd-yyyy conversion

    Thank you for all the potential solutions. I now have it returning in almost all circumstances using a variation of the case statement. I think there must be some bad dateformats because for certain dateranges of data I still get an error. I would like to do something like isdate(field)=1...
  3. Chumley40

    Mon-dd-yyyy conversion

    SQL Server 2012 How can I convert a varchar value into a date field if the data comes across in the following formats: Mar-01-2016 3:20:00 AM Mar-01-2016 NULL '' (this means blank) I have tried numerous cast/convert combinations but keep getting a conversion error. I have tried left 11...
  4. Chumley40

    Conditional joins

    Hi all, I am trying to create sql that only joins to a temp table if the table exists. For example: If parameter a = 1 the final select would be select * from Table t inner join Table1 t1 on t1.field = t.field If parameter a = 2 the final select would be select * from Table t inner join table2...
  5. Chumley40

    Passing muli-value parameter to a multi-value parameter

    I am trying to use the jump to report function and pass a multi-valued parameter to a second report. I have tried using the split and join syntax without success. Both report parameters have the values supplied in the available values selection. I copied the code for the parameter from xml...
  6. Chumley40

    graph with specific column colors

    Has anyone ever created a graph that showed a specific color per result on a bar graph? For example: count of maybe = blue Count of yes = green Count of no = red I can assign a color by sequence – ie: 1st result blue, second result green and third result red, then sort maybe as 1...
  7. Chumley40

    varchar (20) to a number

    any number type that will work for using to do calculations. I get an error on float, numeric, decimal
  8. Chumley40

    varchar (20) to a number

    I have a varchar (20) field with values like: 0.857142857142857 I need to convert it to a number (keeping the accuracy) but keep getting an arithmetic overflow error. Can anyone help me? Thanks! TJ
  9. Chumley40

    Exclude Duplicates by datetime

    Thanks, I will try this and let you know, TJ
  10. Chumley40

    Exclude Duplicates by datetime

    ClientID test dateoftest 1400 Escherichia coli 12/14/12 10:02 1400 Escherichia coli 12/28/12 19:07 6099 Acinetobacter baumannii 10/24/12 10:14 6099 Acinetobacter baumannii 11/26/12 9:32 6099 Escherichia coli 10/24/12 10:14 6099 Escherichia coli 11/6/12 9:32 8054...
  11. Chumley40

    Exclude Duplicates by datetime

    I am trying to get my brain around this. i have a need to create a table that includes the following: Client, test, and then a cound of individual tests with the following rules. This table will be used as a dimension table for a cube Level0 means include all the tests for the client within a...
  12. Chumley40

    How do I write this code?

    Very nice--thank you!
  13. Chumley40

    How do I write this code?

    I have two datasets. The first one is a list of clientid's for a given time period. There are thousands. The second dataset receives the selected clientid's and runs a query based on them. I was using a multiparameter and checking several at a time, but that is cumbersome. Instead, I...
  14. Chumley40

    Pass environment name and database as a parameter

    If I run just the @sql , and replace the detailobjectvalue with ''it runs without error. The field detailobjectvalue is from the main stored proc, So I wonder, can I call a table from outside the @sql or is that just not possible?
  15. Chumley40

    Pass environment name and database as a parameter

    The problem seems to come from plugging it into the case statement. When I follow your suggestion, I still error, but I think it is the way it is cased not the statement itsself. Case When detailobjectvalue like '%^MRN' then (Exec @SQL) else ' ' end as clientdisplayname,
  16. Chumley40

    Pass environment name and database as a parameter

    I want the users to choose a database @Environment. Then the applications plugs in the current servername + .dbo. + @environment + tablename. How do I do that? Her is my case statement that I want it done in: Case When detailobjectvalue like '%^MRN' then (select top 1 cv.clientdisplayname...
  17. Chumley40

    Image from stored proc not showing in rdl

    Is there a trick to displaying an image field on an rdl? I have an image datatype returning, drag the image tool over, change to database, choose the correct field then have tried all the types of images allowed and I still can't get results. Any tips? SQL 2008R2
  18. Chumley40

    concatenate all fields into one text field

    I am trying to do this. Take a table that returns one colum like this bobby suzi debbie I want to create one field from this that has bobby,suzi,debbie how do I write this?

Part and Inventory Search

Back
Top