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 TouchToneTommy 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. jjefferson

    SSIS FTP transfer date and timestamp filename

    Create a ForEach Loop Container. Set your "collection" property to xxxxx_.* Then put all your processing within this container. It will pick up each file matching the collection pattern and put it through the tasks.
  2. jjefferson

    extra lines in csv export file created by carriage return

    If you are able to modify your dataset query and it is acceptable to have a space where this CrLf is in your data, you might also try something like: REPLACE(yourColumnName, CHAR(13)+CHAR(10), ' ') This will put all your text into one "line" by replacing a CrLf pair with a single space. You...
  3. jjefferson

    Opening a checked-out RDL and making a copy

    Don't know if this will help or even if it answers the question, but here is what I do when I want to clone a report in a project. From VS, in the Solution Explorer, right-click "Reports" and choose Add -> Existing Item... In the dialog that is displayed, scroll to the original report RDL...
  4. jjefferson

    Importing csv file error

    Not sure this will help, but give it a try. This assumes that column 4 in the flat file will only have one character. Right-click and edit your source file in the Connection Managers. Select the "Advanced" topic in the left pane. In the middle pane, select column 4. In the right pane...
  5. jjefferson

    Predefined Report Parameters

    Steve: If you simply want to show "This Month", etc in the dropdown, you can add a parameter and just load in those values. The stored procedure could then receive that as a parameter and make the date range calculations based on the text. Another option may be to add a dataset and populate...
  6. jjefferson

    Need previous month end and current month end data on one row

    This is pretty crude and not sure your data will lend itself to this technique, but maybe it will spark something to get you to your answer. I'll create a temp table (table var in this case) and load in the first few months of your data, in reverse order to illustrate your data does not need to...
  7. jjefferson

    How to format numeric field into varchar while maintaining some decimal places

    To just get rid of the decimal, you could use REPLACE: REPLACE(CONCAT((CAST(id AS VARCHAR(15))), (CONCAT((CAST(package_size AS VARCHAR(15))),(package_unit)))), '.', '')
  8. jjefferson

    conditional join (I think) in SQL

    I'm thinking I would leave the "and comm.type = 'xxx'" out of the JOIN. Even if you have userID's duplicated between SER and EMP, your CASE is going to get the name from the correct table.
  9. jjefferson

    Display string date time field as only time

    You should be able to right-click the textbox that contains your column data reference, select "Text Box Properties...", in the dialog select "Number" in the left pane, then select "Time" in the right pane under "Category:", then select "13:30:00" in the "Type:" section. This should establish...
  10. jjefferson

    How to Insert multiple rows of data (at once) into existing Database Table

    I should have mentioned that SEQUENCE is only available on SQL Server 2012 and up. So you won't be able to use this on earlier versions. If that is the case, I don't know how to do this on an INSERT but it can be done in an UPDATE. If you were to insert these rows first with some unique tag...
  11. jjefferson

    How to Insert multiple rows of data (at once) into existing Database Table

    Check out the CREATE SEQUENCE syntax. That might do what you want, but it won't work with TOP so you'll have to work around that. But some fiddling might yield the desired results.
  12. jjefferson

    How to Insert multiple rows of data (at once) into existing Database Table

    Does this do what you want? INSERT INTO ExistingTable (KeyCol, FirstCol, SecondCol, ThirdCol) SELECT TOP 500 '12345' ,'Testing' ,'Testing' ,'Testing' FROM sys.all_objects
  13. jjefferson

    how to show tooltip for parameter in ssrs 2012

    These options are not currently available in any version of SSRS Report Manager so far. Sorry. I have seen requests for this on Connect but no feedback from Microsoft yet.
  14. jjefferson

    Add Report Builder Definition To Visual Studio/SSDT Solution

    The Report Manager has a "Download" option which will let you drop the RDL into a folder somewhere, and then use "Add Item" to get it into your project. -Jim-
  15. jjefferson

    How to Insert multiple rows of data (at once) into existing Database Table

    Not sure I fully understand your requirement, but here is a quick shot at what I think you are asking. SELECT TOP 500 '12345' AS Column1 ,'Testing' AS Column2 ,'Testing' AS Column3 ,'Testing' AS Column4 FROM sys.all_objects This gives me 500 rows of 12345, Testing, Testing, Testing -Jim-
  16. jjefferson

    Format Painter In Design View

    I've only found two ways: 1) Format a column with the desired characteristics, then append columns from the dataset. The appended column will inherit some (not all) of the attributes of the column to the left. 2) Press F7 and VERY carefully edit the RDL code with copy/paste. You're right...
  17. jjefferson

    Any way to log sent email created by Send Mail Task?

    Re SQL Server 2008 R2 SSIS When we use the sp_send_dbmail procedure in a T-SQL query, the email activity is logged in a system database table. However, I cannot find a similar logging capability with SSIS when using the Send Mail Task. I have the feeling that the feature does not exist, but...
  18. jjefferson

    Report Manager VS. Visual Studio

    The first thought that comes to mind is perhaps the server hosting Report Manager is a beefier machine than your workstation, and maybe does not have competing applications opened at the same time as one might have on their desk. Also, is the Report Manager server the same machine supporting...
  19. jjefferson

    Can I use same field in a query with different criteria

    -SQLBill: Forest for the trees. Been there.
  20. jjefferson

    Can I use same field in a query with different criteria

    You need to say WHERE route < 100 OR (route BETWEEN 200 AND 499) You need the OR instead of AND to get routes less than 100 (0-99). Also, I tested BETWEEN with INT values and it picked up 200 and 499, unlike what SQLBill has suggested. If BETWEEN was not inclusive of the start/end values, I...

Part and Inventory Search

Back
Top