Forum Replies Created

Viewing 15 posts - 46 through 60 (of 444 total)

  • RE: Columns into Rows

    Almost same solution posted here...

    http://www.sqlservercentral.com/Forums/Topic929079-145-1.aspx

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Columns into Rows

    How many scores are you expecting against Each user. Ist it 5 or Less / More than that?

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: SQL Update The multi-part identifier "sa.SMFixed" could not be bound.

    I think problem is here;

    UPDATE SOAllocation

    SET sa.SMFixed = (ar.disbursementValue/(Select c.counts

    FROM temp1 c

    Where c.counts=114))

    From

    SOAllocation sa INNER JOIN

    SOStagingTable ss ON sa.SO = ss.SO AND sa.FiscalYear = ss.FiscalYear

    AND sa.DriverTimeFrame = ss.DriverTimeFrame...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: how can i manage the problem for creating EmployeeId which work as offline and online

    Do you want same EMployeeID from desktop Application and Web Application? WHY?

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: SELECT Issues - Strange Result Layout required.

    I hope you dont mind dynamic sql...?

    CREATE TABLE #mytable

    (

    ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED, --Is an IDENTITY column on real table

    MACHINE_ID NVARCHAR(32),

    TOOL_ID NVARCHAR(32),

    ONHAND INT,

    COLOR NVARCHAR(32)

    )

    --===== All Inserts into the...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: can any one please guide

    You can check the new requirement with the same query. Execute the query with @vVarTime variable first with StartTime and then with End time (or use OR operator in the...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: can any one please guide

    Its just to check the multi dated shift and its end time. you can use variable here.

    Declare @vShiftTable Table (ShiftID int, startTime datetime, endtime datetime)

    Declare @vVarTime datetime

    Declare @vMultiDateTime datetime

    declare @start...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Primary-Foreign Key

    OK. Let me give an example.

    I have one tblEmployee table with EmployeeID as Primary Key and another column DepartmentID.

    Another tblDepartment with DepartmentID as Primary Key and another column...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: can any one please guide

    urzsuresh (5/31/2010)


    my higher person asking us to eliminate the funtions.

    Is there still any problem in solution I posted? I thought you got the exact results?

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Script to Clean Logs Up

    GilaMonster (5/30/2010)


    Atif Sheikh (5/30/2010)


    Yes, Truncate is depricated in SQL Server 2008 as said by Steve. You can check tons of articles and blogs on this on the internet.

    Truncate only was...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Script to Clean Logs Up

    arthur.cooper (5/28/2010)


    That seems to work.

    Now my only issue is that it does not like the truncate_only in 2008. Did they change this for 2008 versus 2005?

    Glad it worked.

    Sorry for...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Primary-Foreign Key

    David Portas (5/28/2010)


    As Ron says, it's not necessarily wrong from a logical perspective. In fact, relationships of this kind which are mandatory in both directions are perfectly common in data...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: List of parameters having default values

    I have submitted a script to accomplish this task. plz comment to make it meor efficient.

    http://www.sqlservercentral.com/scripts/Stored+Procedures/70363/

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: SELECT Issues - Strange Result Layout required.

    I assume the answer to my question is 2.

    Try this;

    Select * from (

    Select a.Machine_ID, a.TOOL_ID as Col1,IsNull(b.TOOL_ID,'') as Col2, Row_number() over (partition by a.Machine_ID order by a.Machine_ID) as rno

    from #mytable...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: SELECT Issues - Strange Result Layout required.

    Is there any defined limit of MachineID in #mytable?

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

Viewing 15 posts - 46 through 60 (of 444 total)