Forum Replies Created

Viewing 15 posts - 196 through 210 (of 300 total)

  • RE: Naming Conventions - Table and Column Names

    Depending on the product used for the presentation layer, you may find the column names will be prettified automatically. We use DevExpress and it separates the words in a CamelCase...

  • RE: Code-first vs database-first, any new developments?

    sgmunson - Tuesday, September 26, 2017 10:35 AM

    TheSQLGuru - Monday, September 25, 2017 4:01 PM

  • RE: TSQL Query help plz..

    As an aside, I'm pretty sure you won't want the amount to be FLOAT as this will not give exact results in calculations.

  • RE: EXCEPT in a trigger

    One other thing to be aware of is that EXCEPT eliminates duplicates.

  • RE: Are These Two Code Fragments Equal?

    You were asking how to do something and I was suggesting some ways of making it work. I don't see how that is belittling.

  • RE: Are These Two Code Fragments Equal?

    I don't think using the transaction name to determine which action to take is the right model. Your application already knows whether the user intends to insert, update or delete...

  • RE: Pass dataset as parameter from application to stored procedure

    In your database, create a user-defined table type that matches the columns in "myorder". Your stored procedure can then specify a parameter that uses this table type instead of one...

  • RE: Primary Key Indexes

    Not an explanation of your problem, but in our warehouse we tend to drop indexes then truncate/load then recreate the indexes. It is generally a lot quicker on low-spec servers...

  • RE: User-friendly names for constraints

    Regarding your 2nd question "should I worry about it", I'd say it's definitely worth giving them sensible names if you have copies of the database for development, QA, etc. and...

  • RE: Delete nologging

    2 option suitable to my requirement.
    We have auto increment column in the Orginal table it might become issue while moving data to back.

    When you insert the copied rows...

  • RE: Translating Queries

    Select DeveloperName, HitCount
    from AppDevelopers
    cross apply ufn_BigStick(AppDeveloperID)

    GO 20

  • RE: INSERT INTO, EXCLUDING ONE COLUMN

    Why do you want to exclude the IDENTITY columns in the first place? If you use SET IDENTITY_INSERT <your table> ON you can copy the identity values across as well.

  • RE: redesigning table to accommodate new data types

    You can sum a nullable column. Rows where the column is null will not contribute to the total, so leaving the marks null when the student was absent (for whatever...

  • RE: retrieving global variable for trigger

    I'm assuming you can't use suser_name() or an equivalent because the application connects using a SQL Server login rather than windows authentication. You could prevent deletes, etc. from occurring outside...

  • RE: Stored Procedure help

    I think the UserID variable in your code will be receiving the RETURN value from executing the stored procedure. This is not the same as the results of the SELECT...

Viewing 15 posts - 196 through 210 (of 300 total)