Forum Replies Created

Viewing 15 posts - 3,691 through 3,705 (of 7,636 total)

  • RE: Trouble with variables and function

    OK, fair enough.

    First, the ORDER BY is giving an error because you cannot put it there. In fact, it cannot be applied (directly) to the output of a script...

  • RE: Trouble with variables and function

    Well this is easy enough to fix, but it sure does sound like homework. Could you please tell us what the business purpose of this query is? I...

  • RE: detecting servers with sqldmo

    shnex (1/30/2009)


    but they handle?

    SQLDMO works with SQL Server 2005? that's the question:)

    I understand from what you say that sqldmo works with named instances in 2000. Maybe it works with 2005...

  • RE: detecting servers with sqldmo

    You probably have both 2000 and 2005 on your local system. Named instances were new with SQL Server 2000 & DMO and they do not handle named instances as...

  • RE: Combining Select Statements

    Glad I could help.

  • RE: Combining Select Statements

    This should do the same thing and probably will perform better:

    SELECT PART.ID AS PART_ID, UDFCURRENT.STRING_VAL AS [Description]

    FROM PART

    LEFT OUTER JOIN USER_DEF_FIELDS UDF ON PART.ID...

  • RE: Combining Select Statements

    Well first of all, when you OUTER JOIN tables, you should not put conditions for the Nullable table into the WHERE clause (unless that include a test for NULL), because...

  • RE: detecting servers with sqldmo

    shnex (1/30/2009)


    and..another question about SQLDMO...

    I see everywhere that is for SQL Server 2000, but I'm using it for 2005.

    It can see may server and my SQL Server 2000 databases.

    Is there...

  • RE: Error Locating Server/Instance Specified

    Please post the code that you are using.

  • RE: How to prevent SQL Injection Attack?

    Suresh B. (1/29/2009)


    The original code that I posted is just a simplied sample.

    The actual code could be some thing like this:

    declare @query nvarchar(4000)

    select @query = 'SELECT ColumnName FROM tbl_TableName WHERE...

  • RE: detecting servers with sqldmo

    shnex (1/30/2009)


    Could you give me a link, pls?

    SMO is documented in BOL.

    If you want a code example of how to do this with SMO, see here: http://www.sqlservercentral.com/Forums/Topic494616-386-1.aspx#bm494720

  • RE: The Oscars

    Lynn Pettis (1/30/2009)


    RBarryYoung (1/30/2009)


    Steve Jones - Editor (1/30/2009)


    The Beverly Hills Chihuahua was a long two hours out of my life.

    OMG, you poor SOB! :crazy: I am sure that I...

  • RE: The Oscars

    Steve Jones - Editor (1/30/2009)


    I definitely prefer things exploding in my movies, so I'll be looking for some of those.

    Tropic Thunder. Plenty of explosions...

  • RE: The Oscars

    Steve Jones - Editor (1/30/2009)


    The Beverly Hills Chihuahua was a long two hours out of my life.

    OMG, you poor SOB! :crazy: I am sure that I would have chewed...

  • RE: The best way to identify matching records in a single table

    OK, if vwMatch_Base really is a table, then you might try applying a Clustered Index with the following columns:

    Surname, PostCode, Firstname, YearMonth, YearDay

Viewing 15 posts - 3,691 through 3,705 (of 7,636 total)