Forum Replies Created

Viewing 15 posts - 136 through 150 (of 926 total)

  • RE: SQL in SSIS

    Check this Link

  • RE: RESEED identity with no gaps has existing data

    My question would be, why you want this behavior especially on the primary key which is having an Identity? Why you want to avoid gaps in a identity???

  • RE: rows to columns

    How about this :

    /* ACTUAL TABLE */

    DECLARE @Actual TABLE (ReportDate date , DatabaseName varchar(10), ReportID int , TotalSum bigint )

    INSERT INTO @Actual

    SELECT '2016-06-26', 'Test1' , 1, 150

    UNION ALL

    SELECT '2016-06-27',...

  • RE: expression looking for special characters

    Please check this link

  • RE: rows to columns

    sample data and desired output will be a lot helpful.

  • RE: UNION with CASE statement

    Its always better to share the query in text instead of a image it make things a lot easier for the folks.

    Following will achieve the result:

    SELECT

    Zone, ItemCode, [Products], GrossWt

    FROM

    (

    SELECT...

  • RE: SSIS performance bottle neck - SELECT from Oracle? INSERT INTO SQL 2014?

    Well there can be many scenarios for example one possible case can be that you are running your package on the Db machine, and there is not enough memory for...

  • RE: SQL: How to combines two results into one after case statement

    It would be wise to wait for your answer on your original thread. Instead of opening a new thread. Where u haven't mentioned any details.

    Please refer to the following link...

  • RE: Transpose data

    Declare @Actual Table

    (

    ItemState varchar(10)

    , Car varchar(10)

    , Truck int

    , Boats int

    , Planes int

    )

    insert into @Actual

    select 'old', 'volvo', 89, 65, 67 union all

    select 'new', 'pinto', 102, 55, 12...

  • RE: rows to columns

    Well, the Clue is in you Sample data generation query. if you build your query according to that logic you will be able to get your desired output.

    something like this:

    WITH...

  • RE: UNION with CASE statement

    please read all the comments above your reply and also read this Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

    and then reply....

  • RE: UNION with CASE statement

    BWFC (6/28/2016)


    To do this:

    CASE WHEN Quantity = 'TotalQ'

    You need to take the quotes off 'TotalQ', like this:

    CASE WHEN Quantity = TotalQ

    This will not work as in when UNION is...

  • RE: Dynamic Table Creation

    I have updated your query to avoid into error you are getting. following is the code

    DECLARE @TBLNAME varchar(8000) = 'Employee'

    DECLARE@SchemaName varchar(200) = 'dbo'

    DECLARE @InsertColumnList nvarchar(max)

    DECLARE @SelColumnList nvarchar(max)

    DECLARE @INSERTSQLSTRING nvarchar(max)

    DECLARE...

  • RE: SQL Server Memory Change

    Well, you have already restricted SQL SERVER on 10 gb. which means u have 6 gb for OS and other thing.

    Upon checking, I found that Maximum server memory set in...

  • RE: What does Copy-only Backup do?

    Handy thing only if you remember it at that time 😛

    Nice question Ben and thanks for sharing.

Viewing 15 posts - 136 through 150 (of 926 total)