Forum Replies Created

Viewing 15 posts - 61 through 75 (of 244 total)

  • RE: Processing Cash sales

    Thank you, Paul. I am honoured to get a reply from an author-grade pro. Of course I want any help to map the relationships.

    After racking my brains yesterday, I have...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: Delete an instance in 2005 Express

    Thanks again. Just curious, as SQL Server is so complicated to work with, is there any reference or quick guide to help people like me who dont want to be...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: Delete an instance in 2005 Express

    Thanks for the compliment, Lowell, it is why I am here in the first place.

    I cannot log in to SQLEXPRESS with sysadmin privileges as I can at MSSQLSERVER, so that...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: Insert Summary Record After Stripping Old Records

    Agreed, but, FYI, stripped data is first backed up for future retrieval before being purged.

    All I want to know is, even if I do NOT delete old records:

    How to...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: Insert Summary Record After Stripping Old Records

    [Code]

    CREATE TABLE [dbo].[dbo_transactions_master](

    [transaction_id] [int] NOT NULL,

    [transaction_date] [smalldatetime] NOT NULL,

    [department_id] [int] NOT NULL,

    [transaction_type] [tinyint] NOT NULL,

    CONSTRAINT [PK_dbo_sales_master] PRIMARY KEY CLUSTERED

    (

    [sale_id] ASC

    )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: How To utilize log files

    I'm not a pro like all the others who have already ventilated this thread, but what I would do in this case is restore a backup on an independent computer...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: DATE OVERLAPPING

    No, DayNumberOfWeek should NOT be reset when the year changes, because it is just that - Day Number Of Week - and not Day Number Of Year.

    Second, have a look...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: Like operator problem

    For a debugging tutorial, see


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: calculating hours worked

    [Code]Hi i am having table with emp code and transaction,i want to calculate how many hours he worked for the day.

    Format of table

    id ...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: Comparing and Updating rows between two tables

    [Code]CREATE TRIGGER TABLE1_INSERT_TRIGGER

    ON TABLE1

    FOR INSERT

    AS

    SELECT *, 1

    INTO TABLE2

    FROM INSERTED

    CREATE TRIGGER TABLE1_UPDATE_TRIGGER

    ON TABLE1

    FOR UPDATE

    AS

    UPDATE T2

    SET T2.FLAG = 2

    FROM TABLE2 T2

    INNER JOIN TABLE1

    ON TABLE2.ID = TABLE1.ID

    CREATE TRIGGER TABLE1_DELETE_TRIGGER

    ON TABLE1

    FOR DELETE

    AS...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: Finding where a function is being called in a stored procedure

    Easy - I would generate a script of all my stored procedures and then search where the function name appears in it.


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: Update Trigger

    Also, an update may include the target column without changing its original value, if the actual UPDATE statement contains all column names. Then you will end up incrementing it needlessly....


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: eliminating duplicates

    [Quote]CHAR((2*Count(*)) + (CASE Sex When 'M' Then 0 Else 1 End)[/Quote]

    Returns the ASCII character for the numeric value returned by double the count for MALE and double the count plus...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: MS SQl Job Agent

    I think you will have to be a bit more clear in wording your problem in order to get the help you need.


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

  • RE: PLEASE HELP

    Karthik, we can all see that Jeff did not intend to offend you so let us not blow this out of proportion.

    Let's call it a truce for the sake of...


    Regards,

    goodguy

    Experience is a bad teacher whose exams precede its lessons

Viewing 15 posts - 61 through 75 (of 244 total)