<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: SQL Server Object Search (Advanced T-SQL)</title>
	<link>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/</link>
	<description></description>
	<pubDate>Thu, 21 Aug 2008 00:04:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Jean Thierry</title>
		<link>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-189</link>
		<dc:creator>Jean Thierry</dc:creator>
		<pubDate>Thu, 21 Feb 2008 18:24:47 +0000</pubDate>
		<guid>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-189</guid>
		<description>Nice work! Fantastic query. Search is one of the most frequently used options when it comes to dig deep into the database structure. Of course, it's not that type of tasks that you perform on a daily basis but nevertheless, it happens that you have to search though the schema to get results really fast. And this is one of situations when you need to do it right now and you have to act immediately. Unfortunately here is where basic management facilities can't handle the tasks you want them to help you with. It's a paradox but while the fact is everything pretending to be a serious solution relies on SQL we still think that we don't have a way to effectively solve our SQL-tied tasks. As an example, I thought it's impossible to find every object in SQL server having a specific ACL or a specific security assigned to it. I frequently need to find obsolete security settings that were specified for stored procedure or specific object for the user that has been resigned with our company. Sometimes it's also needed to clean out security to restrict access to SQL item for the user that moved from one product to another. But I couldn't find any solution or advice other than just recommendations to script it myself. But as a developer you know what it takes to create any program aimed for security management. It's a great deal of work even for a professional developer. Imagine what would it take from me if I had to develop such tool. Others that understood the complexity of the problem were telling me that I have to forget about this as security management on SQL is a very complicated task and there's no single management tool on Earth able to do what I want. And you know what, we all were completely wrong. Quite recently I came across a wonderful security management tool from Scriptlogic called Security Explorer http://www.scriptlogic.com/products/security-explorer/ that does all that I wanted and even more. That was an eyeopener! With such a small tool as Security Explorer is I could make a search throughout any of the SQL servers I ran and get a result with the permissions that I have defined for some objects within a few seconds. Sure the time it takes to find the permissions depends on the size of SQL databases and probably also on how distributed is your SQL farm. But with such databases as mine it works with lightning speed. I guess we may thank .NET request efficiency shown there. As far as I understand the tool works through it as I see calls in SQL profiler. Today when I also found your brilliant SQL script I can tell for sure there's nothing impossible in SQL world!</description>
		<content:encoded><![CDATA[<p>Nice work! Fantastic query. Search is one of the most frequently used options when it comes to dig deep into the database structure. Of course, it&#8217;s not that type of tasks that you perform on a daily basis but nevertheless, it happens that you have to search though the schema to get results really fast. And this is one of situations when you need to do it right now and you have to act immediately. Unfortunately here is where basic management facilities can&#8217;t handle the tasks you want them to help you with. It&#8217;s a paradox but while the fact is everything pretending to be a serious solution relies on SQL we still think that we don&#8217;t have a way to effectively solve our SQL-tied tasks. As an example, I thought it&#8217;s impossible to find every object in SQL server having a specific ACL or a specific security assigned to it. I frequently need to find obsolete security settings that were specified for stored procedure or specific object for the user that has been resigned with our company. Sometimes it&#8217;s also needed to clean out security to restrict access to SQL item for the user that moved from one product to another. But I couldn&#8217;t find any solution or advice other than just recommendations to script it myself. But as a developer you know what it takes to create any program aimed for security management. It&#8217;s a great deal of work even for a professional developer. Imagine what would it take from me if I had to develop such tool. Others that understood the complexity of the problem were telling me that I have to forget about this as security management on SQL is a very complicated task and there&#8217;s no single management tool on Earth able to do what I want. And you know what, we all were completely wrong. Quite recently I came across a wonderful security management tool from Scriptlogic called Security Explorer <a href="http://www.scriptlogic.com/products/security-explorer/" rel="nofollow">http://www.scriptlogic.com/products/security-explorer/</a> that does all that I wanted and even more. That was an eyeopener! With such a small tool as Security Explorer is I could make a search throughout any of the SQL servers I ran and get a result with the permissions that I have defined for some objects within a few seconds. Sure the time it takes to find the permissions depends on the size of SQL databases and probably also on how distributed is your SQL farm. But with such databases as mine it works with lightning speed. I guess we may thank .NET request efficiency shown there. As far as I understand the tool works through it as I see calls in SQL profiler. Today when I also found your brilliant SQL script I can tell for sure there&#8217;s nothing impossible in SQL world!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Forrest</title>
		<link>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-172</link>
		<dc:creator>Forrest</dc:creator>
		<pubDate>Sun, 10 Feb 2008 06:56:44 +0000</pubDate>
		<guid>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-172</guid>
		<description>Well, that works, too, but the point is being able to do everything in one request ... automation.</description>
		<content:encoded><![CDATA[<p>Well, that works, too, but the point is being able to do everything in one request &#8230; automation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petteri</title>
		<link>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-162</link>
		<dc:creator>Petteri</dc:creator>
		<pubDate>Wed, 06 Feb 2008 00:38:25 +0000</pubDate>
		<guid>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-162</guid>
		<description>why not just run this query, copy the results and paste them into a new window, then run that as a query?

Select 'Select Name, ''' + Name + ''' As FoundIn From ' + Name + '..sysObjects Where name = ''search_text''' From sysDatabases</description>
		<content:encoded><![CDATA[<p>why not just run this query, copy the results and paste them into a new window, then run that as a query?</p>
<p>Select &#8216;Select Name, &#8221;&#8217; + Name + &#8221;&#8217; As FoundIn From &#8216; + Name + &#8216;..sysObjects Where name = &#8216;&#8217;search_text&#8221;&#8217; From sysDatabases</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Even ASP Ancient Can Do XML With Access &#171; Alexander The Great</title>
		<link>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-160</link>
		<dc:creator>Even ASP Ancient Can Do XML With Access &#171; Alexander The Great</dc:creator>
		<pubDate>Sun, 03 Feb 2008 05:42:45 +0000</pubDate>
		<guid>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-160</guid>
		<description>[...] is a legacy tip - SQL Server has better support for XML by far, though, without even needing an external language like ASP. And SQL Server is free - Access [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] is a legacy tip - SQL Server has better support for XML by far, though, without even needing an external language like ASP. And SQL Server is free - Access [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-159</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 01 Feb 2008 17:01:10 +0000</pubDate>
		<guid>http://blog.exo-brain.com/sql-server-object-search-advanced-t-sql/2008-01-30/#comment-159</guid>
		<description>How incredibly cool!  I put in this line of code right before you drop the table

select * from #sqlSearchResults as Match for xml auto, elements, root('SearchResults') 

Then I can take that and XSLT it into a web page.</description>
		<content:encoded><![CDATA[<p>How incredibly cool!  I put in this line of code right before you drop the table</p>
<p>select * from #sqlSearchResults as Match for xml auto, elements, root(&#8217;SearchResults&#8217;) </p>
<p>Then I can take that and XSLT it into a web page.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
