Forum Replies Created

Viewing 15 posts - 1,876 through 1,890 (of 2,894 total)

  • RE: Help on sorting results using sql

    Simple change to the ordering from this:

    ORDER BY

    CHARINDEX('ber',City)

    ,City

    To This

    City

    ,CHARINDEX('ber',City)

    Should handle this...

    Nope, it will not.

    It will place Aberlin before Berlin....

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Help on sorting results using sql

    However, I do not understand why and how?

    If you have any link that you can direct me to in order for me to learn, I would appreciate.

    Ok.

    Both samples performs search...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Help on sorting results using sql

    Andy, actually, use of CHARINDEX for ORDER BY here will not satisfy OP requirements. Try to add another City like that:

    UNION ALL SELECT'Zberlin'

    You query will place it straight after Aberlin,...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Accessing SQL Server with other Client tools

    You only posted your original question about an hour ago. Many people may not have even had a chance to read your question, let alone respond to it.

    Look!...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Help on sorting results using sql

    Please, read the article from the link at the bottom of my signature

    -- to help your helper you should provide

    -- "I have table like that:" like that:

    create table...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Accessing SQL Server with other Client tools

    I cannot see any problems with using 3-rd party client tools if they bring any benefits.

    However, why using 3-rd party client tools should stop you from using SSMS?

    Is it...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Using sp_ExecuteSQL

    Use TRY.. CATCH

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Unique Key Constraint that shouldn't happen?

    I have couple of questions:

    1. Why to use table variable if you only insert only one row anyway?

    Is your real code will try to insert...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Using IF EXISTS & NOT EXISTS DROP Primary Key Constraint

    You can check for schema name as well:

    SELECT * FROM sys.key_constraints

    WHERE type = 'PK'

    AND OBJECT_NAME(parent_object_id) = 'TableName'

    AND SCHEMA_NAME([schema_id]) = 'SchemaName'

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Logical cascade constraint

    thbaig1 (3/15/2012)


    thank you Ten Centuries

    but how ?any TSQl code reference you have ?

    I knew that "how?" question will follow...

    In order to provide "any TSQl code reference" we have, we will...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Constraint to prevent UPDATE after row is committed

    Jeff Moden (3/15/2012)


    Jayanth_Kurup (3/15/2012)


    I wud go with the instead of trigger [font="Arial Black"]if this wasnt a frequent activity[/font]. else i wud create a new column called is modifiable. and update...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Logical cascade constraint

    thbaig1 (3/15/2012)


    Hi,

    I have around 53 tables in my schema. Due to some business constraint , we have not implement on delete cascade constraint on all entities.

    Now I am finding a...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Primary key and clustering key - are they the same thing?

    GilaMonster (3/15/2012)


    Eugene Elutin (3/15/2012)


    There are no such thing as "CLUSTERING KEY" in SQL Server as such, but CLUSTERED INDEX.

    The term 'clustering key' refers to the key column(s) of the...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Missing key

    It's not a Poll! It's looks like an interview questions and there is nothing to discuss about! I guess you need to do some sort of research/learning... Google usually helps!

    Or,...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Primary key and clustering key - are they the same thing?

    winston Smith (3/15/2012)


    Regarding indexes, i always thought the clustering key and the primary key could be different.

    In sql server howerver when i create a primary key it automatically creates a...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 1,876 through 1,890 (of 2,894 total)