Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)

  • RE: Setting SSIS Job on SQL Agent

    Thanks...I'll give that a go and see what happens.

  • RE: Setting SSIS Job on SQL Agent

    Hi,

    The SQL Server agent service account has permissions on the .xls and also I have used the UNC notation and that also failed withthe same error.

  • RE: How to insert into foreign key table

    I'm using a stored procedure to do the insert and in this case when a customer places an order I want to capture the customerID and insert that into the...

  • RE: Pass multi values into procedures

    Hi All,

    Below is the solution I used to resolve my issue.

    Thanks for all your help

    DECLARE @Company_Codes VARCHAR(MAX)

    --drop temp table

    IF OBJECT_ID(N'TEMPDB.dbo.#temp',N'U') IS NOT NULL

    BEGIN

    DROP TABLE #temp

    END

    CREATE TABLE #temp (CODE...

  • RE: Pass multi values into procedures

    Thanks guys!

  • RE: Pass multi values into procedures

    I am not using dynamic sql I'm using static sql and unfortunately I quite baffled as to how to approach this in my code.

    Thanks for your help, I will play...

  • RE: Pass multi values into procedures

    It will be a set of rows as shown below which is a string, so in practise when HCB and RBC are selected it should pass through the query as

    AND...

  • RE: Pass multi values into procedures

    Here is the code as requested

    Thanks

    Declare @Period_End smalldatetime

    , @Branch_Name_Code varchar (10)

    , @Department_Group_Code varchar(10)

    , @Data_Type_Code varchar(3)

    , @Currency_Type varchar(4)

    , @Company_Name_Code varchar (4)

    SELECT

    @Period_End AS Period_End

    , Data_Type_Code

    , Department_Group_Code

    , Company_Name_Code

    , Master

    , Insured

    , Number

    , Claim_Title

    , Date_of_Loss

    , Currency_Type

    , '' as Accounting_Currency

    , Gross_PD

    , Net_INC

    FROM vw_Table_Summary

    WHERE Period_End=@Period_End

    AND Data_Type_Code=@Data_Type_Code

    AND Branch_Name_Code=@Branch_Name_Code...

  • RE: Deleting huge data from a table

    I'm getting compilation error when use your example code and the reason is due to 'DELETE top ( @BatchSize )', I'm using sql server 2000 and I believe this doesn't...

  • RE: Deleting huge data from a table

    The recovery mode is set to SIMPLE

    Thanks

  • RE: Deleting huge data from a table

    I'm deleting a certain records in the table...also the link you provided doesn't work unfortunately

  • RE: While Loop

    I used the dynamic sql as suggested and it works perfectly.

    Thanks alot for your help 😉

  • RE: Converting Columns to Rows

    I have found a solution using a cursor but if anyone knows any other solution then please let me know

    declare @temp table

    (ID int,

    Name varchar (20)

    )

    insert into @temp

    (id,

    name

    )

    SELECT...

  • RE: Optional grouping depending on selected parameter in reporting services

    Thanks for your help Jon!

Viewing 14 posts - 1 through 14 (of 14 total)