Forum Replies Created

Viewing 15 posts - 511 through 525 (of 13,460 total)

  • RE: Ability to CREATE JOBS run by a service account WITHOUT being SYSADMIN

    why not have a new DBA job that now  updates any jobs not owned by [sa] to be [sa], and any job steps that are of type SSIS to have...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Database encription - deny access "with execute as" clause

    seems like the right thing to do is simply replace dbo permissions with something that is almost, but not quite the same. that would address the issue, i would think.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Database encription - deny access "with execute as" clause

    awesome. that's the way to code defensively.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Database encription - deny access "with execute as" clause

    did you hard code it to a string 'EXECUTE AS', so 'EXECUTE{CrLf}
    AS' would still be allowed?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: solution doesn't hit breakpoints

    nevermind...you explicitly said you toggled 32 bit mode....

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: User-friendly names for constraints

    I've written cleanup procedure that generate the sp_rename command for what i consider the the friendly name., so if the constraint doesn't match my expected name, it generates a command...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Database encription - deny access "with execute as" clause

    is it not true that the only person that can do a procedure featuring  EXECUTE AS  is going to be a sysadmin anyway?
    a regular user cannot create a procedure...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Question about DBMail

    DatabaseMail , in a way, is exactly like any other  mail client...office365,ThunderBird, Google Mail, etc. it just uses a connection to a real mail server to forward an email, which...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to delete all tables except two specific tables ?

    "not running" doesn't tell us anything.
    if you got a specific error, tell us the error.
    if you ran the select, was it an empty string?
    maybe you have schemas...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to delete all tables except two specific tables ?

    Ed generated the string you have to execute.

    in his example the last line is the command, it was up to you to execute it
    SELECT @strSQL;

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: query time out from .net code

    you missed the point about entity framework.
    the EF DBContext probably has fifty tables or more inside.

    It's absolutely possible/probable, that because the context is using a big transaction...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: query time out from .net code

    the last lines of the error message tells you where in the code it failed, right?
    I'd guess that EF/Linq is adding a bunch of tables to your context that...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: The SQL Saturday Thread

    Ray K - Friday, January 20, 2017 9:36 AM

    So I got the email for SQL Saturday #627 in South Florida.  Half-kiddingly, I...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Database mail issue - Attachment file is invalid -

    also, the attachment has to be accessible to the SERVER; so if the file is on the C: drive of your laptop, and the server is a different machine than...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Get Ip Address of Servers on network and Check if services are running

    I've done something like thisrequest, but via powershell; you have a lot more versatility there than pinging stuff via xp_cmdshell
    regardless of where you do it, the logic is basically...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 511 through 525 (of 13,460 total)