Forum Replies Created

Viewing 15 posts - 6,796 through 6,810 (of 26,490 total)

  • RE: Insert Into with nested Selects

    Try the following:

    Use Lely;

    GO

    Set Identity_Insert dbo.HemTransfer ON;

    go

    Insert into dbo.HemTransfer (TraTrtId,TraAniId,TraDate)

    Select 2, HemAnimal.AniId, HemAnimal.AniBirthday from HemAnimal Where HemAnimal.AniUserNumber = 123456;

    go

    Set Identity_Insert dbo.HemTransfer OFF;

    go

  • RE: Are the posted questions getting worse?

    AYSO does not enforce Offside infractions until U-10. I agree that players should be taught the concept of offside early so that they understand it and don't find themselves...

  • RE: SQL Server Read ismore

    yuvipoy (4/7/2014)


    yes.

    inorder to hide my business process i have renamed the column.

    while pasting here i did not mention as b.column names for the columns.

    For execution plan since it is having

    Would...

  • RE: Are the posted questions getting worse?

    Sean Lange (4/7/2014)


    Lynn Pettis (4/4/2014)


    Sean Lange (4/4/2014)


    Lynn Pettis (4/4/2014)


    Sean Lange (4/4/2014)


    I think I have finally officially lost my marbles. In addition to coaching 2 soccer teams, playing in 2 adult...

  • RE: SQL Server Read ismore

    Here is your code reformatted and using ANSI-92 style inner join:

    Select

    a.*,

    Col5, -- which table?

    Col7, -- which table?

    ...

  • RE: SQL Server Read ismore

    Looking at this query, it won't even run:

    Select a*, Col5,Col7,Col9,Col10,Col12 from Table1 a (nolock), Table2 b (nolock) where a.col1=b.col2

    and a.col3=@value

    order by col4 , col15,col6, col10,col11 desc , col9,col12,col16

    You have...

  • RE: SQL Server Read ismore

    How about providing the actual execution plan for the query as a .sqlplan file instead of pasting a bit of the xml plan?

  • RE: Are the posted questions getting worse?

    Jack Corbett (4/6/2014)


    So on Thursday I was asked to help analyze a batch process for a third-party product that originally took 2 hours and is now 19+ hour...

  • RE: trigger to audit

    Or do you use APP_NAME()?

  • RE: trigger to audit

    Start by looking at the system functions you can use in a query to capture some of the information you require. Not everything you need is in the table(s)...

  • RE: Number of columns in table

    I would go with the ancillary table. Yes, you would have to join to the table to know what newsletters a customer authorized, but the benefit is all you...

  • RE: trigger to audit

    And what others have been saying is that it would be easy to spoof the audit regarding who made the change. Through the connection string it would not be...

  • RE: Rolling 12 month/Period SQL Query Logic

    It is nice that people are willing to take shots in the dark to help solve the problem. It would also be nice if the OP would provide us...

  • RE: Urgent help with STRING in SQL

    dhananjay.nagarkar (4/5/2014)


    Hi Lynn,

    i tried it this way-\--

    when [w].[GHRMS Contingent ID] IS NOT NULL

    -- if the 1st 8 characters meet All 8 are numeric-no...

  • RE: Find sequential numbers

    The following has both a SQL Server 2008 and newer version and a SQL Server 2005 (and newer) version:

    create table dbo.EventsStatus(

    EventDate datetime,

    EventStatus...

Viewing 15 posts - 6,796 through 6,810 (of 26,490 total)