<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jon Galloway - All Comments</title><link>http://weblogs.asp.net/jgalloway/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: [Util] Open PLS Playlist in Windows Media Player</title><link>http://weblogs.asp.net/jgalloway/archive/2004/04/08/_5B00_Util_5D00_-Open-PLS-Playlist-in-Windows-Media-Player.aspx#6421403</link><pubDate>Sat, 19 Jul 2008 18:05:52 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6421403</guid><dc:creator>dbxdv</dc:creator><description>&lt;p&gt;this is soo HACKS!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6421403" width="1" height="1"&gt;</description></item><item><title>re: [T-SQL] Drop all constraints on a table</title><link>http://weblogs.asp.net/jgalloway/archive/2006/04/12/442616.aspx#6421212</link><pubDate>Sat, 19 Jul 2008 17:02:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6421212</guid><dc:creator>Adam  Turner</dc:creator><description>&lt;p&gt;Sorry didn't realize it didn't work with FK constraints...so here's the full code that will drop FK constraints and the tables and make sure you're not running on the production server:&lt;/p&gt;
&lt;p&gt;SET QUOTED_IDENTIFIER ON &lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;SET ANSI_NULLS ON &lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;ALTER PROCEDURE usp_ClearConstraints&lt;/p&gt;
&lt;p&gt;	@DatabaseName varchar(50)&lt;/p&gt;
&lt;p&gt;AS&lt;/p&gt;
&lt;p&gt;IF @@ServerName &amp;lt;&amp;gt; 'YourProductionServer'&lt;/p&gt;
&lt;p&gt;BEGIN&lt;/p&gt;
&lt;p&gt;DECLARE @TableName NVARCHAR(50)&lt;/p&gt;
&lt;p&gt;DECLARE @ConstraintName NVARCHAR(50)&lt;/p&gt;
&lt;p&gt;DECLARE Constraints CURSOR FOR&lt;/p&gt;
&lt;p&gt; SELECT TABLE_NAME, CONSTRAINT_NAME &lt;/p&gt;
&lt;p&gt;	FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE u&lt;/p&gt;
&lt;p&gt; JOIN SYSOBJECTS s&lt;/p&gt;
&lt;p&gt;	ON u.TABLE_NAME = s.Name&lt;/p&gt;
&lt;p&gt; WHERE TABLE_CATALOG = @DatabaseName&lt;/p&gt;
&lt;p&gt;	AND s.xType = 'U'&lt;/p&gt;
&lt;p&gt; ORDER BY u.Constraint_Name --Get FK constraints first&lt;/p&gt;
&lt;p&gt;OPEN Constraints&lt;/p&gt;
&lt;p&gt;FETCH NEXT FROM Constraints INTO @TableName, @ConstraintName&lt;/p&gt;
&lt;p&gt;WHILE @@FETCH_STATUS = 0&lt;/p&gt;
&lt;p&gt;BEGIN &lt;/p&gt;
&lt;p&gt;IF LEFT(@ConstraintName, 2) = 'FK'&lt;/p&gt;
&lt;p&gt;BEGIN&lt;/p&gt;
&lt;p&gt;DECLARE @FKTableName as varchar(50)&lt;/p&gt;
&lt;p&gt;DECLARE @FKName as varchar(50)&lt;/p&gt;
&lt;p&gt;SET @FKName = &amp;nbsp;(SELECT TABLE_CATALOG FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE WHERE TABLE_CATALOG = @TableName)&lt;/p&gt;
&lt;p&gt;SET @FKTableName = (SELECT object_name(fkeyid) from sysreferences where object_name(constid) = @FKName)&lt;/p&gt;
&lt;p&gt; EXEC('USE ' + @DatabaseName + ' ALTER TABLE [' + @TableName + '] DROP CONSTRAINT [' + @ConstraintName + ']')&lt;/p&gt;
&lt;p&gt; FETCH NEXT FROM Constraints INTO @TableName, @ConstraintName&lt;/p&gt;
&lt;p&gt;END&lt;/p&gt;
&lt;p&gt;ELSE --Else if there are no foreign key constraints on the table&lt;/p&gt;
&lt;p&gt;BEGIN&lt;/p&gt;
&lt;p&gt; EXEC('USE ' + @DatabaseName + ' ALTER TABLE [' + @TableName + '] DROP CONSTRAINT [' + @ConstraintName + ']')&lt;/p&gt;
&lt;p&gt; FETCH NEXT FROM Constraints INTO @TableName, @ConstraintName&lt;/p&gt;
&lt;p&gt;END&lt;/p&gt;
&lt;p&gt;END&lt;/p&gt;
&lt;p&gt;CLOSE Constraints&lt;/p&gt;
&lt;p&gt;DEALLOCATE Constraints&lt;/p&gt;
&lt;p&gt;DECLARE Tables CURSOR FOR&lt;/p&gt;
&lt;p&gt; SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES u&lt;/p&gt;
&lt;p&gt; JOIN SYSOBJECTS s&lt;/p&gt;
&lt;p&gt;	ON u.TABLE_NAME = s.Name&lt;/p&gt;
&lt;p&gt; WHERE TABLE_CATALOG = @DatabaseName&lt;/p&gt;
&lt;p&gt;	AND s.xType = 'U'&lt;/p&gt;
&lt;p&gt;OPEN Tables&lt;/p&gt;
&lt;p&gt;FETCH NEXT FROM Tables INTO @TableName&lt;/p&gt;
&lt;p&gt;WHILE @@FETCH_STATUS = 0&lt;/p&gt;
&lt;p&gt;BEGIN &lt;/p&gt;
&lt;p&gt; EXEC('USE ' + @DatabaseName + ' DROP TABLE [' + @TableName + ']')&lt;/p&gt;
&lt;p&gt; FETCH NEXT FROM Tables INTO @TableName&lt;/p&gt;
&lt;p&gt;END&lt;/p&gt;
&lt;p&gt;CLOSE Tables&lt;/p&gt;
&lt;p&gt;DEALLOCATE Tables&lt;/p&gt;
&lt;p&gt;END &lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;SET QUOTED_IDENTIFIER OFF &lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;SET ANSI_NULLS ON &lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6421212" width="1" height="1"&gt;</description></item><item><title>re: [T-SQL] Drop all constraints on a table</title><link>http://weblogs.asp.net/jgalloway/archive/2006/04/12/442616.aspx#6421038</link><pubDate>Sat, 19 Jul 2008 16:01:18 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6421038</guid><dc:creator>Adam Turner</dc:creator><description>&lt;p&gt;Here's some code that will go a step further and drop the tables as well as check to be sure you're not on the production server&amp;quot;&lt;/p&gt;
&lt;p&gt;CREATE PROCEDURE usp_ClearConstraints&lt;/p&gt;
&lt;p&gt;	@DatabaseName varchar(50)&lt;/p&gt;
&lt;p&gt;AS&lt;/p&gt;
&lt;p&gt;IF @@ServerName &amp;lt;&amp;gt; 'YourProductionServerName'&lt;/p&gt;
&lt;p&gt;BEGIN&lt;/p&gt;
&lt;p&gt;DECLARE @TableName NVARCHAR(50)&lt;/p&gt;
&lt;p&gt;DECLARE @ConstraintName NVARCHAR(50)&lt;/p&gt;
&lt;p&gt;DECLARE Constraints CURSOR FOR&lt;/p&gt;
&lt;p&gt; SELECT TABLE_NAME, CONSTRAINT_NAME &lt;/p&gt;
&lt;p&gt;	FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE u&lt;/p&gt;
&lt;p&gt; JOIN SYSOBJECTS s&lt;/p&gt;
&lt;p&gt;	ON u.TABLE_NAME = s.Name&lt;/p&gt;
&lt;p&gt; WHERE TABLE_CATALOG = @DatabaseName&lt;/p&gt;
&lt;p&gt;	AND s.xType = 'U'&lt;/p&gt;
&lt;p&gt;OPEN Constraints&lt;/p&gt;
&lt;p&gt;FETCH NEXT FROM Constraints INTO @TableName, @ConstraintName&lt;/p&gt;
&lt;p&gt;WHILE @@FETCH_STATUS = 0&lt;/p&gt;
&lt;p&gt;BEGIN &lt;/p&gt;
&lt;p&gt; EXEC('USE ' + @DatabaseName + ' ALTER TABLE [' + @TableName + '] DROP CONSTRAINT [' + @ConstraintName + ']')&lt;/p&gt;
&lt;p&gt; FETCH NEXT FROM Constraints INTO @TableName, @ConstraintName&lt;/p&gt;
&lt;p&gt;END&lt;/p&gt;
&lt;p&gt;CLOSE Constraints&lt;/p&gt;
&lt;p&gt;DEALLOCATE Constraints&lt;/p&gt;
&lt;p&gt;DECLARE Tables CURSOR FOR&lt;/p&gt;
&lt;p&gt; SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES u&lt;/p&gt;
&lt;p&gt; JOIN SYSOBJECTS s&lt;/p&gt;
&lt;p&gt;	ON u.TABLE_NAME = s.Name&lt;/p&gt;
&lt;p&gt; WHERE TABLE_CATALOG = @DatabaseName&lt;/p&gt;
&lt;p&gt;	AND s.xType = 'U'&lt;/p&gt;
&lt;p&gt;OPEN Tables&lt;/p&gt;
&lt;p&gt;FETCH NEXT FROM Tables INTO @TableName&lt;/p&gt;
&lt;p&gt;WHILE @@FETCH_STATUS = 0&lt;/p&gt;
&lt;p&gt;BEGIN &lt;/p&gt;
&lt;p&gt; EXEC('USE ' + @DatabaseName + ' DROP TABLE [' + @TableName + ']')&lt;/p&gt;
&lt;p&gt; FETCH NEXT FROM Tables INTO @TableName&lt;/p&gt;
&lt;p&gt;END&lt;/p&gt;
&lt;p&gt;CLOSE Tables&lt;/p&gt;
&lt;p&gt;DEALLOCATE Tables&lt;/p&gt;
&lt;p&gt;END&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6421038" width="1" height="1"&gt;</description></item><item><title>Zolpidem.</title><link>http://weblogs.asp.net/jgalloway/archive/2005/12/28/IE7-Standalone-Launch-Script.aspx#6420513</link><pubDate>Sat, 19 Jul 2008 13:31:30 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6420513</guid><dc:creator>Zolpidem.</dc:creator><description>&lt;p&gt;Zolpidem online. Cheapest zolpidem. Zolpidem eszopiclone indications. Zolpidem.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6420513" width="1" height="1"&gt;</description></item><item><title>how to match data from excel to access - Learn Excel - Learn Excel - Learn Excel</title><link>http://weblogs.asp.net/jgalloway/archive/2008/05/08/jon-s-news-wrapup-may-8-2008-edition.aspx#6420140</link><pubDate>Sat, 19 Jul 2008 11:31:47 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6420140</guid><dc:creator>how to match data from excel to access - Learn Excel - Learn Excel - Learn Excel</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;how to match data from excel to access - Learn Excel - Learn Excel - Learn Excel&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6420140" width="1" height="1"&gt;</description></item><item><title>vector graphics software</title><link>http://weblogs.asp.net/jgalloway/archive/2008/04/10/february-march-2008-recap.aspx#6416723</link><pubDate>Fri, 18 Jul 2008 18:48:41 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6416723</guid><dc:creator>vector graphics software</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;vector graphics software&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6416723" width="1" height="1"&gt;</description></item><item><title>re: //TODONT: Use a Windows Service just to run a scheduled process</title><link>http://weblogs.asp.net/jgalloway/archive/2005/10/24/428303.aspx#6415942</link><pubDate>Fri, 18 Jul 2008 15:06:30 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6415942</guid><dc:creator>Aid</dc:creator><description>&lt;p&gt;Sorry,got it wrong. Don't have VB on my laptop and read source in notepad.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6415942" width="1" height="1"&gt;</description></item><item><title>re: [Util] Open PLS Playlist in Windows Media Player</title><link>http://weblogs.asp.net/jgalloway/archive/2004/04/08/_5B00_Util_5D00_-Open-PLS-Playlist-in-Windows-Media-Player.aspx#6415792</link><pubDate>Fri, 18 Jul 2008 14:22:14 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6415792</guid><dc:creator>Nick </dc:creator><description>&lt;p&gt;When I go to the place you specify in your link and try to get the programme, I get the following:&lt;/p&gt;
&lt;p&gt;A critical error has occurred.&lt;/p&gt;
&lt;p&gt;Could not find file 'D:\Websites\tools.veloc-it.com\Portals\2\Repository\OpenPlsInWmp2Setup.45a14f27-82ff-4ef9-9b6e-3a29d3d34c26.zip'.&lt;/p&gt;
&lt;p&gt;regards: &amp;nbsp;Nick&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6415792" width="1" height="1"&gt;</description></item><item><title>re: //TODONT: Use a Windows Service just to run a scheduled process</title><link>http://weblogs.asp.net/jgalloway/archive/2005/10/24/428303.aspx#6415714</link><pubDate>Fri, 18 Jul 2008 14:04:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6415714</guid><dc:creator>Aid</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm currently looking at converting a piece of software from VB6 that transfers a CSV file to a database every 15 mins. I came across this &lt;a rel="nofollow" target="_new" href="http://www.codeproject.com/KB/database/SQLAgent.aspx"&gt;www.codeproject.com/.../SQLAgent.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It uses a windows service that wraps the scheduler. I'm actually using the software to backup a database and it works well so far. I was looking at services so I can run the app under localsystem account without anyone logged in.&lt;/p&gt;
&lt;p&gt;I'm a bit confused about wrapping the scheduler inside a service and was looking for some other thoughts.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6415714" width="1" height="1"&gt;</description></item><item><title>re: [Util] Open PLS Playlist in Windows Media Player</title><link>http://weblogs.asp.net/jgalloway/archive/2004/04/08/_5B00_Util_5D00_-Open-PLS-Playlist-in-Windows-Media-Player.aspx#6414644</link><pubDate>Fri, 18 Jul 2008 09:12:53 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6414644</guid><dc:creator>Nick </dc:creator><description>&lt;p&gt;When I try to download your compiled proramme I get this:&lt;/p&gt;
&lt;p&gt;A critical error has occurred.&lt;/p&gt;
&lt;p&gt;Could not find file 'D:\Websites\tools.veloc-it.com\Portals\2\Repository\OpenPlsInWmp2Setup.45a14f27-82ff-4ef9-9b6e-3a29d3d34c26.zip'.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6414644" width="1" height="1"&gt;</description></item></channel></rss>