Viewing 15 posts - 691 through 705 (of 13,469 total)
each database has a system view named sys.database_role_members, which is just ID's associated ot roles; you have to join that against database_principals to get what you are after.
you'll need...
January 15, 2017 at 7:50 pm
After a large delete, you'll need to rebuild the indexes on the table.
the deleted items still take up the pages they used to occupy, and reindexing rearranges and deletes...
January 15, 2017 at 5:44 am
January 14, 2017 at 9:42 am
I managed to break the javascript in a post, so I cannot edit the post, nor use the mini "Explore "menu in the upper right that typically has a link...
January 13, 2017 at 12:43 pm
I have a script that returns lots of useful information about all the indexes in my...
January 13, 2017 at 12:35 pm
i have this saved from something i built off of an msdn, does this help?
left join ReportSchedule rs on Sch.ScheduleID = rs.ScheduleID
left join...
January 13, 2017 at 11:26 am
My company currently runs SSRS 2008 in production, and we've stood up an SSRS 2016...
January 13, 2017 at 9:25 am
I tried slapping a full example together, but i find it pretty annoying that Format-Table is leaving extra whitespace.
there a line in the beginning where a header would be...
January 13, 2017 at 7:11 am
no problem with asking for another look, I'm glad to help.
yeah you could potentially be seeing new logins being created after your delete, so they show up in your query;...
January 11, 2017 at 2:03 pm
sumanth.pathuri (1/11/2017)
How can we capture if someone edits a record without using a trigger. We need a column in the same table. Can you please help me with this.
you should...
January 11, 2017 at 11:37 am
very weird;
since you got an SMO error, i might worry that you are using an older version of SQL Server Management Studio to connect to a higher version of SQL...
January 10, 2017 at 2:20 pm
are you a sysadmin?
are you connecting via a dedicated connection?
does this return anything with the IsEncrypted column being 1?
SELECT
sm.object_id,
OBJECT_SCHEMA_NAME(sm.object_id) AS SchemaName,
OBJECT_NAME(sm.object_id) AS object_name,
o.type, o.type_desc,
sm.definition,
CAST(CASE WHEN...
January 10, 2017 at 1:56 pm
you could create it WITH NO CHECK so it does not validate the existing data, and would be untrusted...but why would you want to do that?
referential integrity is a good...
January 10, 2017 at 1:40 pm
i just confirmed this still works on SQL2016, so you are good for all lower versions too.
ok, try opening a dedicated admin connection,

and in the database in question, add this...
January 10, 2017 at 1:30 pm
take a look at this thread, which explains you can use a combination of the Dedicated Admin Connection and a procedure to view the encrypted definition.
http://jongurgul.com/blog/sql-object-decryption/
if you happen to...
January 10, 2017 at 1:09 pm
Viewing 15 posts - 691 through 705 (of 13,469 total)