Forum Replies Created

Viewing 15 posts - 181 through 195 (of 789 total)

  • RE: QOD 12/30

    You're not alone Sloan. I was 100% absolutely positive that the comma was a syntax error.... until I did likewise - I got it wrong and then tried it...

  • RE: @@servername return value is null???

    You can use the sp_addserver stored procedure, with the 'LOCAL' option.

    Look up sp_addserver in BOL.

    Cheers,

    - Mark

  • RE: Running a profiler on a production server

    I agree with racosta.... profiler is sometimes (no, make that often) a necessity on a production server.

    But, handing the profiling duty to the dev guys is something I...

  • RE: Sniped by QOD (26-Dec-2003)

    A similar thng happened to me (on the indexed view question).

    But, unlike you, I have no complaints.... for me, it said I'd gotten it right.

    Cheers,

    - Mark

  • RE: %COMPUTERNAME% does not work

    Greg,

    Sorry, I don't know why. (helpful aren't I )

    However, after much grief over the years I've got in the habit of preceding most of my cmdexec steps...

  • RE: I need big time help on this one

    Because the Copy SQL Server Object tasks appear to be hitting the same "work" files, maybe you can reduce MaxConcurrentSteps to 1 or include workflow to carry out the tasks...

  • RE: Cursor in ExecuteSQL task "drops" some values

    Are there possibly any database names with invalid characters around them.... thus needing square brackets in the dynamic sql?

    Not that I'm anti-cursor, but I do avoid them when I can,...

  • RE: @@rowcount not set

    Ian,

    You are right.

    Linda

    My mistake and apologies. In your trigger, are there any statements prior to your checking of @@rowcount? Most statements affect it.

    Cheers,

    - Mark

  • RE: convert ss to hh:mm:ss in SQL

    Another option:

     
    
    declare @ss int
    set @ss = datediff(second, '1 Jan 2003', '31 dec 2003 23:23:59') -- for example
    declare @ddhhmmss varchar(20)


    set @ddhhmmss =
    ...
  • RE: how to insert unique id

    You should use the NEWID() function.

    Look up NEWID in BOL.

    Cheers,

    - Mark

  • RE: Dynamic Database Duplication

    sounds like you've got a good solution - it's straightforward, and it works.

    Some other options:

    a) Use model as the template (trouble is you may not want EVERY new database emulating...

  • RE: Full Text Search causing headaches

    I wouldn't expect upgrading to win 2003 to present different results - or there'd be people screaming at MS by now.

    I may be in your full text queries. What...

  • RE: @@rowcount not set

    No, the trigger will still fire if no rows are affected. Eg.

     
    
    create table test1 (id int)
    go


    create trigger trtest1
    on test1
    for delete, insert, update
    as...
  • RE: @@rowcount not set

    The @@rowcount will not have a value at that beginning stage of your trigger (ie. it IS set by statement that fired the trigger, but is not visible within the...

  • RE: datetime

    Use one of the many CONVERT formats. Eg:

    select convert(varchar(10), orderdate, 120), count(*) from GeneralBooks group by convert(varchar(10), orderdate, 120) order by 1

    Cheers,

    - Mark

Viewing 15 posts - 181 through 195 (of 789 total)