Forum Replies Created

Viewing 15 posts - 466 through 480 (of 898 total)

  • RE: Query Help

    Lowell (7/18/2012)


    the function attached to this article is recommended by myself any my peers:

    http://www.sqlservercentral.com/articles/Tally+Table/72993/

    +1

    Definitely. The other method uses a While loop which might give performance issues.

  • RE: Query Help

    Edited: Incorrect response removed.

  • RE: sql server

    raghuldrag (7/18/2012)


    company_no location_no issue_no lot_no quantity confirmed_qt.... value ...

  • RE: how to login into ssms

    You can try logging into the system with Windows Authentication if you have administrator rights

    You can then change the password for sa and also add new users

  • RE: sql server

    raghuldrag (7/17/2012)


    em wrote query like

    select a.company,b.location,b.stockno,b.lotno,c.value

    from header a

    inner join

    storage b

    on

    a.company=b.company

    and a.location=b.location

    inner join

    accounts c

    on b.issueno= b.issueno

    and a.company=c.company

    and b.location=c.location

    and b.stockno=c.stockno

    Does the above query work for you?

    The table structure you have...

  • RE: sql server

    How did you decide on the lotno's?

    Do you have any other columns in these 2 tables or any other tables associated with these tables?

    compny location lotno amount

    -----------------------------

    A chen d77 3000...

  • RE: Filtering the data generated by the DENSE_RANK() function

    You can change the query as below

    SELECT*

    FROMcte_Rooms R

    WHEREEXISTS ( SELECT * FROM cte_Rooms RInn WHERE R.HotelID = RInn.HotelID AND R.RoomID = RInn.RoomID AND RInn.DenseRank = @diff )

  • RE: Table Lock

    SQL Server handles this by itself if you use the ISOLATION LEVEL as READ COMMITTED

    You can check the below link for more details in Isolation Levels

    http://msdn.microsoft.com/en-us/library/ms173763%28v=sql.90%29.aspx

  • RE: Hierarchical Query to Return All Children

    The CTE method I could come up with

    ; WITH cte_Recursive( Parent, Child, RN, Level ) AS

    (

    SELECTT.Orgunitcode, T.Childorgunitcode, ROW_NUMBER() OVER ( ORDER BY Orgunitcode ) AS RN, 1 AS Level

    FROM@TEMP AS...

  • RE: Last Modified

    geidy_killer89 (7/13/2012)


    my database [sahia] the table [carti] i want to automaticaly change the [datead] field , with the curent date

    when i insert or update a record. I've tried...

  • RE: how to get current, previous 9 week numbers & also next 6 weeks number for any month

    Your explanation is not very clear

    Can you provide some more details along with an example and sample results

  • RE: why can't we create a clustered index for the views.

    If you want to create an Index on a View, the View must be created using the "WITH SCHEMABINDING" option

    This restriction has been enforced to avoid any changes to schema...

  • RE: Primary Key update

    Matt Miller (#4) (7/12/2012)


    Kingston Dhasian (7/12/2012)


    Try the below steps:

    1. Update the appropriate NOLIVRE and CODEEMPLACEMENT in Inventaire first to NULL

    2. Update the appropriate CODEEMPLACEMENT column in LivreEmplacement table by using...

  • RE: Primary Key update

    Try the below steps:

    1. Update the appropriate NOLIVRE and CODEEMPLACEMENT in Inventaire first to NULL

    2. Update the appropriate CODEEMPLACEMENT column in LivreEmplacement table by using your query

    3. Update the appropriate...

  • RE: Primary Key update

    Andy Hyslop (7/12/2012)


    Hi

    This error means that you have a foreign key referencing your table.

    To perform this update you will have to remove the constraint Fk_Inventory_BookLocation from the table

    I would be...

Viewing 15 posts - 466 through 480 (of 898 total)