Forum Replies Created

Viewing 15 posts - 316 through 330 (of 2,469 total)

  • RE: SUBSTRING a DATETIME value in a SELECT statement

    For starters, get your close paren from the end of the expression to the end of the cast function...

    SELECT SUBSTRING(CAST(date AS NVARCHAR(11)), 1, 10)

    ..and then explain (as pam asked) the...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Showing Duplicate Records

    ..as well as ddl & sample data...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Trigger for Auditing

    right - just to clarify - sql server creates a table called "Deleted" that temporarily stores the deleted row(s)...so that's the one one you need to select from...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: The Best Job

    I cannot believe you started just a couple of years ago...If I had even a tenth of your talent I'd quit my job and waste no time in making this...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Problems WIth Varchar 8000 Help please

    Yes - the limit in EM is 1024..but no one really uses EM for data modifications..







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Beginning SQL Server - Limit Your Queries

    - you're right...it's only a matter of ratio these days...instead of 6 of one and half a dozen of the other..you could...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Disappearances of all (2000 more) records from one Table.

    could you please provide some more info ?!

    1) does it happen at the same times/days each month ?! is there a pattern ?!

    2) any triggers on the table ?! or...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Ownership

    Concur! If anything, I have only seen the "excessive pride" where people turn into prickly pears (have been guilty of that myself at times.....







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: If condition is not working properly

    Sorry to ask this but..

    if you print your @Assignbuyer you do see a value other than 1 ?!?!

    also...your assignment to @SI should be corrected to:

    SET ......, @SI = specialInstructions...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Converting a date

    splly. DATENAME..

    SELECT DATENAME(mm, getdate()) AS Month,
     DATENAME(yyyy, getdate()) AS Year
    







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Beginning SQL Server - Limit Your Queries

    hey..hey..go easy...I, for one, belong to the "developer" world and wouldn't trade places with a dba...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Beginning SQL Server - Limit Your Queries

    Here's the (much read) link that'll unravel the mysteries of dynamic sql for you..

    the curse & blessings of dynamic sql







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Beginning SQL Server - Limit Your Queries

    Right...here's how you would do this:

    Set @rowlimit = 10
    exec('select top ' +  @rowlimit + ' col1, col2 from myTable where...')
    







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Beginning SQL Server - Limit Your Queries

    You could do something like this...

    Set Rowcount @rowlimit  
    
    select col1, col2 from myTable where...
    







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: It''s Not Me

    ...Great catch!...not so hush-hush after all...stopped believing in coincidences many years ago..







    **ASCII stupid question, get a stupid ANSI !!!**

Viewing 15 posts - 316 through 330 (of 2,469 total)