Forum Replies Created

Viewing 15 posts - 7,291 through 7,305 (of 8,416 total)

  • RE: Twenty tips to write a good stored procedure

    GilaMonster (8/10/2009)


    rja.carnegie (8/10/2009)


    ... because it's no longer the case that your use of the command has to be considered as possibly "SELECT column FROM gregory.table" and mine is "SELECT column...

  • RE: SQL Profiler running on server side causes high CPU usage

    TheSQLGuru (8/10/2009)


    Clearly if your logic REQUIRES complex data access/processing PER ROW of output then a UDF is quite possibly the correct tool for the job. You are definitely correct...

  • RE: checksums and unicode data

    GabyYYZ (8/10/2009)


    Is this due to the way checksum parses unicode vs. binary?

    Seems so:

    -- 0x3600 3700 3400

    SELECT (CONVERT(VARBINARY, N'674'));

    SELECT CONVERT(BINARY(2), UNICODE(N'6')) -- 0x0036

    SELECT CONVERT(BINARY(2), UNICODE(N'7')) ...

  • RE: Speed Optimization

    For that configuration, try:

    EXECUTE sp_configure 'show advanced options', 1;

    RECONFIGURE;

    EXECUTE sp_configure 'min server memory (MB)', 512

    RECONFIGURE;

    EXECUTE sp_configure 'max server memory (MB)', 1536

    RECONFIGURE;

    EXECUTE sp_configure 'awe enabled', 1;

    RECONFIGURE;

    EXECUTE sp_configure 'show advanced options', 0;

    RECONFIGURE;

    I...

  • RE: Twenty tips to write a good stored procedure

    jacroberts (8/10/2009)


    Why should '>' be much further up the performance list to '! is twice as efficient as !< since it uses just one character :laugh:

  • RE: Twenty tips to write a good stored procedure

    ta.bu.shi.da.yu (8/10/2009)


    I'm curious... would the selectivity of an index influence the execution plan when an inequality predicate is used? I ask because, tucked in the recesses of my mind, I...

  • RE: Are the posted questions getting worse?

    I clearly need to work on my 'being abrupt' skills :blink:

    I tried quite hard...

  • RE: Twenty tips to write a good stored procedure

    GilaMonster (8/10/2009)


    I've seen SQL convert a predicate WHERE SomeColumn != 0 into WHERE (SomeColumn > 0 OR SomeColumn < 0) and seek on an appropriate index. It's still two partial...

  • RE: Twenty tips to write a good stored procedure

    oli (8/10/2009)


    1. Keywords - Use SQL keywords in capital letters to increase readability

    I find that the nice highlighting in SSMS more than adequate and a lot easier on the eyes...

  • RE: Twenty tips to write a good stored procedure

    ronmoses (8/10/2009)


    ta.bu.shi.da.yu (8/10/2009)


    vetri (8/10/2009)


    Hi,

    I tried with these two statements but the second one is not get executing and it says "Incorrect syntax near the keyword 'exists'." What...

  • RE: mix results in one result

    Jeff Moden (8/10/2009)


    For more information on how such a table as Paul speaks of works to replace a While Loop, please see the following article...

    http://www.sqlservercentral.com/articles/T-SQL/62867/

    Yes, absolutely! Sorry Jeff, I...

  • RE: Speed Optimization

    The things that leap out are (just as Grant predicted) that the memory per instance has not been configured correctly.

    You don't say how much memory is on the physical server,...

  • RE: Are the posted questions getting worse?

    GilaMonster (8/10/2009)


    Woot. My muse has returned. Sat down over the weekend and hammered out 3 pages of an article that I've been staring blankly at for the last couple months....

  • RE: Twenty tips to write a good stored procedure

    I deeply begrudge the minimum one star.

    Gail's first post expresses it best, and in milder language terms than I might have used. I would encourage everyone who reads the...

  • RE: Gain Space Using XML data type

    Yes, this turned out to be another great discussion - as so often happens on SSC, an article prompts conversation which is just as interesting as the article itself, in...

Viewing 15 posts - 7,291 through 7,305 (of 8,416 total)