Forum Replies Created

Viewing 15 posts - 271 through 285 (of 601 total)

  • RE: Job interview question (DBA/Developer)

    Seems to me if you don't know, you don't know.

    There's really no point in cramming for an interview trying to fill in simple quick answers to concepts you're not good...

  • RE: SQL Server 2012 Gotcha with Identity Column

    TheSQLGuru (11/14/2013)


    Nevyn (11/14/2013)


    To DBAs, this isn't important, because *we* know that identity columns are arbitrarily assigned. However, the users of the report in question are accustomed to seeing mostly consecutive...

  • RE: finding break in sequence

    This one is not so bad since you are looking for a break in an integer sequence.

    Just outer join to the next record (id+1) and check for the null.

    This will...

  • RE: Many to Many Recursive CTE

    PugMaster (2/19/2014)


    Hi Sean

    Unfortunately it is a system I have inherited and the table holds 6.8 million rows there is another column that flags if the second column is a child...

  • RE: Sub-Query Help for an update statement

    If you gave us some sample data and DDL we could likely make this much simpler.

    Your example doesn't really tell us all we need to know.

    I imagine what you...

  • RE: Insert multiple rows in a table with a single select statement

    Luis Cazares (2/12/2014)


    CROSS APPLY works similar to an [INNER] JOIN and OUTER APPLY works similar to LEFT [OUTER] JOIN. Maybe that will help you to understand it better.

    This article series...

  • RE: Converting big integers into DateTime

    To convert to a date, you need to be able to specify the format of the dates you are sending in. And it does not sound like you know...

  • RE: Character Field Declaration

    Technically, every time I have run that command, it has started raining sometime thereafter. Not always right away, but my server isn't very powerful.

    So I think the options were...

  • RE: get list of last non null values

    I also tweaked to Nevyn's solution so that it will produce the correct answer (Nevyn's solution is very good but I think it should include WHERE rownum=1.)

    Yep. Was trying to...

  • RE: get list of last non null values

    create table dimdate (datevalue date)

    create table totalsdata (datevalue date, totalvalue int)

    insert into Dimdate

    values(getdate())

    ,(dateadd(day, 1,getdate()))

    ,(dateadd(day, 2,getdate()))

    ,(dateadd(day, 3,getdate()))

    ,(dateadd(day, 4,getdate()))

    ,(dateadd(day, 5,getdate()))

    ,(dateadd(day, 6,getdate()))

    ,(dateadd(day, 7,getdate()))

    ,(dateadd(day, 8,getdate()))

    ,(dateadd(day, 9,getdate()))

    ,(dateadd(day, 10,getdate()))

    ,(dateadd(day, 11,getdate()))

    ,(dateadd(day, 12,getdate()))

    insert into TotalsData

    values(getdate(), 1)

    ,(dateadd(day, 3,...

  • RE: Basic SQL Logic (Need some help with approach)

    D'oh!

    It was too early in the morning and I did it the old way

  • RE: Basic SQL Logic (Need some help with approach)

    You look like you are on the right track. If you created a calendar table it might simplify and speed things up (instead of having the dateparts), but your...

  • RE: SSIS 2012 - Storing ConnectionStrings in Environments Question

    Well, you can build the connection string with an expression appending the application name to a string parameter, and then map the parameter to the environment, I think.

    Haven't done it,...

  • RE: Developers and SSIS Packages settings in Visual Studio

    I would not mess around with logins at all.

    The easiest for you would be to agree with your team on a package password (it is seperate from any connections/users).

    Change the...

  • RE: Developers and SSIS Packages settings in Visual Studio

    1) Develop using own accounts. One service account would be a major headache.

    2) I am liking project deployment model so far. The catalog and environments make deployments easier. ...

Viewing 15 posts - 271 through 285 (of 601 total)