Forum Replies Created

Viewing 15 posts - 5,176 through 5,190 (of 7,191 total)

  • RE: SQL code issue

    OK, I think we've come as far as we can without your providing any table DDL and sample data. Please post the former in terms of CREATE TABLE statements,...

  • RE: SQL code issue

    Iulian -207023 (8/3/2011)


    or instead of :

    ARRIVAL_SCHEDULE_DT <= dateadd(mm, 3, getdate())

    you can use this condition too:

    datediff(mm, ARRIVAL_SCHEDULE_DT, getdate()) <= 3

    Iulian

    I would advise against doing that, since it would make the condition...

  • RE: SQL code issue

    Something like this?

    SELECT <column list>

    FROM MyTable

    EXCEPT

    SELECT <column list>

    FROM MyTable

    WHERE PORT_CD = 'BEZEE'

    AND ARRIVAL_SCHEDULE_DT < dateadd(mm, 3, getdate())

    John

  • RE: Trance Profiler

    You're probably going to have to do a bit of trial and error. Expand the Errors and Warnings category, and hover your cursor over each event for a description....

  • RE: Multiple statements in case for SQL Server

    I'm sorry, but I don't understand what you're trying to do. Why do you think you need to use a variable, and why do you set a value for...

  • RE: Trance Profiler

    I don't understand your question. What is ALL ERRORS? If you want to capture failed logins, do as I suggested. Are you saying you need to capture...

  • RE: Trance Profiler

    I think you're looking for the Audit Login Failed event, under Security.

    John

  • RE: Batching causes sequence numbers to fail

    Yes, I am, and to be honest, I'd be surprised if I saw what you're seeing. I wish I knew how you do it!

    John

  • RE: Logic

    I've taken the liberty of tweaking so that it doesn't get fooled by non-alpha characters.

    Code is posted as an attachment since it timed out when I tried to post in-line.

    John

  • RE: Batching causes sequence numbers to fail

    I get the same results for both examples. I can't see how putting in a GO will make any difference.

    John

  • RE: Logic

    Vijay

    Does your database have a case-sensitive collation?

    John

  • RE: Batching causes sequence numbers to fail

    Are you sure Example 1 works? This is what I get:

    Value Seq

    1011

    1011

    1021

    1021

    1021

    1022

    1031

    1041

    1041

    1041

    John

  • RE: Function not working properly - help needed

    "It won't work" is a little vague. Please post any error messages you get, or show how the results you get differ from those you expect. Table DDL...

  • RE: SQL Server Agent - Not starting

    When you say you couldn't find anything in SQLAGENT.OUT, do you mean you couldn't find SQLAGENT.OUT at all? If that's the case, the reason it's failing to start is...

  • RE: Create a Dynamic Table

    This should help:

    http://msdn.microsoft.com/en-us/library/ms174979.aspx

    Let us know if there's anything in particular that you don't understand.

    John

Viewing 15 posts - 5,176 through 5,190 (of 7,191 total)