Forum Replies Created

Viewing 15 posts - 271 through 285 (of 369 total)

  • RE: SQL version and service pack level

    1. Should use ServerName property of SERVERPROPERTY vs. @@SERVERNAME as it is more accurate. See Remarks section under @@SERVERNAME in BOL.

    2. Ideally, when reporting the version of SQL Server...

  • RE: how to save a blob to harddisk?

    Is this for a production application or is this a one-off operation?

    I use VBScript to extract out BLOB values when necessary. It's clean and simple and easier than BCP....

  • RE: CTE's are useless

    Will that get you the kind of sequencing you need?

    You correctly build a "sort field" for the "display order" in this case. However, the GUIDs are not the...

  • RE: CTE's are useless

    Try this, on your table:

    Suggested query will not run due to syntax errors:

    1. semicolon after @v_current_id;

    2. an interesting error with the CROSS JOIN:

    Incorrect syntax near the keyword 'ON'

    SQL Server 2005...

  • RE: CTE's are useless

    Nice, but a few things:

    1. I measure performance at the caller (application) level based upon elapsed time. For me, it is the only true measure of performance (for...

  • RE: CTE's are useless

    John, I'd be interested in seeing that function, if you can post it.

    The function (attached) is based upon the MS KB article 248915 http://support.microsoft.com/kb/248915 with some minor tweaks. The...

  • RE: CTE's are useless

    Jeff's explanation is right on. I'm using CTEs more and more in new coding. If anything, for the self-documenting syntax. But with everything in the SQL language,...

  • RE: Best Editor To use

    Notepad is equivalent to a "rock and a chisel". Almost as bad as Vi on UNIX.

    Give KEDIT (http://www.kedit.com/) a try. It's a general purpose text editor for all...

  • RE: Query

    Since the entire table, with all of the column names AND an explanation of each column, was not provided, the column named "dob" does not exist! Even if there...

  • RE: 'EXISTS' vs 'IN'

    Actually this isn't a SQL Server issue rather than a SQL issue. I can't remember where I saw this but I remember reading about it and how it was...

  • RE: 'EXISTS' vs 'IN'

    Here's another good reason why not to use IN:

    Run this on the AdventureWorks database in SQL 2005:

    begin tran

    delete Sales.SalesOrderDetail where SalesOrderId in...

  • RE: sp_Msforeachdb

    You're doing way too much work! We do this all the time when we upgrade numerous databases to a new version of our software.

    1. Put the procedure(s) and anything...

  • RE: 'EXISTS' vs 'IN'

    Yes... don't use either... use an INNER JOIN instead

    Not always. The matching values resulting from an INNER JOIN can be more than one (1). This will result in...

  • RE: Implementing FULL-TEXT Search in a Google fashion!

    Read Hilary Cotter's articles first before just "jumping in".

    http://www.simple-talk.com/sql/learn-sql-server/sql-server-full-text-search-language-features/

    Be very careful as to what features you're looking for and how you implement them. You will never be able to...

  • RE: Update values within trigger

    Does anyone run with RECURSIVE_TRIGGERS on? It just seems like an insane setting?

    Yes, I do as I have a recursive trigger situation.

    First off, I don't normally use triggers for...

Viewing 15 posts - 271 through 285 (of 369 total)