Forum Replies Created

Viewing 15 posts - 6,241 through 6,255 (of 13,879 total)

  • RE: SQL comma separated values and a loop

    So ... a single row in the Jobs table can have multiple related rows in the Drops table, is that correct?

    If so, you could make use of the FOR XML...


  • RE: SQL and EXcel

    clucasi (12/7/2016)


    i am trying to convert xlsx to xls using DTS script task,but because the server hasn't got excel installed its throwing an error..Would it be ok to load MS...


  • RE: SSIS2012 - Package parameters - Error: Accessing variable

    Brandon Groom (12/5/2016)


    I had this error also and it turned out to be a source code promotion merge issue with the project file. After the merge, the parameter ID in...


  • RE: To create a stored procedure

    swarun999 (12/5/2016)


    create procedure spgetuserdetails

    (

    @UserId nvarchar(255),

    @Password nvarchar(255)

    )

    as

    begin

    declare @count int

    select @count = count(*) from UsersTable where UserId = @UserId and [Password] = @Password

    if(@count = 0)

    begin

    Print...


  • RE: Query optimization

    One thing you could also try is putting the results of the entire source query into a temp table, then indexing the temp table, then merging from only the temp...


  • RE: Query optimization

    TheBI (12/5/2016)


    Hello,

    I want to optimise the following query that is running so slowly.

    Please help or gimme an advice.

    MERGE dbo.LocalizedCategories AS T

    USING (SELECT L.LanguageID,SC.CategoryID,BC.Value

    FROM (SELECT...


  • RE: ForEachLoop

    It's difficult to diagnose without looking into what the package is doing. Is there an error handler configured on the component which is failing inside the FEL?


  • RE: ForEachLoop

    But on Sql Server Agent it is still runing but I writes error on job history.

    You wrote an error to job history? What problem do you think this is?


  • RE: Sending csv file using sql server 2014 based on condition

    kpmandani (12/4/2016)


    Not only just to determine the number of rows in the text file but based on the count, it should determine (and send) that same text file as an...


  • RE: How to improve performance, when using LIKE (or any other alternative?)

    Eirikur Eiriksson (12/5/2016)


    BOR15K (12/5/2016)


    I have a table of several millions of records for flight ticket. One of the indices is Flight Ticket, so when user searches for ticket 1234567 or...


  • RE: Identify Start Date / End Date in a date column

    Well done. I compared execution plans and my version seems to have the edge. Especially if you add an index on (requestid, eventdate, eventname). Might be worth testing both on...


  • RE: Identify Start Date / End Date in a date column

    I have an inelegant solution to this inelegant problem 🙂 There will be better ways, but this seems to work, at least for the test data provided:

    SELECT

    ...


  • RE: Identify Start Date / End Date in a date column

    If a RequestId has been 'Closed', shouldn't the next RequestId have a different value? If they're all 46444, what's the point of this number?

    Please post your data in a consumable...


  • RE: Sending csv file using sql server 2014 based on condition

    OK. So you want SSIS to 'interrogate' a particular file, which has already been produced by another process, get the row count and then act according to result?

    If so, your...


  • RE: Unable to execute JOB (SSIS package)

    badalkataria (12/3/2016)


    How would I able to figure out that if it is or not?

    You have more than one problem going on here. One is regarding access to an Excel spreadsheet...


Viewing 15 posts - 6,241 through 6,255 (of 13,879 total)