Forum Replies Created

Viewing 15 posts - 766 through 780 (of 807 total)

  • RE: char and varchar!

    EdVassie (7/2/2009)


    I have seen some poor database designs that have ignored this fact, with varchar(1), varchar(2), etc fields.

    Everybody always should use the RIGHT type.

    varchar(1) and char(1) are not similar nor...

  • RE: char and varchar!

    This a question for very beginner!

  • RE: Unicode

    "Elementary, my dear Watson" .

    Good morning!

  • RE: one character of data

    I answered varchar(1), because I like to use varchar. I hate CHAR cause of big problem that can lead, and NCHAR NVARCHAR cause of waste of space.

  • RE: Writing Dynamic Stored Procedure

    Old style to write the WHERE condition.

    I prefer to build a string ONLY with the true condition; it's more performing.

    In a complex WHERE with useless condition may lead to a...

  • RE: Create Database

    c:\ and C:\mssql\ should exists and sql account should have permissions to write.

  • RE: Mr. & Mrs.Smith!

    I agreed with you. I do not like unneeded parenthesis.

  • RE: TOP

    I disagree! See the question of yesterday.

  • RE: SELECT FUN

    this question is the same of "predict output".

    Also the second answer is correct, cause of lack of ORDER BY.

  • RE: Check Syntax on a Database

    Vaccano (4/21/2009)


    Check your "Messages" tab after it has run. It outputs a report to that tab. (Though if you db is error free then it will do "nothing".)

    Vaccano

    I...

  • RE: Check Syntax on a Database

    It does nothing! 😎

  • RE: Error Severity

    Correct answer is 1-25:

    exec sp_helptext sp_addmessage

    in the output search for @severity and you'll find this piece of code that is the law.

    --...

  • RE: T-SQL Operators

    Bah?

  • RE: Fastes way to increment an id column

    -- try to use this for replication:

    set identity_insert my_table on

  • RE: Fastes way to increment an id column

    -- what about IDENTITY??

    SET NOCOUNT ON

    -- Just a simple test table

    IF (OBJECT_ID('tempdb..#my_tab') IS NOT NULL)

    DROP TABLE #my_tab

    CREATE TABLE #my_tab (id INT NOT NULL IDENTITY(1000,1), any_date DATETIME)

    -- Create...

Viewing 15 posts - 766 through 780 (of 807 total)