Forum Replies Created

Viewing 15 posts - 1,081 through 1,095 (of 3,221 total)

  • RE: SQL Server Agent job information

    cengland0 (7/27/2011)


    Ninja's_RGR'us (7/27/2011)


    My apologies if I don't like super easy question ;-).

    There's a difference between a hard question and a tricky one that is attempting to have as many people...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Adding a Decimal Value to a DateDiff Statement

    Without knowing the actual values for your StartDate and EndDate, the following works:

    DECLARE @StartDate DATETIME

    DECLARE @EndDate DATETIME

    SET @StartDate = '2011-07-26 11:50:33.420' --arbitrary value

    SET @EndDATE = '2011-07-26 21:50:33.420' -- arbitrary...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Don't show null

    Look at the ISNULL function ...

    http://msdn.microsoft.com/en-us/library/ms184325.aspx

    By the way many who might have answered your question with a tested procedure are hesitant to open attachments not knowing if there may...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Are the posted questions getting worse?

    Craig Farrell (7/25/2011)


    bitbucket-25253 (7/25/2011)


    So to forestall any complaints on another QOD I submitted, it includes creating a schema, a table, code inserting the data, and the settings for auto create...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Are the posted questions getting worse?

    Tom.Thomson (7/25/2011)


    Ninja's_RGR'us (7/25/2011)


    My question got corrected today and all points awarded back.

    It's a little weird ±5 days after the fact and I still don't see the new wording as a...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: guaranteed unique?

    Go here and calculate the probability of it happening

    http://www.vpgenius.com/tools/combin.aspx

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: nvarchar(100) shows length nvarchar(200) for sp_help

    From Books On Line - emphasis added

    nchar [ ( n ) ]

    Fixed-length Unicode character data of n characters. n must be a value from 1 through 4,000. The storage...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: need technique to find duplicates which are causing PK constraint failure during merge

    You may want to use the MERGE statement, for example:

    CREATE TABLE TBLANIMAL(animal vaINSERT INTO TBLANIMAL

    SELECT 'Horse',0,'Giddyup' UNION ALL

    SELECT 'Elephant',1,'Bigone' UNION ALL

    SELECT 'Horse',0,'Giddyup' UNION ALL

    SELECT 'Elephant',1,'Bigone' UNION ALL

    SELECT 'Goat',0,'no...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Top 1 Records in Each Group

    Is this the result you are looking for:

    ;WITH cte

    AS (SELECT Row_Number() OVER(PARTITION BY Sys_Item_Num ORDER BY Trans_date DESC) as rn,

    Sys_SR_Num, Sys_Item_Type_Num, Sys_Item_Num, Trans_date, Rcpt_Qty, Sply_Date, Sply_Qty, Open_blnce,

    Trans_Blnce_Qty, Trans_Open_Blnce FROM...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: problem with retveing data

    Is this what you are looking for?:

    CREATE table #Products(item1 INT,item2 INT,total INT)

    INSERT INTO #Products

    SELECT 1135 , 1190 , 5 UNION ALL

    SELECT 1190 , 1135 , 5 UNION ALL

    SELECT 1120 ,...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Date period from 00:00 to 23:59

    You can remove (actually set to midnight) the value of GETDATE by:

    SELECT DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0)

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: A simple SysProcesses query.

    Tried it using 2008 and it works there as well..........thanks

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Login Properties

    The reference cited simply states that it is defined as DATETIME data type, but does not give its default value. Do you have another reference, for without a defalut...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Peformance issue with zip codes and addresses

    reportmaster (7/20/2011)


    Hi.

    I have a lot districts with zip codes and sales figures. Then i join some addresses to each zip code.

    Finally the user try to filter several districts, render and...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Selecting Max(ID)

    Think this might do it.

    ;WITH cte

    AS (SELECT Row_Number() OVER(PARTITION BY EmployeeID ORDER BY ID DESC) AS rn,ID,EmployeeID,Salary

    FROM @TestTable)

    SELECT * FROM...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

Viewing 15 posts - 1,081 through 1,095 (of 3,221 total)