Forum Replies Created

Viewing 15 posts - 6,016 through 6,030 (of 13,468 total)

  • RE: Store procedure

    you only need to grant EXECUTE on a stored procedure.

    by design, if the user has EXECUTE permissions, whatever the proc does, whether INSERT/UPDATE/DELETE, the proc will run successfully, and the...

  • RE: Database Restore does not have all users

    a full backup is always an exact copy at a certain point of time...so it's just not possible that a backup restores some, but not all users. a backup is...

  • RE: Blocking users out of the system for a specified time range?

    can't you just have your process change each database to RESTRICTED_USER WITH ROLLBACK IMMEDIATE

    OR

    SINGLE_USER WITH ROLLBACK IMMEDIATE

    to kick them out, do your work or maintenance, and then put...

  • RE: fn_trace_gettable error if rollover trace file is empty

    Pam just to be sure the path tot eh file is correct, does this work for you?

    i think it works, but does it do what you were looking for?

    --get...

  • RE: Finding out who dropped a table

    aurato (1/26/2012)


    Thanks, but how can I pick how far back that report goes? It's only showing since 8 AM this morning.

    server wide, it's only the last 100 meg of...

  • RE: Finding out who dropped a table

    DROP TABLE counts as a DDL function,and would be in the default trace, if it didn't get rolled over:

    fastest way is the built in reports in SSMS:

  • RE: Create User, Role, Grant Permission

    Laura_SqlNovice (1/24/2012)


    Wow Lowell... this is awesome... your comments on every line has made this code so clear. Thanks a bunch!

    Laura I was feeling a little inspired when i fiddled with...

  • RE: Export to TIFF

    i thought TIFF was an image format, so it's not really pages...

    if you had a 10 pages in that single image, do you want an image that is 8.5 inches...

  • RE: SQL Developer licensing

    here's my two cents.

    a linked server is just a connection to a licensed server.

    no different from whether i connect via an application i create, or from a developer...

  • RE: DBCC Check database consistency errors:

    Gail will weigh in I'm sure, as she's had a lot more experience on this, but I'm very sure that unrepairable error. = restore from backup, as it cannot be...

  • RE: Migrating all MS SQL Server Databases

    oops wrong post sorry.

  • Reply To: Create User, Role, Grant Permission

    Laura_SqlNovice (1/24/2012)


    So Lowell I should make the user db_ddladmin and then create DDL triggers to stop users from altering, dropping objects?

    well Laura i threw some time at this, as it...

    • This reply was modified 7 years, 1 months ago by Lowell.
    • This reply was modified 6 years, 7 months ago by Lowell. Reason: reformatted due to new web design for code tags
  • RE: Create User, Role, Grant Permission

    Laura this is a tough one;

    SQL doesn't have granularity you are looking for;

    it's pretty much grant ALTER on the schema, and that applies to all the DDL for all objects,...

  • RE: DMVs go how far back?

    my examples of that would depeend on how much memory you had for plans to stay cached in memory, i think;

    SELECT

    fn.*,

    st.*

    FROM ...

  • RE: DMVs go how far back?

    it depends on WHICH DMV also;

    sys.dm_exec_connections are only valid while the spid is connected, i think;

    sys.dm_db_index_usage_stats is good until a stop start,

    but i think sys.dm_exec_query_plan would get cleared...

Viewing 15 posts - 6,016 through 6,030 (of 13,468 total)