Forum Replies Created

Viewing 15 posts - 3,556 through 3,570 (of 8,755 total)

  • RE: SQL Date column issues in query

    Piling on, don't use implicit convertion

    😎

    DECLARE @startdate DATETIME = CONVERT(DATETIME,'20160101',112);

  • RE: Query calculation over a partition

    Since you are on a 2012 forum then why not use a window function?

    😎

    Note that a POC index like this would be very helpful

    CREATE NONCLUSTERED INDEX NCLIDX_#EXAMPLE_CUST_SALES_INCL_WIN_PRODUCT ON #example

    (customerId ASC,...

  • RE: Are the posted questions getting worse?

    jasona.work (5/26/2016)


    I'm really starting to hate the SSIS Catalog...

    Two servers, same permissions on both. On one, the user can deploy their project no problems (with the deploy project wizard.)

    On...

  • RE: Are the posted questions getting worse?

    Ray K (5/26/2016)


    Hey Threadizens . . .

    The other day (inspired by a couple of SQL Saturday speakers), I started my own blog.

    My most recent entry tackles the very-often-asked-here-on-SSC question, "how...

  • RE: Foreach loop File Not Found in SQL Server 2014, but found in Visual Studio 2012

    cvoss85 (5/26/2016)


    I have an SSIS package which includes a foreach loop to find a file and then archive it to a different folder once other steps are completed.

    When I execute...

  • RE: T-SQL: Dipslaying Data from a Previous Row

    Quick question, can you post the DDL (create script(s)) for the tables, sample data as insert script(s) and the expected results?

    😎

  • RE: "Duplicate" records - How to coalesce?

    Same as before with the added columns, note the added calculated column and a covering index which improves the performance quite a bit, roughly 5 times faster than the self...

  • RE: Are the posted questions getting worse?

    Luis Cazares (5/25/2016)


    Gazareth (5/25/2016)


    jasona.work (5/25/2016)


    Eirikur Eiriksson (5/25/2016)


    Brandie Tarvin (5/25/2016)


    Brandie Tarvin (5/25/2016)


    <singing>

    All the lonely servers. Where do they all come from? All the lonely servers... Where doooo they allllllllllllllllll come from?

    Sigh....

  • RE: "Duplicate" records - How to coalesce?

    Quick suggestion

    😎

    Relies on the sum of the checksum of the identifiers so be aware that there is a change of getting a collision error

    USE tempdb;

    GO

    SET NOCOUNT ON;

    ;WITH SAMPLE_DATA(AFFILIATIONID,BACKAFFILID,ENTITYID) AS

    (

    ...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (5/25/2016)


    Brandie Tarvin (5/25/2016)


    <singing>

    All the lonely servers. Where do they all come from? All the lonely servers... Where doooo they allllllllllllllllll come from?

    Sigh. Wish wish wish I could get...

  • RE: Alter table alter column running long and filling log

    Jeff Sims-413169 (5/24/2016)


    I am running a alter table tablename alter column columnname varchar(66) on a very large table, currently is INT. 1billion rows. Ran 11 hours but...

  • RE: Modifying Agent job steps via T-SQL in bulk?

    TheRedneckDBA (5/24/2016)


    I wouldn't do a direct update statement to the table.

    Using the msdb.dbo.sp_update_jobstep SP would be the way to go.

    +100

    Lot of logic and checks performed in the job...

  • RE: SIMPLE JOIN QUERY

    rk1980factor (5/23/2016)


    I have 3 tables A,B,C

    Here are column and field names

    A:app_no,app_name,app_add

    B:b_no, B_code,B_rates

    C:c_no, C_degree,C_humidity

    There is common field in all 3 tables but their field names are different. (in above example app_no,b_no...

  • RE: Sorting by a NVARCHAR nullable column

    Piling on

    😎

    IF OBJECT_ID(N'dbo.TBL_SAMPLE_ACTIVITY_DATA') IS NOT NULL DROP TABLE dbo.TBL_SAMPLE_ACTIVITY_DATA;

    CREATE TABLE dbo.TBL_SAMPLE_ACTIVITY_DATA

    (

    Workid INT IDENTITY(1,1) NOT NULL

    ...

  • RE: Are the posted questions getting worse?

    jasona.work (5/19/2016)


    yb751 (5/19/2016)


    jasona.work (5/19/2016)


    Brandie Tarvin (5/19/2016)


    Greg Edwards-268690 (5/19/2016)


    Brandie Tarvin (5/19/2016)


    GilaMonster (5/19/2016)


    Lynn Pettis (5/18/2016)


    Found this on my Facebook newsfeed: https://www.packtpub.com/packt/offers/data-week-2016.

    Oooh. Am very tempted to grab both the R and the Data...

Viewing 15 posts - 3,556 through 3,570 (of 8,755 total)