User Profile

Collapse

Profile Sidebar

Collapse
siddu57
siddu57
Last Activity: Mar 25 '08, 11:01 PM
Joined: Feb 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • siddu57
    replied to Retrieving Identity field
    in .NET
    Thank you. That resource is very helpful but I'm not sure how to do this last bit in VB instead of C#:

    Code:
    SqlParameter shipperIDParameter =  new SqlParameter("@ShipperID", SqlDbType.Int);            
    shipperIDParameter.Direction = ParameterDirection.Output; insertCommand.Parameters.Add(shipperIDParameter);
    See more | Go to post

    Leave a comment:


  • siddu57
    started a topic Retrieving Identity field
    in .NET

    Retrieving Identity field

    I have 2 tables - tblOrders and tblOrderDetails . Every time an order is placed, 2 INSERT statements are executed. The first one enters the general order and customer information in the tblOrders table:

    Code:
    INSERT INTO tblOrders (custname, custdetails, orderdate) VALUES (@custname, @custdetails, @orderdate)
    The primary key in this table is OrderID which is an Identity column. This is the foreign key in the tblOrderDetails...
    See more | Go to post

  • siddu57
    started a topic @@identity

    @@identity

    I got two tables

    one table has the fields ie table1

    orderid ofd orderdate customername

    where order id is autonumber

    the other table2

    orderid ofd product id productname


    the problem here is that
    if customer purchases 3 product at a time all the 3 products get the same ofd number ........and any 2 customers can have the same ofd...
    See more | Go to post

  • siddu57
    started a topic @@ identity
    in .NET

    @@ identity

    I got two tables

    one table has the fields ie table1

    orderid ofd orderdate customername

    where order id is autonumber

    the other table2

    orderid ofd product id productname


    the problem here is that
    if customer purchases 3 product at a time all the 3 products get the same ofd number ........and any 2 customers can have the same ofd...
    See more | Go to post

  • siddu57
    started a topic @@identity

    @@identity

    I got two tables

    one table has the fields ie table1

    orderid ofd orderdate customername

    where order id is autonumber

    the other table2

    orderid ofd product id productname


    the problem here is that
    if customer purchases 3 product at a time all the 3 products get the same ofd number ........and any 2 customers can have the same ofd...
    See more | Go to post
No activity results to display
Show More
Working...