Forum Replies Created

Viewing 15 posts - 10,321 through 10,335 (of 15,381 total)

  • RE: ?? on concat two fields??

    jbalbo (10/19/2012)


    does anyone know what I have setup wrong here?

    INSERT INTO @TEMPTABLE(TAG_NAME,TAG_DATA)

    SELECT DISTINCT TAG_NAME = 'CUST_ALLFOOD', TAG_DATA =(M.GENERIC_NAME + CONVERT(VARCHAR(MAX),ca.Notes)

    INNER JOIN CLIENT_ALLERGY CA (NOLOCK) ON C.OID_LINK =...

  • RE: Use the Table valued function in the query

    There is nowhere near enough information to be able to help here. Please see the first link in my signature about best practices when posting questions.

  • RE: Need to show cumulative time

    Nice job posting ddl and sample data. Unfortunately it is very unclear what you are trying to do. Can you explain how you came up with the values that you...

  • RE: Logic problem in "SET [Quantity_Remaining] = [Quantity_Remaining] - 1"

    briancampbellmcad (10/19/2012)


    Did I get the data you needed or other information for the testing? Just can't seem to find what could be wrong with this trigger...

    CREATE TRIGGER [dbo].[trDecrementBulkPurchases]

    ON [dbo].[tblTransactions]

    AFTER INSERT

    AS

    BEGIN

    UPDATE...

  • RE: sql server checking equality of tables

    gowri.4ever (10/18/2012)


    with the script you provided I need to check for every table in the database..and there are more than 100 tables....it will be a very complicated and time taking...could...

  • RE: sql server checking equality of tables

    gowri.4ever (10/18/2012)


    I want to check if they have same column names and if their data type is same

    So run the query I posted. It will show you that information and...

  • RE: sql server checking equality of tables

    gowri.4ever (10/18/2012)


    hi,

    I cannot use the redgate and all...what i was asked to do is to copy all the tables in a database into a temp table and then do the...

  • RE: sql server checking equality of tables

    gowri.4ever (10/18/2012)


    Hello Everyone,

    I need to check if all the tables in a database are same(have same columns and datatypes) to all the tables in another database. and these two databases...

  • RE: Logic problem in "SET [Quantity_Remaining] = [Quantity_Remaining] - 1"

    Your trigger is intended to update tblBulkPurchases. I don't have any data in that table. I can' test your trigger because the update has no rows to update.

  • RE: Logic problem in "SET [Quantity_Remaining] = [Quantity_Remaining] - 1"

    briancampbellmcad (10/18/2012)


    How should I paste the needed data? It becomes rather scrambled copying from SQL Server.

    PO_NumberBuyer_InitialSoftware_IDQuantityQuantity_RemainingUnit_PriceSoftware_DescriptionAllocationAccountPurchaseAccountHeatTicketNumberPurchaseCostCenterPO_DateTransaction_DateTransaction_NumberTransaction_Type

    3321809JDMNULL61956195NULLSYMANTEC ENDPOINT ENCRYPTION FULL DISKNULLNULL1581886NULL2011-10-132011-10-1322Bulk Purchase

    5447441TRE405050315.22OfficePro1321353424244445242145154222012-05-122012-09-1517350Bulk Purchase

    5465115OCC51200200120.20Apache3354825193219415995112542012012-05-122012-09-1517300Bulk Purchase

    5965215OCC51100100120.20Apache3354825193219415995112452012012-05-122012-09-1517309Bulk Purchase

    The best is to post an insert...

  • RE: Create select statement for the query

    pwalter83 (10/18/2012)


    Sean Lange (10/18/2012)


    Thank you for the ddl and sample data. However your requirement mentions a column TEU. This is not present on any of the tables you provided.

    Sorry Sean,...

  • RE: Are the posted questions getting worse?

    ChrisM@home (10/18/2012)


    Brandie Tarvin (10/17/2012)


    It's a disgrace, a disgrace I say. Why do you want to know what I know I know? It's a disgrace, a disgrace I say.

    Young fella, do...

  • RE: Create select statement for the query

    Thank you for the ddl and sample data. However your requirement mentions a column TEU. This is not present on any of the tables you provided.

  • RE: While Loop SQL Query Help......

    Gail is totally right. There is no need for a while loop here at all. All you are doing is copying a table to another table.

    insert #tblTest

    select cn, dn

    from #tblGroups

    Not...

  • RE: truncate table

    kapil_kk (10/17/2012)


    truncate is not working..

    Gives error-

    Cannot truncate table 'rolemaster' because it is being referenced by a FOREIGN KEY constraint.

    Did you read Gail's post?

    Pay close attention to the second part.

    or,...

Viewing 15 posts - 10,321 through 10,335 (of 15,381 total)