Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)

  • Reply To: Stairway to Advanced T-SQL Level 4: Record Level Processing Using Transact-SQL Cursors

    I STRONGLY second the call by @acloughnane to move the best practices paragraph to the top of the article. While this article is very informative, cursors should not...

  • Reply To: Data Activity Tracking Using SQL Triggers

    This technique should come with a strong warning about understanding your database concurrency, because auditing with triggers increases transaction times, and can cause serious locking and/or latching issues.

    I've encountered this...

  • Reply To: T-SQL Language Changes in SQL Server 2022

    This is all great stuff...that SQL Server should have had a decade ago. PostgreSQL users have been enjoying these features for a LONG time. Great to finally see the catch...

  • Reply To: SQL Server is slow

    Check the waits that are occurring during the query when it is ran directly on the server (eliminate variable of the application).

    If you get CXPACKET waits (waiting to recombine results...

  • RE: Key Word Searches

    We loaded something like 150 million records from Library of Congress and had a co-located 2 post rack running a quad processor something-or-other with a RAID 5 setup on Oracle...

  • RE: Group Islands of Contiguous Dates (SQL Spackle)

    Oh, that row_number trick is so beautiful it makes me want to cry!

  • RE: Key Word Searches

    @ KermitTheRock,

    Indexed views rock! Keep in mind though, you need SS Enterprise to get this feature. Most ISP licences are Standard so unless you paid the big nut for Enterprise...

  • RE: Key Word Searches

    @ Antonio,

    Just so I can file this away in my brain for later:

    What is your max sustained throughput (total users and max queries per minute)? How many CPUs?

    Thanks.

  • RE: Key Word Searches

    We added a synonyms table that cross referenced common abbreviations, common misspellings, and plural forms. We also built our own table of stop words to strip from the list of...

  • RE: Key Word Searches

    #1 This will be faster than full text search for large loads (hundreds of queries per minute) on a db with millions of records/documents to search.

    I did this exact thing...

  • RE: Assigning output of a query to a variable

    Save this to a text file called test.bat then execute on the command line:

    @echo off

    FOR /F "usebackq tokens=1,2,3 delims=~" %%i IN (`sqlcmd -w200 -h-1 -E -Q"set nocount on; select convert(varchar(10),getdate())...

Viewing 11 posts - 1 through 11 (of 11 total)