Viewing 15 posts - 2,191 through 2,205 (of 7,187 total)
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. ...
November 14, 2016 at 9:33 am
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...
November 14, 2016 at 4:56 am
Oh, I see, yes - having my ANDs and ORs in a muddle caused XML columns to be included. Good spot!
John
November 14, 2016 at 4:39 am
Eirikur Eiriksson (11/14/2016)
John Mitchell-245523 (11/14/2016)
November 14, 2016 at 4:24 am
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...
November 14, 2016 at 3:12 am
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...
November 14, 2016 at 2:17 am
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...
November 11, 2016 at 9:59 am
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...
November 11, 2016 at 8:41 am
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...
November 11, 2016 at 8:37 am
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....
November 11, 2016 at 8:24 am
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...
November 11, 2016 at 8:16 am
As far as I know, you can't - RESTORE DATABASE will leave the database owned by the user who performed the restore. You'll need to add the change of...
November 11, 2016 at 7:47 am
Just change your connection string(s) so they have the new server name. That should be all - there's no need for an application to know whether its database is...
November 11, 2016 at 7:09 am
What have you tried? If you show us that, we can show you where you're going wrong. Here's a hint: use CHARINDEX to find the position of the...
November 11, 2016 at 4:59 am
The reason your script fails is that the [font="Courier New"]EXEC @Variable = ProcName[/font] syntax writes the return value, not the output parameter value, into the @Variable variable. Return values...
November 9, 2016 at 9:28 am
Viewing 15 posts - 2,191 through 2,205 (of 7,187 total)