Forum Replies Created

Viewing 15 posts - 2,191 through 2,205 (of 7,191 total)

  • RE: Access is denied

    HBollah (11/16/2016)


    I haven't configured the advanced part for the full output, but generally access denied is access denied 🙂

    Mmmm... that's about as helpful as the government saying "Brexit means Brexit"!...

  • RE: Access is denied

    "Access is denied" sounds like an operating system error. Maybe you're trying to copy files to a location you (ie the SQL Server Agent or proxy account) don't have access...

  • RE: Stupid question? How to exclude 'SA' using sp_who

    I don't think you can do it with sp_who out of the box. What you can do is look at the definition for sp_who and create a new stored...

  • RE: Replace uppercase words with bold

    I think it would be quite a complicated solution in T-SQL, so much so that you may consider using a different language, but if you want to do it, here...

  • RE: Grant access to user to run a SQL agent job

    There are three roles in msdb, called something like SQLAgentUser, SQLAgentOperator and SQLAgentSomethingElse. Each gives a different level of permissions to a user to do things with jobs. ...

  • RE: Find column values with Pattern

    Yes, although I assume this is a one-off and therefore performance might not be too important. Also, using EXISTS might not meet the requirement. Since we know that...

  • RE: Find column values with Pattern

    Oh, I see, yes - having my ANDs and ORs in a muddle caused XML columns to be included. Good spot!

    John

  • RE: Find column values with Pattern

    Eirikur Eiriksson (11/14/2016)


    John Mitchell-245523 (11/14/2016)


    OK, this query will look at all columns with data length of 15 or more and show the number of values with the requested pattern. ...

  • RE: Find column values with Pattern

    OK, this query will look at all columns with data length of 15 or more and show the number of values with the requested pattern. Beware that the INFORMATION_SCHEMA...

  • RE: Find column values with Pattern

    Nicole

    Those aren't properties of the column: they're properties of the individual values in the columns. Are you saying that you want to find all columns that have at least...

  • RE: Update duplicate keys

    I'm not sure what you mean by ON DUPLICATE - I don't think it's a T-SQL keyword. You'll need either a MERGE statement, or to do separate INSERT and...

  • RE: Loop through list of tables to find size and columns?

    No, you still don't need a loop. Put your list of tables in a temp table and join that to the results of one of the queries that you...

  • RE: Changing database owner

    Eirikur Eiriksson (11/11/2016)


    ramana3327 (11/11/2016)


    I am sure, I was not logged as sa.

    Then your login is a member of the sysadmin role

    😎

    Interesting. I'm a sysadmin and I just restored a...

  • RE: Loop through list of tables to find size and columns?

    You don't need a loop to get table sizes. Just type "table size query" into your favourite search engine and you'll get plenty of pointers to what to do....

  • RE: Changing database owner

    Like I said, the only way I know of doing it is to change the database owner separately. If you did it before and the owner was sa, could...

Viewing 15 posts - 2,191 through 2,205 (of 7,191 total)