Forum Replies Created

Viewing 15 posts - 5,101 through 5,115 (of 15,381 total)

  • RE: Joining where values do not equal one another

    jhinch (4/23/2014)


    I apologize for not using the proper forum etiquette. This was my first post ever, and I overlooked the etiquette section before posting. I will follow the...

  • RE: Joining where values do not equal one another

    jhinch (4/23/2014)


    I have two select statements; one for open purchase orders, one for open customer orders. I would like to be able to combine the query based on i.item...

  • RE: Help with Syntax error

    You don't specify any columns in your select statements.

    INSERT INTO PARCS_DB.dbo.tbl_Utilities_CUB_LiveValue

    (Value)

    SELECT

    FROM RTPCUBHIST_001.runtime.dbo.v_live

    WHERE Tagname IN ('BOA001_STM_TOTAL.Total','BOA002_STM_TOTAL.Total','FQI_DW_A_01.Total')

    The select portion needs to know what column(s) to...

  • RE: how can i restrict the query on query window that contain *(astric)

    BrainDonor (4/23/2014)


    There was an article on this quite some time back: http://www.sqlservercentral.com/articles/SELECT+*/68324/.

    Just shoot me if I ever work in a place that uses that implementation!!! Even the author agrees it...

  • RE: Field definition in view

    pdanes (4/23/2014)


    Sean Lange (4/23/2014)


    Can you simply cast your stuffed column as a varchar?

    SELECT VLTO.SkupinaAutoID, cast(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(STUFF

    ...

  • RE: Field definition in view

    Can you simply cast your stuffed column as a varchar?

    SELECT VLTO.SkupinaAutoID, cast(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(STUFF

    ...

  • RE: how can i restrict the query on query window that contain *(astric)

    kumar4ashwani (4/23/2014)


    how can i restrict the query on query window that contain *(astric)

    EXP:-

    select * from emp

    want to stop this king of query,only for the selected column should be allow.

    Short...

  • RE: Microsoft SQL triggers on columns

    Steve Jones - SSC Editor (4/21/2014)


    CDC is an enterprise only feature as well. That can be an issue.

    The CDC stuff can get complex and be cumbersome to deal with, especially...

  • RE: Difference in variable definition

    djj (4/23/2014)


    Thank you!

    I find reading MS help a bit confussing as there are a lot of see something else. If you are lucky they even include a...

  • RE: Trigger and commit

    Krishna1 (4/22/2014)


    I need the insert of table a and c to be successful even though insert to be fails.

    code sample

    drop table a

    go

    create table a

    (a1 integer identity, a2 integer)

    go

    drop table...

  • RE: Difference in variable definition

    djj (4/23/2014)


    Eirikur Eiriksson, I read the info and it does not give a reason.

    technet

    It is recommended that SET @local_variable be used for variable assignment rather than SELECT @local_variable. For more...

  • RE: Help with Join removing NULLS that need to be displayed

    jennigirl (4/22/2014)


    Now I am trying to figure out how to combine these two queries.

    SELECT I.PartNumber, I.Description, I.TimeDateCreated as [Date Part Created], OI.TimeDateCreated as [Last Req Date]

    FROM Item I

    OUTER...

  • RE: What does an ALTER COLUMN actually do at run time?

    john.p.lantz (4/22/2014)


    We ALTER'ed a table - increasing the size (numeric 12 to numeric 17). It took over 40 minutes to run on a table that has 10 million rows....

  • RE: PK

    gbritton1 (4/22/2014)


    Perhaps the question is more, "What is minimum number of rows threshold where a PK starts to pay off?"

    Seems to me, if a table only ever has 1 row,...

  • RE: Converting CDbl to SQL

    t-sql doesn't have a double but you can easily get the results you are looking for.

    1/([NUM_STOP]-1.0) AS [TL Equivilent]

Viewing 15 posts - 5,101 through 5,115 (of 15,381 total)