Forum Replies Created

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

  • 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...

  • RE: ASP and SQL Coding Help

    You need two JOINS in your query - one to join Company to AddressLink, and one to join AddressLink to Address. In your select list, you only need to...

  • RE: Table Constraints

    Anthony

    You'd need to create a trigger on your Episodes table that would roll back any INSERT operation that didn't comply.

    John

  • RE: detect trailing spaces

    SELECT MyColumn FROM MyTable

    WHERE RIGHT(MyColumn, 1) = ' '

    John

  • RE: TSQL - Conditional Check

    Karthik

    Way 1 isn't syntactically correct, so you'd have to go with Way 2. But I think Jason's way is better still.

    Also can you tell me why we haven't use...

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