Forum Replies Created

Viewing 15 posts - 1 through 15 (of 48 total)

  • RE: Permissions on msdb.dbo.syssessions (to query running jobs in SQL Agent)

    Hi, I've been working on a program to allow a non-privileged user to start jobs (s)he doesn't own.

    With the correct setup, querying the tables in MSDB is possible. I set...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: Primary filegroup for system objects, secondary for data)

    Gail,

    Many (somewhat belated) thanks for your response.

    Unfortunately I won't convince anyone where I work on recoverability grounds.

    We are in the extremely luxurious position of being able to take an extended...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: How to shrink the log file?

    I thought I'd post a follow-up.

    It turned out the replication in question was set up as a snapshot replication. I think a predecessor had tried to set up transactional replication,...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: How to shrink the log file?

    Here are the instructions I put together for the unpublish and republish of the databases. I'd be grateful for any comments.

    Have I missed anything? For example: do I need to...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: How to shrink the log file?

    Thanks again.

    I'll try deleting and redefining the replication.



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: How to shrink the log file?

    Thank you both for your responses.

    I'm still trying to understand what's going on (or not, as the case might be).

    I don't see a log reader job - which is why...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: Get Error when using Execute command

    Did you try it?

    When I used it on your example above it did indeed stop everything in its tracks

    - but didn't even print @@error.

    Serqiy's comment about the dangers of letting someone...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: Get Error when using Execute command

    Serqiy's comment set me thinking. Why are you letting someone else send you a SQL string instead of a list of values?

    Can you not accept a string like the following...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: Get Error when using Execute command

    Wise words indeed. A little validation may be desireable.



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: Get Error when using Execute command

    Apologies, now I understand. I thought you were building the strings.

    You could separate the commands. Look at http://www.simple-talk.com/sql/t-sql-programming/the-helper-table-workbench/ for some clever ways of separating a string and putting the...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: Get Error when using Execute command

    At the risk of repeating myself

    "Execute only returns status information for the last command presented to it. You need to execute each insert statement separately, testing @@error after each."

    Try



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: How to update table variable statement

    I assume you're getting a syntax error (you didn't say what the problem was ) on the update statement.

    Try

    Update b

    Set desc =...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: How to use SP(generating new ID) in a insert statement

    Two things I don't understand.

    1. "However, I am using SQL Server 2000 and can't change my table structure to use identity type column."

    SQL/Server 2000 supports the identity clause. The easiest...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: Error converting varchar to float

    Be aware you will still see numbers like 87.725239999999999 if you do a select value_str from xxx, even after your update.

    See thread http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=367756 for an extensive discussion...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • RE: Triggers and Rollbacks

    If you're nesting transactions, be aware that only the last commit actually does anything.

    Here's how it works in SQL/Server:

    Begin transaction - If @@trancount = 0, sets up transaction processing

                              Always...



    Best Regards,

    Otto Schreibke

    The future is a foreign country, they do things differently there.
    (Stolen from Arthur C Clarke)

  • Viewing 15 posts - 1 through 15 (of 48 total)