Forum Replies Created

Viewing 15 posts - 5,941 through 5,955 (of 7,191 total)

  • RE: Is XML the Answer?

    Someguy (5/2/2008)

    Wrong: The things for which XML is useful are make it VERY useful. It provides a standard for inter-system communication that allows developers to avoid re-inventing the wheel for...

  • RE: Unstable query performance

    If it's a complex query then it's possible that most of those 30 seconds are taken compiling a new execution plan. This would explain why it takes 30 seconds...

  • RE: Replace WHERE IN...WHERE NOT IN... by INNER JOIN / OUTER JOIN

    Rob

    I think your first query is actually equivalent to this:

    SELECT mpe.din, mpe.pkgsize, mp.client, mc.active

    FROM

    ...

  • RE: splitting out a column

    Or this one, which uses less string manipulation, but does contain dynamic SQL:

    --Data

    declare @table table(col1 varchar(5), col2 varchar(200), col3 varchar(10))

    declare @sql varchar(1000)

    INSERT INTO @table VALUES ('Mut1',

    'AZ5397UA9,AZ539CYK2,AZ54022Z3,AZ8040BQ1,AZ0442BB0,AZ2404AW1,AZ307TAD0,AZ442FAE8,AZ442FAQ1,AS490FAV1',

    'Credit1')

    INSERT INTO @table VALUES ('Mut2',

    'AZ5397UA9,AZ539CYK2,AZ54022Z3,AZ8040BQ1,AZ0442BB0,AZ2404AW1,AZ307TAD0,AZ442FAE8,AZ442FAQ1,AS490FAV1',

    'Credit2')

    SET...

  • RE: How to carry over SQL Agent Jobs from 2000 to 2005

    The only way to know is to test it, I'm afraid. The outer join issue was just an example: there are many more pieces of code that work in...

  • RE: How to carry over SQL Agent Jobs from 2000 to 2005

    Click on the Jobs folder in SQL Server Management Studio. In the Object Explorer Details window, select all of the jobs. Right-click, and choose Script Job As ->...

  • RE: Support Issue

    If the application is properly written, so that it "identifies" itself to the SQL Server when it connects, then you can see all the connections from the application using the...

  • RE: SQL Server 2005 Profiler Column Filter

    I think there's a column called HostName that you can filter on.

    John

  • RE: SQL querry help

    Well, you haven't given us any table DDL to go on, but after a cursory glance I would say that you should use an OUTER JOIN instead of an INNER...

  • RE: decimal point

    Or this:

    SELECT REPLACE(@String, '.', '')

    John

  • RE: cursor to step through user databases

    This should work as well, and looks a bit neater:

    SET @SQL = 'EXEC ' + @dbname + '.dbo.sp_MSForeachtable ''ALTER TABLE ? WHATEVER'' '

    PRINT @SQL

    John

  • RE: cursor to step through user databases

    nicolas.pages (4/29/2008)


    Out of curiosity, don't you miss a blank in 'go'? --> ' go'

    GO is a batch separator... I don't think you should use it in dynamic SQL. ...

  • RE: Dynamic Order By

    What will happen to the rows that aren't ordered? Please show us how your result set should look.

    John

  • RE: ASP and SQL Coding Help

    I'm not an ASP expert so it's difficult for me to tell what SQL this is actually sending to the SQL Server. And you didn't post the error message....

  • RE: ASP and SQL Coding Help

    Please post the code you're running and the error message you get. By the way, if this is, or is going to be, production code, then it's not good...

Viewing 15 posts - 5,941 through 5,955 (of 7,191 total)