Forum Replies Created

Viewing 15 posts - 931 through 945 (of 1,219 total)

  • RE: Top from store procedure

    Jeff Moden (8/6/2013)


    What would you use as an alternative? Insert/Exec?

    If you've read my article, you know that nor am I fond of INSERT/EXEC.

    As long as I have control over...

  • RE: why it is not possible to execute this way set context_info convert(varbinary(128), 'xyz')

    Because the sky is blue.

    T-SQL as a programming language is fairly primitive, and far from all commands accepts variables or expression where you want them to.

    If you feel that this...

  • RE: higher cpu execution time

    Lowell (8/6/2013)


    well in general, "particular column does not a character" would mean a NOT LIKE '%X%' pr PATINDEX =0, right?, so that would requre a table scan of all rows,...

  • RE: Confused with my procedure

    If they can be named anything, why even bother about them?

    You are talking about a spreadsheet, but maybe you could explain the entire process? Why would the names in a...

  • RE: Traversing a hierarchy

    Here is a batch. I'm using temp tables, because I estimate that a single-query solution would be less efficient.

    Note that the solution does not include rows with ParentId = 1000,...

  • RE: DML with linked servers is so slow!!!

    Yes, "linked server" is an eloquent way to spell "trouble".

    How much data are you trying to insert? What is the speed of the network connection between the two servers?

  • RE: Small transaction logs and/or transations logs with no transactions and need to restore

    kevinsql7 (2013-08-06)


    Steve what do you mean by +1?

    That he agrees with Gail.

  • RE: RAISEERROR syntax

    WolfgangE (8/6/2013)


    Really? As far as I know the standard behavior is that an exception does not influencde the transaction. You raise an exception, any currently open transaction remains open and...

  • RE: SQL Detection by Edition/Version

    I can understand that since you are looking for all sorts of products, that you don't want to engage in anything SQL Server-specific like SMO. However, the PowerShell option that...

  • RE: RAISEERROR syntax

    Phil Parkin (8/5/2013)


    [bBut note that BOL suggests using THROW rather than RAISERROR for applications built in 2012 and onwards.

    Microsoft are keen on recommending on what they happened to come most...

  • RE: Re: Full text catalog maintenance procedures

    No. But why would you do START FULL POPULATION every time? If you have change tracking on, you can do START UPDATE POPULATION instead. And in that case you may...

  • RE: Confused with my procedure

    "Way around" is may be not the most approriate description, since you seem to be inventing your rules. And the whole idea looks funny. Do you really have umpteen colunms...

  • RE: RECONFIGURE inside trigger

    Thus, you got a good incentive to reconsider your solution.

    I recommend writing a CLR stored procedeure instead of using sp_OAxxxxx.

    But you should not make SOAP requests inside a...

  • RE: Bizarre 'divide by zero' - no division happening!

    drlloyd2 (8/5/2013)


    Of the 42 columns returned by the query, commenting out any arbitrary combination of 14 of them will make the query work. Doesn't matter which ones I take...

  • RE: RAISEERROR syntax

    No, that old syntax for RAISERROR (which has been deprecated since SQL 6.0 released) does not work in SQL 2012 in any compatibility mode.

    Ironically, SQL 2012 includes a new command...

Viewing 15 posts - 931 through 945 (of 1,219 total)