Forum Replies Created

Viewing 15 posts - 1,426 through 1,440 (of 3,500 total)

  • RE: best practices for Access to SQl conversion

    I'm sure.

    You could do the cleanup in SSIS, and then once clean, insert the cleaned data into your final table. No MS Access required. And schedule the jobs...

  • RE: best practices for Access to SQl conversion

    The biggest thing is to remove all the VBA data functions that are in the database. Push all the data processing type stuff to SQL Server.

  • RE: SQL 2012 file processing from Access

    If you're doing it from within SSIS, I'd do what Phil said... if you're reading from Access, then you can do this:
    DBEngine(0)(0).Tabledefs("TableName").Columns.Count  will work if you're reading from the...

  • RE: ssrs 2016 pivot capability over tabular models

    You could mock this up in Excel, then use PowerBI Desktop or something for the visuals. Sounds like a good use of SSAS tabular. The "Questionnaire/Survey" pattern is covered by...

  • RE: window function games

    SELECT c.CustomerID
        , SUM(t.amount) AS TotalAmount
    FROM Customer c
    CROSS APPLY (SELECT TOP 2 o.*
                FROM Orders o
                WHERE o.Customer = c.CustomerID) t
    GROUP BY c.CustomerID
    HAVING SUM(t.Amount)>150;

  • RE: Newbie - simple Query Question - function

    If you want YYYY - YYYY then you have to cast the Years as strings, otherwise, T-SQL will interpret the + as the addition operator. Check out CAST()

  • RE: Updating 1 record in Table A with multiple records in Table B

    Welcome to SSC.  It helps everyone if you post CREATE TABLE and INSERT scripts so people can run them and have at least a mockup of what you're dealing with....

  • RE: Using Tools that Fit

    Rod,
    if you have an HDMI port on your computer, send the signal to your TV.  Just display some stuff on your computer screen and some on the TV. That's...

  • RE: Column headers from a date range and populating a matrix

    This is trivial in SSRS.
    Connect to your datasource, create your dataset, drop in a matrix.
    People are on rows, Dates are on columns. Add a parameter for the start...

  • RE: remove spaces in strings

    You could use REPLACE(), but there are no spaces in that string to begin with. 

    DECLARE @TextWithSpaces VARCHAR(100) = 'I have a whole lot of spaces';
    PRINT REPLACE(@TextWithSpaces,' ','');

  • RE: Removing records from SELECT

    Looks like this works...
    You may want to include other rows from both tables, but this should give you the gist of how to do it.
    use AdventureWorks2014;

  • RE: To automatically change the value of a column if a particular date time is reached

    Do you mean like this?  (Note: I had to change your comparison date.)

    DECLARE @CurrTime DATETIME = '2016-09-09 18:13:00.000';

    UPDATE #JobHistory
    SET [Status]=2
    WHERE ModifiedDate<=@CurrTime;

  • RE: Zero to Many relationship

    But that leaves orphan records. Can you not populate the parent table first?

    I supposed you could disable the check constraints, but why would you? Populating the child table...

  • RE: DAX Starter question

    I did that with Store table (contains Surface Area), and Sales. I created a Total Surface Area measure = SUM(Store[SurfaceArea]) and put Store and SalesType on Rows, and Total Surface...

  • RE: Returning Measure from Dim Date.

    Please explain what the measure you're creating is meant to calculate... and how it's meant to work. I think you may have a math error in your formula, but without...

Viewing 15 posts - 1,426 through 1,440 (of 3,500 total)