Forum Replies Created

Viewing 15 posts - 1,756 through 1,770 (of 2,894 total)

  • RE: how can i insert in udf

    Sean Lange (4/13/2012)


    Here is how all of the threads that you have started sound.

    There were two crocodiles flying. One to the south but another one was blue.

    Question: How...

    _____________________________________________
    "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: Disable constraints

    1. Create a table

    2. Create an unique constraint

    3. Check what is created (sp_help)

    4. Drop unique constraint

    5. Check what is left (again sp_help)

    You will find the answer and prove 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: Very slow Delete from table with large BLOB data

    That is showing what really takes the time! It's getting rid of large BLOBs.

    I'm afraid, you can not do much without redesign...

    _____________________________________________
    "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: Very slow Delete from table with large BLOB data

    Try to update the image columns to null. Does it take same as long as delete?

    _____________________________________________
    "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: Question related to NOLOCK

    ... If there are no changes then there will be no locks ...

    Does not SELECT puts a Shared Lock on a table?

    I agree that placing the lock itself doesn't take...

    _____________________________________________
    "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: Question realetd to TABLOCK

    Just to add:

    There is another locking hint: TABLOCKX - it will put an exclusive lock on the table, so it will not be available for selects from another transactions...

    In...

    _____________________________________________
    "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: Question related to NOLOCK

    Nolock is not a good idea in most cases.

    Absolutely, agree. In OLTP system will be hard to find justifications for using this hint.

    But this hint does exist and there...

    _____________________________________________
    "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: junk characters in a field

    ...

    It's entirely possible someone with better C#/VB.NET skill than mine can make a CLR function that's faster, but the options I found online for that were all much, much...

    _____________________________________________
    "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: Got a tough SQL problem, involving bit arithmetic.

    "FOR XML PATH ('')" T-SQL relatively new feature is used to return the results in XML form.

    It does not need XML, it generates it!

    Try to run this:

    select d.Origin

    from (

    ...

    _____________________________________________
    "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: select statement

    use WHERE clause:

    WHERE [value] IS NOT NULL

    _____________________________________________
    "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: Msg 468, Level 16, State 9, Procedure "procedurename", Line 129 Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.

    Could be anything from situation where joining tables have different collation for the columns they are joined on, to using temp tables in the proc and having different default collation...

    _____________________________________________
    "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: junk characters in a field

    If you want a more efficient version, that doesn't require as much pre-processing, any CLR, etc., ...

    I'm sure CLR will beat the use of Number table on large datasets where...

    _____________________________________________
    "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: Got a tough SQL problem, involving bit arithmetic.

    You should provide ddl and some test data to explain your problem in more consumable way (link at the bottom of my signature will help you).

    I'm not sure if that...

    _____________________________________________
    "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: junk characters in a field

    If you need the best possible performance - write CLR function (with defining static Regex with RegexOptions.Compiled option)

    Ping if you need help with 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: how do you filter against a datetime field?

    Sean Lange (4/4/2012)


    You have to either use a datetime variable or put your string representation inside single quotes.

    select * from TICKET where createDate > '4/1/2012'

    Is it 4th Jan 2012 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]

Viewing 15 posts - 1,756 through 1,770 (of 2,894 total)