<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6840765188851879924</id><updated>2011-11-27T17:21:34.822-08:00</updated><title type='text'>Critical Status - Database-Oriented Issues Plus</title><subtitle type='html'>Critical Status - Database-Oriented Issues Plus

It seems that everything has a critical status, especially when it comes to databases and software development!  Here's a place for listing issues and ideas relating to database and development issues.  I'll list problems and ideas mainly related to SQL Server 2005l  Post your thoughts, advice or complaints!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-7091244557161601854</id><published>2010-09-23T13:28:00.000-07:00</published><updated>2010-09-23T13:38:50.567-07:00</updated><title type='text'>New found love of set based programming</title><content type='html'>Hey All&lt;br /&gt;&lt;br /&gt;Its been quite a while huh?  Here's something i've  been working on.  In trying to get a way from procedural/cursor based TSQL, I've found how to get done what i need using set based programming!  In using SQL the way it was meant to be, I can now execute commands faster using set based coding.  By declaring a temp table as a variable, I can still use memory-based processing without the overhead of DiskIO.  Dynamic SQL is built with a SELECT statement and inserted into the temp table.  The reason I used a  temp table was the need for a unique identity column to be used as a counter.  I have linked servers reaching out to all my database servers so I can remotely run commands or access data.  With the example below, I can run a command returning file information for each database on each server!  THIS will be extremely handy for building configuration dashboards.&lt;br /&gt;&lt;br /&gt;Happy Hunting Data Shepherds!!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt; @COUNTER TINYINT = 1,&lt;br /&gt; @COMMAND NVARCHAR(500)&lt;br /&gt; &lt;br /&gt;DECLARE&lt;br /&gt; @VIEWCOMMAND TABLE&lt;br /&gt;  (COUNTER TINYINT IDENTITY(1,1) NOT NULL,&lt;br /&gt;  COMMAND  NVARCHAR(100))&lt;br /&gt;&lt;br /&gt;INSERT INTO @VIEWCOMMAND&lt;br /&gt;SELECT&lt;br /&gt; 'SELECT * FROM [' + S.name + '].[' + D.name + '].SYS.DATABASE_FILES' AS 'COMMAND'&lt;br /&gt;FROM&lt;br /&gt; sys.servers S,&lt;br /&gt; sys.databases D&lt;br /&gt; &lt;br /&gt;WHILE @COUNTER IS NOT NULL&lt;br /&gt;&lt;br /&gt; BEGIN&lt;br /&gt; &lt;br /&gt;  SELECT @COMMAND =&lt;br /&gt;   (SELECT&lt;br /&gt;    COMMAND&lt;br /&gt;   FROM&lt;br /&gt;    @VIEWCOMMAND&lt;br /&gt;   WHERE&lt;br /&gt;    COUNTER = @COUNTER)&lt;br /&gt;&lt;br /&gt;  EXEC(@COMMAND)&lt;br /&gt;      &lt;br /&gt;  SET @COUNTER =&lt;br /&gt;   (SELECT&lt;br /&gt;    MIN(COUNTER)&lt;br /&gt;   FROM&lt;br /&gt;    @VIEWCOMMAND&lt;br /&gt;   WHERE&lt;br /&gt;    COUNTER &gt; @COUNTER)&lt;br /&gt;     &lt;br /&gt; END&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-7091244557161601854?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/7091244557161601854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=7091244557161601854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/7091244557161601854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/7091244557161601854'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2010/09/new-found-love-of-set-based-programming.html' title='New found love of set based programming'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-3995971684618237999</id><published>2009-06-05T13:05:00.000-07:00</published><updated>2009-06-05T13:09:45.506-07:00</updated><title type='text'>Server 'myserver' is not configured for RPC</title><content type='html'>Here's an interesting issue.  I wrote a stored proc that kills processes on any server for any database with optional loginame or datetime sequence.  On 2 of the production servers i got the below error.  all other servers, it works fine including other prod servers.  the below procs alleviate the issue by configuring the linkedserver for RPC.  i'll need to add these for a new proc for creating linkedservers!!!&lt;br /&gt;&lt;br /&gt;Problem: Server 'myserver' is not configured for RPC &lt;br /&gt;&lt;br /&gt;Solution: Problem is most likely that RPC is not configured for your linked server. That is not a default option, after all. You can see what settings are configured with exec sp_helpserver. &lt;br /&gt;&lt;br /&gt;If 'rpc,rpc out' is not in your results, then the the linked server isn't configured for RPC. To do so:&lt;br /&gt;&lt;br /&gt;exec sp_serveroption @server='myserver', @optname='rpc', @optvalue='true'&lt;br /&gt;exec sp_serveroption @server='myserver', @optname='rpc out', @optvalue='true'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-3995971684618237999?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/3995971684618237999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=3995971684618237999' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/3995971684618237999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/3995971684618237999'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2009/06/server-myserver-is-not-configured-for.html' title='Server &apos;myserver&apos; is not configured for RPC'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-3251397329261835847</id><published>2009-05-21T07:46:00.000-07:00</published><updated>2009-05-21T10:24:34.785-07:00</updated><title type='text'>Dropping logins fail - login granted perms to other logins/users</title><content type='html'>This drove me insane yesterday!!!  Simple task of dropping logins from one domain after adding accounts from another domain became a chore when 2 accounts failed to dropped because: &lt;br /&gt;&lt;br /&gt;Login 'XXXX\XXXXXXX.xxxxxxx' has granted one or more&lt;br /&gt;permission(s). Revoke the permission(s) before dropping the login.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I tried so many things like revoking granting ability from the acccount after searching who the accounts granted rights to (me!?!)  Revokes rights from my account and on and on with no luck.  I got frustrated and went home in disgust!!!  SO I read that if all fails, drop the account (MINE!!!) that perms were granted to and voila the accounts dropped!!!  Buzha!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-3251397329261835847?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/3251397329261835847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=3251397329261835847' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/3251397329261835847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/3251397329261835847'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2009/05/dropping-logins-fail-login-granted.html' title='Dropping logins fail - login granted perms to other logins/users'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-4566054671094946111</id><published>2009-05-20T08:25:00.000-07:00</published><updated>2009-05-20T08:33:03.785-07:00</updated><title type='text'>ACCESS and BIGINTs</title><content type='html'>SQL Server introduced the BIGINT datatype in 2005 to keep up with Oracle. This is a cool thing especially for data warehousing.  Unfortunately, ACCESS has the Integer and Long Integer datatypes.  The Long Integer is equivalent to SQLs INT but no equivalent to SQLs BIGINT.  This causes issues with ACCESS.  If you link to a SQL table where the primary key is a BIGINT, the linked table will display #DELETED! in each cell.  NO ITS NOT A SECURITY ISSUE!!!  So if you have customers that need to view SQL data thru Access linked tables, there are work arounds BUT the BIGINTs will need to be changed to INT.  Create an interface NOT in Access for your customers to view data if need be  MOSS 07 is a quick solution if you're using it, else try VS.NET or JAVA web apps.  yes its time consuming but you can't give all users Admin rights and SQL Server to play with!!!&lt;br /&gt;&lt;br /&gt;Here's a link to your work arounds:&lt;br /&gt;&lt;a href="http://www.mydatabasesupport.com/forums/sqlserver-odbc/246794-sql-2005-linked-table-ms-access-returns-deleted.htmlhttp://www.mydatabasesupport.com/forums/sqlserver-odbc/246794-sql-2005-linked-table-ms-access-returns-deleted.html"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-4566054671094946111?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/4566054671094946111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=4566054671094946111' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/4566054671094946111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/4566054671094946111'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2009/05/access-and-bigints.html' title='ACCESS and BIGINTs'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-5250581755467632534</id><published>2009-04-21T07:53:00.000-07:00</published><updated>2009-04-21T07:59:42.826-07:00</updated><title type='text'>EXTRACTING A DATABASE USER'S LOGIN NAME THATS NOT STORED IN THE SYSLOGIN TABLE</title><content type='html'>I'M WRITING SCRIPTS FOR HANDLING A DOMAIN ACCOUNT CHANGE OVER.  DID YOU KNOW WHEN YOU ENTER A NEW DATABASE USER AND GIVE IT A DOMAIN ACCOUNT LOGIN NAME, THAT DOES NOT EXIST IN THE INSTANCE\SECURITY\USERS LIST, THAT IT DOES NOT REGISTER IT IN THE SYSLOGIN TABLE?  SO IF YOU NEED TO PULL THAT LOGIN NAME, YOU CAN USE SUSER_SNAME() BY&lt;br /&gt;PASSING THE &lt;DATABASE&gt;.SYS.SYSUSER.SID VALUE FOR THE DATABASE USER ACCOUNT IN QUESTION.  I ORIGINALLY THOUGHT I WAS GOING TO HAVE TO ACCESS ACTIVE DIRECTORY DATA THROUGH A SMALL VB APP.  THE AD ADMIN GROUP WILL SURELY NOT GIVE THAT ACCESS TO ANYBODY AND CAN FORESEE LOTS OF POLITICS AND PAPERWORK INVOLVED IN EVEN A FAIR SIZED ORG OF SAY A FEW HUNDRED PEOPLE!  HOPE THIS SAVES YOU ALL SOME TIME!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-5250581755467632534?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/5250581755467632534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=5250581755467632534' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5250581755467632534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5250581755467632534'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2009/04/extracting-database-users-login-name.html' title='EXTRACTING A DATABASE USER&apos;S LOGIN NAME THATS NOT STORED IN THE SYSLOGIN TABLE'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-2328486386718725748</id><published>2009-04-10T12:21:00.000-07:00</published><updated>2009-04-10T12:23:51.342-07:00</updated><title type='text'>How to change databases within a stored procedure or function</title><content type='html'>This one was a royal pain in the ASS!!!!  Not fully correct info on the web or people saying it CAN'T be done.  NEVER NEVER NEVER tell me it CAN'T be done!!!!&lt;br /&gt;&lt;br /&gt;here is the revelant code from an SP for truncing logs.  rest your weary head!!!&lt;br /&gt;&lt;br /&gt;USE [RIXTOOLBOX]&lt;br /&gt;ALTER PROCEDURE [dbo].[spTruncateLogs] &lt;br /&gt; &lt;br /&gt; @DBName SYSNAME&lt;br /&gt; &lt;br /&gt;AS&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt; -- SET NOCOUNT ON added to prevent extra result sets from&lt;br /&gt; -- interfering with SELECT statements.&lt;br /&gt; SET NOCOUNT ON;&lt;br /&gt;&lt;br /&gt; DECLARE @command varchar(500), @LogFile VARCHAR(500), @LOGSTR VARCHAR(10);&lt;br /&gt; SET @LOGSTR = '%LOG%'&lt;br /&gt; SET @command = 'DECLARE c CURSOR FOR&lt;br /&gt;    SELECT &lt;br /&gt;     NAME &lt;br /&gt;    FROM &lt;br /&gt;     [' + @DBName + '].SYS.SYSFILES&lt;br /&gt;    WHERE &lt;br /&gt;     name LIKE ''' + @LOGSTR + ''';'&lt;br /&gt;&lt;br /&gt; EXEC (@COMMAND)&lt;br /&gt; OPEN c;&lt;br /&gt; FETCH NEXT FROM c INTO @LogFile;&lt;br /&gt;&lt;br /&gt; SET @COMMAND = &lt;br /&gt;  'ALTER DATABASE "' + @DBName + '" SET RECOVERY SIMPLE';&lt;br /&gt; EXEC (@COMMAND);&lt;br /&gt; CHECKPOINT&lt;br /&gt;&lt;br /&gt; BACKUP LOG @DBName WITH NO_LOG&lt;br /&gt;&lt;br /&gt;   SET @command = &lt;br /&gt;    '&lt;br /&gt;    USE ' + @DBName + '; &lt;br /&gt;    DBCC SHRINKFILE (' + @LogFile + ', 1);&lt;br /&gt;    ';&lt;br /&gt;&lt;br /&gt; EXEC (@COMMAND);  &lt;br /&gt; CLOSE c&lt;br /&gt; DEALLOCATE c&lt;br /&gt;&lt;br /&gt; SET @COMMAND = &lt;br /&gt;  'ALTER DATABASE "' + @DBName + '" SET RECOVERY FULL';&lt;br /&gt; EXEC (@COMMAND);&lt;br /&gt;&lt;br /&gt; SET @command = &lt;br /&gt;    'SELECT &lt;br /&gt;     * &lt;br /&gt;    FROM &lt;br /&gt;     [' + @DBName + '].SYS.SYSFILES&lt;br /&gt;    WHERE &lt;br /&gt;     name LIKE ''' + @LOGSTR + ''';'&lt;br /&gt;&lt;br /&gt; EXEC (@COMMAND);&lt;br /&gt;&lt;br /&gt;END&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-2328486386718725748?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/2328486386718725748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=2328486386718725748' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/2328486386718725748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/2328486386718725748'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2009/04/how-to-change-databases-within-stored.html' title='How to change databases within a stored procedure or function'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-5027975584525062173</id><published>2009-02-20T08:03:00.000-08:00</published><updated>2009-02-20T08:10:47.846-08:00</updated><title type='text'>A bit of SSIS confusion with server names</title><content type='html'>When registering a new Integration Service in SSMS, you're can only enter a server name.  It won't register the instance.  When you are importing/exporting a package to/from one instance to another, enter the server name AND instance in the server list even though it may only supply just the server name.  Add the "\" and instance name to the server name as you would say registering a new server instance.  You'll get an "OLE DB error 0x80004005 (Client unable to establish connection) occurred while enumerating packages" error.  You're not able to log into the server because its name is incomplete.&lt;br /&gt;&lt;br /&gt;i had found ONE listing that pointed to the correct resolution:  http://social.msdn.microsoft.com/forums/en-US/sqlintegrationservices/thread/8da717ef-05e0-4a59-9a91-a96e29d4dfa6/  Read down about midway to get the answer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-5027975584525062173?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/5027975584525062173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=5027975584525062173' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5027975584525062173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5027975584525062173'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2009/02/bit-of-ssis-confusion-with-server-names.html' title='A bit of SSIS confusion with server names'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-588487675212751421</id><published>2009-01-29T14:34:00.000-08:00</published><updated>2009-01-29T14:40:23.180-08:00</updated><title type='text'>When a database is stuck in restore mode</title><content type='html'>A vendor was working on one of our (their) DEV DBs.  They were restoring it with something and did something to interupt it or it just got corrupt.  I've tried a variety of things that could stop with no luck.  finally upon searching for a solution, in a post of some forum foudn from googling, someone stated that you can: &lt;br /&gt;&lt;br /&gt;   "If no recovery option is specified in your command then it defaults to WITH RECOVERY...&lt;br /&gt;&lt;br /&gt;I don't see any problem deleted the db and restoring it...but you can restore on top of db which is in loading status..."&lt;br /&gt;&lt;br /&gt;So, therefore, I did a RESTORE, which I can now do after restarting the SQL and Agent services, WITH RECOVERY successfully!  If you can not restore which I had previously tried to do getting an error stating it was still in progress of a restore, restart the services first then re-restore with recovery!&lt;br /&gt; &lt;br /&gt;Good Luck!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-588487675212751421?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/588487675212751421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=588487675212751421' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/588487675212751421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/588487675212751421'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2009/01/when-database-is-stuck-in-restore-mode.html' title='When a database is stuck in restore mode'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-5772390065217237085</id><published>2008-11-14T08:40:00.001-08:00</published><updated>2008-11-14T08:40:35.403-08:00</updated><title type='text'>Freebooting</title><content type='html'>remember a show on HBO a couple of decades ago called Not Necessarily The News? They had a segment called sniglets which has gotten popular in various media and emails. Its where you create alternative definitions for words or create/combine words to make new definitions. I heard this term being used at work in this manner. I got a giggle out of it. hope you do to!&lt;br /&gt;&lt;br /&gt;Freebooting: The act of randomly rebooting multiple servers in the hope that your problem will go away.&lt;br /&gt;&lt;br /&gt;Freebooter: One who frequently commits this act in order to save their job…&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-5772390065217237085?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/5772390065217237085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=5772390065217237085' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5772390065217237085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5772390065217237085'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/11/freebooting.html' title='Freebooting'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-8452274719665098604</id><published>2008-11-13T12:36:00.000-08:00</published><updated>2008-11-13T12:42:28.919-08:00</updated><title type='text'>Windows Integrated Security in Reporting Services 2005</title><content type='html'>This issue has been tying me in knots.  I am moving away from SQL authentication as CAC is the preferred method in the federal govt for accessing computers and servers.  I also don't want to use no credentials.  thats just nonsense.  Unfortunately, I'm going to require users to use their network login barring my being directed to use a SQL account, not use credentialing which I'm loathe to do or Kerberos v5 is used.  Therefore, users will have to enter their credentials until a better way is found.  wish there was a workaround!&lt;br /&gt;&lt;br /&gt;Windows Integrated Security&lt;br /&gt;When you use the Windows Integrated Security option, the report server passes the security token of the user accessing the report to the server hosting the external data source. In this case, the user is not prompted to type a user name or password.&lt;br /&gt;&lt;br /&gt;This approach is recommended if Kerberos is enabled. &lt;em&gt;If Kerberos is not enabled, you should only use this approach if all the servers that you want to access are located on the same computer. &lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-8452274719665098604?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/8452274719665098604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=8452274719665098604' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/8452274719665098604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/8452274719665098604'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/11/windows-integrated-security-in.html' title='Windows Integrated Security in Reporting Services 2005'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-8595700981692088124</id><published>2008-11-12T10:05:00.000-08:00</published><updated>2008-11-12T10:06:53.972-08:00</updated><title type='text'></title><content type='html'>Error When Deploying a Large RS Report Model &lt;br /&gt;by David Leibowitz | May 30, 2008 &lt;br /&gt;&lt;br /&gt;You may recieve the error during the deployment of a Reporting Services model:&lt;br /&gt;There was an exception running the extensions specified in the config file.&lt;br /&gt;Maximum request length exceeded.&lt;br /&gt;To correct, you need to increase the file size limit currently in place in the web.config on the RS Server. &lt;br /&gt;Find the web.config file located in the directory:&lt;br /&gt;[SQL Server Directory]/[MSSQL RS Instance]/Reporting Services/ReportServer&lt;br /&gt;Locate the node &lt;httpRuntime&gt;  and add the attribute maxRequestLength and a number, or simply modify the value until you increase the limit such that you can deploy.&lt;br /&gt;Mine looked like this when I was done:&lt;br /&gt;&lt;httpRuntime executionTimeout = "9000" maxRequestLength = "102400" /&gt;&lt;br /&gt;Save the file and redeploy. You can switch it back if you like when you are done deploying.&lt;br /&gt;&lt;br /&gt;Full attribute listing for httpRuntime here:&lt;br /&gt;http://msdn.microsoft.com/en-us/library/e1f13641(VS.80).aspx&lt;br /&gt;http://jetlounge.net/blogs/teched/archive/2008/05/30/error-when-deploying-a-large-rs-report-model.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-8595700981692088124?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/8595700981692088124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=8595700981692088124' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/8595700981692088124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/8595700981692088124'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/11/error-when-deploying-large-rs-report.html' title=''/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-6818704490189817617</id><published>2008-09-30T06:17:00.000-07:00</published><updated>2008-09-30T06:21:34.148-07:00</updated><title type='text'></title><content type='html'>Here's good link for grasping the resl source of the "login failed" error message.  I've supplied a link to it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.msdn.com/sql_protocols/archive/2006/02/21/536201.aspx"&gt;http://blogs.msdn.com/sql_protocols/archive/2006/02/21/536201.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Understanding "login failed" (Error 18456) error messages in SQL Server 2005 &lt;br /&gt;&lt;br /&gt;In continuing with the theme of understanding error messages I'll discuss the "login failed" messages that are surfaced by the client and written to the server's error log (if the auditlevel is set to log failures on login which is the default) in the event of an error during the login process.&lt;br /&gt;&lt;br /&gt;If the server encounters an error that prevents a login from succeeding, the client will display the following error mesage.&lt;br /&gt;&lt;br /&gt;Msg 18456, Level 14, State 1, Server &lt;server name&gt;, Line 1&lt;br /&gt;Login failed for user '&lt;user name&gt;'&lt;br /&gt;&lt;br /&gt;Note that the message is kept fairly nondescript to prevent information disclosure to unauthenticated clients.   In particular, the 'State' will always be shown to be '1' regardless of the nature of the problem.  To determine the true reason for the failure, the administrator can look in the server's error log where a corresponding entry will be written.  An example of an entry is:&lt;br /&gt;&lt;br /&gt;2006-02-27 00:02:00.34 Logon     Error: 18456, Severity: 14, State: 8.&lt;br /&gt;&lt;br /&gt;2006-02-27 00:02:00.34 Logon     Login failed for user '&lt;user name&gt;'. [CLIENT: &lt;ip address&gt;]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;nThe key to the message is the 'State' which the server will accurately set to reflect the source of the problem.  In the example above, State 8 indicates that the authentication failed because the user provided an incorrect password.  The common error states and their descriptions are provided in the following table:&lt;br /&gt; &lt;br /&gt;ERROR STATE&lt;br /&gt; ERROR DESCRIPTION&lt;br /&gt; &lt;br /&gt;2 and 5&lt;br /&gt; Invalid userid&lt;br /&gt; &lt;br /&gt;6&lt;br /&gt; Attempt to use a Windows login name with SQL Authentication&lt;br /&gt; &lt;br /&gt;7&lt;br /&gt; Login disabled and password mismatch&lt;br /&gt; &lt;br /&gt;8&lt;br /&gt; Password mismatch&lt;br /&gt; &lt;br /&gt;9&lt;br /&gt; Invalid password&lt;br /&gt; &lt;br /&gt;11 and 12&lt;br /&gt; Valid login but server access failure&lt;br /&gt; &lt;br /&gt;13&lt;br /&gt; SQL Server service paused&lt;br /&gt; &lt;br /&gt;18&lt;br /&gt; Change password required&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Other error states indicate an internal error and may require assistance from CSS.&lt;br /&gt; &lt;br /&gt;Il-Sung Lee&lt;br /&gt;Program Manager, SQL Server Protocols&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-6818704490189817617?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/6818704490189817617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=6818704490189817617' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/6818704490189817617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/6818704490189817617'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/09/heres-good-link-for-grasping-resl.html' title=''/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-4497150572908425498</id><published>2008-07-28T12:32:00.000-07:00</published><updated>2008-07-28T12:40:27.730-07:00</updated><title type='text'>Connecting a Report Server from Management Studio</title><content type='html'>To connect to a Report Server from Management Studio, there are a few things to consider.&lt;br /&gt;&lt;br /&gt;First, I can not connect to an RS 2000 instance.  I'll keep trying.  Second, make sure the machine is functional.  That really helps too. :-(  IT can be a real time killer LOL  Last, I have read many a sites/posts all of which say use the syntax for a servername as:&lt;br /&gt;&lt;br /&gt;     http://&lt;servername&gt;/reportserver&lt;br /&gt;&lt;br /&gt;What I found that truly works is http://reports_web_site/reportserver &lt;br /&gt;&lt;br /&gt;   * reports web site example --&gt; rptsvrname.yoursite.com  i.e. the url you give your report server in IIS.&lt;br /&gt;&lt;br /&gt;   * reportserver  --&gt; the actual text "reportserver "&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-4497150572908425498?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/4497150572908425498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=4497150572908425498' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/4497150572908425498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/4497150572908425498'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/07/connecting-report-server-from.html' title='Connecting a Report Server from Management Studio'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-6492889095865478659</id><published>2008-07-23T11:26:00.000-07:00</published><updated>2008-07-23T11:37:34.430-07:00</updated><title type='text'>rsConfig utility for resetting the rsReportServer.config encrypted settings</title><content type='html'>Here's a good error that will require use of rsconfig:&lt;br /&gt;&lt;br /&gt;The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsReportServerDatabaseUnavailable).&lt;br /&gt;&lt;br /&gt;This error occurs when the report server cannot connect to the SQL Server relational database that provides internal storage to the server. The connection to the report server database is managed through the Reporting Services Configuration tool. You can run the tool, go to the Database Setup page, and correct the connection information. Using the tool to update connection information is a best practice; the tool ensures that dependent settings are updated and that services are restarted. For more information, see Configuring a Report Server Database Connection &lt;http://msdn.microsoft.com/en-us/library/ms159133.aspx&gt; and Configuring Service Accounts and Passwords in Reporting Services &lt;a href="http://msdn.microsoft.com/en-us/library/ms160340.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms160340.aspx&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This error can also occur if the Database Engine instance that hosts the report server database is not configured for remote connections. Remote connection is enabled by default in some releases of SQL Server 2005. To verify whether it is enabled on the SQL Server Database Engine instance you are using, run the SQL Server Surface Area Configuration tool. You must enable remote connections for both TCP/IP and named pipes. A report server uses both protocols. For instructions on how to enable remote connections, see the section "How to Configure Remote Connections to the Report Server Database" in Configuring a Report Server for Remote Administration &lt;a href="http://msdn.microsoft.com/en-us/library/ms365170.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms365170.aspx&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If the error includes the following additional text, the password expired on the account used to run the Database Engine instance: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not permit remote connections. (provider: SQL Server Network Interfaces, error: 26 - Error Locating Server/Instance Specified)." To resolve this error, reset the password. For more information, see Changing Passwords and User Accounts &lt;http://msdn.microsoft.com/en-us/library/ms143746.aspx&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Product: SQL Server Reporting Services&lt;br /&gt;ID: rsReportServerDatabaseUnavailable&lt;br /&gt;Source: Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings.resources.Strings&lt;br /&gt;Version: 8.00&lt;br /&gt;Message: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing.&lt;br /&gt;Explanation&lt;br /&gt;This error occurs when the report server is unable to connect to the report server database. The rsreportserver.config file stores encrypted values for the database name and credentials that it uses to connect to the report server database. If the database name or credentials have changed, the report server can no longer connect to the database.&lt;br /&gt;&lt;br /&gt;User Action&lt;br /&gt;You can use the rsconfig utility to update or repair the configuration settings that the report server uses to connect to the report server database. You can use the -d option of the utility to set the name of the report server database and you can use the -u and -p options to set the username and password. For information about how to use the rsconfig utility, see Books Online.&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Currently there are no Microsoft Knowledge Base articles available for this specific error or event message. For information about other support options you can use to find answers online, see &lt;a href="http://support.microsoft.com/default.aspx"&gt;http://support.microsoft.com/default.aspx&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here's how to use rsconfig and where to find it:&lt;br /&gt;&lt;br /&gt;&lt;install&gt;\Program Files\Microsoft SQL Server\90\Tools\Binn\rsconfig.exe&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms162837.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms162837.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;rsconfig –c for the encrypted connection settings  –e for the encrypted unattended account settings -m computername that RS resides on –i RS instance name –s server name that the database resides on –d RS database name –a authentication method which is either "windows" or "sql" -u username -p password (-t trace)&lt;br /&gt;&lt;br /&gt;rsconfig -?  will show you the syntax&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-6492889095865478659?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/6492889095865478659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=6492889095865478659' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/6492889095865478659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/6492889095865478659'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/07/rsconfig-utility-for-resetting.html' title='rsConfig utility for resetting the rsReportServer.config encrypted settings'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-5278699986702075141</id><published>2008-07-23T11:15:00.000-07:00</published><updated>2008-07-23T11:24:55.217-07:00</updated><title type='text'>Report Server errors</title><content type='html'>Reports Server errors&lt;br /&gt;&lt;br /&gt;things to remember:&lt;br /&gt;&lt;br /&gt;RS service account --&gt; DOMAIN ACCOUNT!!!&lt;br /&gt;Login account encrypted in the rsReportServer.config --&gt; also a domain account (go ahead and use the same one!)  use the rsConfig.exe utility.  see the next post&lt;br /&gt;&lt;br /&gt;The problem is the accounts.  notice the login failure.  Login failed for user 'ReportServer'&lt;br /&gt;&lt;br /&gt;w3wp!library!ac4!07/23/2008-10:15:10:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing., ; Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---&gt; System.Data.SqlClient.SqlException: Login failed for user 'ReportServer'.   at System.Data.SqlClient.ConnectionPool.CreateConnection()   at System.Data.SqlClient.ConnectionPool.UserCreateRequest()   at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&amp;amp; isInTransaction)   at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean&amp;amp; isInTransaction)   at System.Data.SqlClient.SqlConnection.Open()   at Microsoft.ReportingServices.Library.ConnectionManager.OpenConnection()   --- End of inner exception stack trace ---w3wp!library!428!07/23/2008-10:15:15:: i INFO: Call to GetSystemPermissionsw3wp!library!428!07/23/2008-10:15:15:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing., ; Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---&gt; System.Data.SqlClient.SqlException: Login failed for user 'ReportServer'.   at System.Data.SqlClient.ConnectionPool.CreateConnection()   at System.Data.SqlClient.ConnectionPool.UserCreateRequest()   at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&amp;amp; isInTransaction)   at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean&amp;amp; isInTransaction)   at System.Data.SqlClient.SqlConnection.Open()   at Microsoft.ReportingServices.Library.ConnectionManager.OpenConnection()   --- End of inner exception stack trace ---&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cool error below - notice &lt;reportservertempdb&gt;.dbo.ExecutionCache.  Check to see if the RSTempDB is missing.  Most likely it had be removed during an install of an RS server.  You'll need to re-attach the mdf/ldf files of the DB that got dropped.  Be sure you have admin access to run the attach no matter which method you use.&lt;br /&gt;&lt;br /&gt;w3wp!library!e1c!07/23/2008-13:47:28:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., ; Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---&gt; System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.ExecutionCache'.   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)   at System.Data.SqlClient.SqlCommand.ExecuteReader()   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteReader()   at Microsoft.ReportingServices.Library.DBInterface.GetReportForExecution(String objectName, String effectiveParams, Boolean&amp;amp; foundInCache, ItemType&amp;amp; type, ReportSnapshot&amp;amp; intermediateSnapshot, ReportSnapshot&amp;amp; snapshotData, Guid&amp;amp; link, String&amp;amp; linkPath, String&amp;amp; properties, String&amp;amp; description, Byte[]&amp;amp; secDesc, Guid&amp;amp; reportID, Int32&amp;amp; execOptions, DateTime&amp;amp; executionDateTime, Boolean&amp;amp; hasData, Boolean&amp;amp; cachingRequested, DateTime&amp;amp; expirationDateTime)   at Microsoft.ReportingServices.Library.RSService.GetReportAndDataSourcesForExecution(CatalogItemContext itemContext, String effectiveParametersXml, Boolean&amp;amp; hasData, DataSourceInfoCollection&amp;amp; dataSources, String&amp;amp; reportProperties, ReportSnapshot&amp;amp; intermediateSnapshot, Guid&amp;amp; reportId, ReportSnapshot&amp;amp; snapshotData, String&amp;amp; description, Boolean&amp;amp; cachingRequested, DateTime&amp;amp; executionDateTime, DateTime&amp;amp; expirationDateTime, Int32&amp;amp; execOptions, Boolean&amp;amp; foundInCache)   at Microsoft.ReportingServices.Library.RSService.RenderAsLiveOrSnapshot(CatalogItemContext reportContext, ClientRequest session, Warning[]&amp;amp; warnings, ParameterInfoCollection&amp;amp; effectiveParameters)   at Microsoft.ReportingServices.Library.RSService.RenderFirst(CatalogItemContext reportContext, ClientRequest session, Warning[]&amp;amp; warnings, ParameterInfoCollection&amp;amp; effectiveParameters, String[]&amp;amp; secondaryStreamNames)   --- End of inner exception stack trace ---w3wp!library!e1c!07/23/2008-13:47:28:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.w3wp!webserver!e1c!07/23/2008-13:47:31:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An internal error occurred on the report server. See the error log for more details. ---&gt; Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---&gt; System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.ExecutionCache'.w3wp!dbcleanup!858!7/23/2008-13:57:06:: e ERROR: Sql Error in CleanExpiredSessions: System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.SessionData'.   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteNonQuery()   at Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanExpiredSessions()w3wp!dbcleanup!858!7/23/2008-13:57:06:: e ERROR: Sql Error in CleanExpiredCache: System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.SnapshotData'.   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteNonQuery()   at Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanExpiredCache()w3wp!dbcleanup!858!7/23/2008-13:57:06:: e ERROR: Sql Error in CleanOrphanedSnapshots: System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.SnapshotData'.   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)   at System.Data.SqlClient.SqlCommand.ExecuteReader()   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteReader()   at Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanOrphanedSnapshots(Int32&amp;amp; chunksCleaned)w3wp!library!858!7/23/2008-13:57:06:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobsw3wp!dbcleanup!858!7/23/2008-14:07:06:: e ERROR: Sql Error in CleanExpiredSessions: System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.SessionData'.   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteNonQuery()   at Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanExpiredSessions()w3wp!dbcleanup!858!7/23/2008-14:07:06:: e ERROR: Sql Error in CleanExpiredCache: System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.SnapshotData'.   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteNonQuery()   at Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanExpiredCache()w3wp!dbcleanup!858!7/23/2008-14:07:06:: e ERROR: Sql Error in CleanOrphanedSnapshots: System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.SnapshotData'.   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)   at System.Data.SqlClient.SqlCommand.ExecuteReader()   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteReader()   at Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanOrphanedSnapshots(Int32&amp;amp; chunksCleaned)w3wp!library!858!7/23/2008-14:07:06:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobsw3wp!webserver!b70!7/23/2008-14:08:23:: i INFO: Reporting Web Server stopped&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-5278699986702075141?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/5278699986702075141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=5278699986702075141' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5278699986702075141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5278699986702075141'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/07/report-server-errors.html' title='Report Server errors'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-2049761708179280446</id><published>2008-07-01T15:50:00.001-07:00</published><updated>2008-07-01T15:53:49.680-07:00</updated><title type='text'></title><content type='html'>cant use USE &lt;database&gt;&lt;br /&gt;&lt;br /&gt;this should work - am trying it now.  it doesn't fail.&lt;br /&gt;&lt;br /&gt;--**************************** --REPLACES USE @NAME;--****************************DECLARE @cmd nvarchar(50)SELECT @cmd = 'USE '+ @NAME+';'EXEC sp_executesql @cmd;--GO;--****************************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;more coming!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-2049761708179280446?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/2049761708179280446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=2049761708179280446' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/2049761708179280446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/2049761708179280446'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/07/cant-use-use-this-should-work-am-trying.html' title=''/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-7095228081577779883</id><published>2008-05-29T12:49:00.000-07:00</published><updated>2008-05-29T12:53:43.062-07:00</updated><title type='text'>SQL Server Forensic Analysis</title><content type='html'>SQL Server Forensic Analysis&lt;br /&gt;By: &lt;a href="http://www.informit.com/authors/author_bio.aspx?ISBN=9780321544360"&gt;Kevvie Fowler&lt;/a&gt;&lt;br /&gt;Last Updated on Safari: 2008/04/05&lt;br /&gt;Publisher: Addison Wesley Professional&lt;br /&gt;Pub Date: December 12, 2008 (estimated)&lt;br /&gt;ISBN:&lt;br /&gt;Pages: 179&lt;br /&gt;&lt;a title="Start Reading" href="http://safari.oreilly.com/9780321533203/pref01"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a title="Purchase Options" href="http://safari.oreilly.com/9780321533203#purchaseroughcuts"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a title="Rough Cuts Feedback" href="http://safari.oreilly.com/9780321533203#feedbackcommunity#feedbackcommunity"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a title="What is Rough Cuts?" href="http://safari.oreilly.com/9780321533203##"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Overview&lt;br /&gt;&lt;br /&gt;&lt;a name="Nearly_all"&gt;&lt;/a&gt;Nearly all forensic investigations reach a turning point when investigators determine that a database has been breached. There may be no third-party logging system in place, but security&lt;a name="wondering_if"&gt;&lt;/a&gt; personnel are still left wondering if credit card data was stolen or if their system was modified.&lt;a name="the_more"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The situation is made all the more alarming by the fact that large database breaches are increasing in frequency and that, if investigators are unable to assess and qualify the scope of an intrusion, they are forced to report it as a possible compromise.&lt;br /&gt;&lt;br /&gt;These disclosures are painful for companies, their customers, and their shareholders. They are even more painful when, in fact, no sensitive data was ever compromised.&lt;a name="way_to"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The best way to prevent such breaches and inaccurate reporting is to perform forensic analysis on the SQL server&lt;a name="of_any"&gt;&lt;/a&gt; and be certain of extent of any attack or breach.&lt;br /&gt;&lt;br /&gt;In SQL Server Forensic Analysis&lt;a name="presents_the"&gt;&lt;/a&gt;, author Kevvie Fowler presents the first in-depth look into how SQL Server&lt;a name="the_database"&gt;&lt;/a&gt; forensics can be used to identify and extract the database evidence needed to confirm, assess, and investigate a digital intrusion.&lt;a name="of"&gt;&lt;/a&gt;The book begins by giving the reader an overview of SQL server forensics and key SQL server&lt;a name="concise_and"&gt;&lt;/a&gt; database components, then proceeds to a concise and clear look at database forensic techniques that can be used to gather the evidence hidden within the published and unpublished areas of a SQL server.&lt;a name="Readers_will"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Readers will learn how to prioritize, acquire, and analyze database evidence using forensically sound practices and free industry tools. The final chapter will include a case study that demonstrates all the techniques from the book applied in a walk-through of a real-world investigation.&lt;a name="for_a"&gt;&lt;/a&gt;This book is appropriate for a wide range of professionals, including digital forensic practitioners, information security analysts, information security&lt;a name="will_walk"&gt;&lt;/a&gt; managers, database administrators, auditors, and law enforcement professionals. Readers will walk away from the book able to do the following:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Use SQL Server&lt;a name="verify_and"&gt;&lt;/a&gt; forensics to verify and assess a digital intrusion&lt;/li&gt;&lt;li&gt;Identify and extract database information from published and unpolished areas of SQL Server&lt;/li&gt;&lt;li&gt;Build a SQL sever forensic toolkit&lt;/li&gt;&lt;li&gt;Detect and Remove SQL Server rootkits&lt;/li&gt;&lt;li&gt;Recover and reconstruct deleted database material&lt;/li&gt;&lt;li&gt;SQL Server Forensic Analysis&lt;a name="or_investigating"&gt;&lt;/a&gt; is a must-have book for anyone charged with preventing or investigating modern digital intrusions.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="purchaseroughcuts"&gt;&lt;/a&gt;&lt;a title="What is Rough Cuts?" href="http://safari.oreilly.com/9780321533203##"&gt;&lt;/a&gt;Purchase "SQL Server Forensic Analysis" - Retail Price: USD $54.99&lt;br /&gt;Top of Form&lt;br /&gt;Online, PDF and Print Book Bundle&lt;br /&gt;USD $74.23&lt;br /&gt;Online and PDF Access&lt;br /&gt;USD $38.49&lt;br /&gt;Print Book Pre-Order USD $54.99&lt;br /&gt;USD $38.49&lt;br /&gt;Bottom of Form&lt;br /&gt;&lt;br /&gt; &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-7095228081577779883?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/7095228081577779883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=7095228081577779883' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/7095228081577779883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/7095228081577779883'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/sql-server-forensic-analysis.html' title='SQL Server Forensic Analysis'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-4956457363961456418</id><published>2008-05-09T12:23:00.000-07:00</published><updated>2008-05-09T12:27:19.756-07:00</updated><title type='text'>Linked tables to SQL Server</title><content type='html'>I have found on more than one occasion since migrating to SQL Server 2005 that if you have an ACCESS 2000 front end there can be an incompatibility of datatypes.  Modify all ntext or text columns in SQL to nvarchar(MAX) as those types will no longer be supported.  Also, modify bit columns to something like tinyint.  Apparently, Access can't handle bit fields.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-4956457363961456418?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/4956457363961456418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=4956457363961456418' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/4956457363961456418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/4956457363961456418'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/linked-tables-to-sql-server.html' title='Linked tables to SQL Server'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-6053180035014637372</id><published>2008-05-07T09:28:00.000-07:00</published><updated>2008-05-07T09:31:58.914-07:00</updated><title type='text'>ORDER BY CLAUSE IN A VIEW</title><content type='html'>&lt;span style="font-family:verdana;"&gt;I FOUND THIS ONE INTERESTING.  IN CREATING A VIEW IN 2005, YOU CAN USE AN ORDER BY CLAUSE WITHOUT A TOP OR FOR XML.  I DON'T REMEMBER THIS BEING THE CASE IN 2000 OR BEFORE.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color:#ff0000;"&gt;Msg 1033, Level 15, State 1, Procedure vwTESTING_ORDER_BY, Line 30&lt;br /&gt;The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-6053180035014637372?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/6053180035014637372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=6053180035014637372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/6053180035014637372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/6053180035014637372'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/order-by-clause-in-view.html' title='ORDER BY CLAUSE IN A VIEW'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-5347563612130144473</id><published>2008-05-06T10:32:00.001-07:00</published><updated>2008-05-06T10:32:42.367-07:00</updated><title type='text'>SURVIVAL!!!</title><content type='html'>For the 1st time in nearly 25 years, I've survived a reorg!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-5347563612130144473?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/5347563612130144473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=5347563612130144473' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5347563612130144473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/5347563612130144473'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/survival.html' title='SURVIVAL!!!'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-8072689480445533544</id><published>2008-05-06T08:24:00.000-07:00</published><updated>2008-05-06T08:26:21.182-07:00</updated><title type='text'>Global Variables in the new SSIS packages</title><content type='html'>GOOD QUESTION FROM A COLLEGUE:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Got a question about SSIS. There doesn't seem to be a good equivalent to the Global Variables in old DTS in the new SSIS packages. Are you using some solution that you recommend? I know there is Win environment variables and xml config files, but these are not very friendly to move.&lt;br /&gt;&lt;br /&gt;MY RESPONSE:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ooooooo interesting question! I'll look but I'm willing to bet with it&lt;br /&gt;being a .NET solution/project, you can probably put them in a bas file or&lt;br /&gt;class file. Also, check the Package properties. Click the ... Button for&lt;br /&gt;expressions. See if that helps. Being that it's a VS project and not a&lt;br /&gt;MSSQL project, I'd assume listing variables like you would in VB.NET. I&lt;br /&gt;recently starting thinking of SSIS in terms of VS instead of SQL. It really&lt;br /&gt;opens the door to a lot of things. I'd written replication apps in VB6 with&lt;br /&gt;the DMO. I know you can do the same in DTS. So that's where I'd start&lt;br /&gt;looking. Its still encapsulated but pushed out of the IDE. I just added a&lt;br /&gt;VB script to a project. I guess it could be called from a task I don't&lt;br /&gt;have regular VS.NET on this server or my machine, but I know I should be able to add a bas or cls to a project. I'll look further and let you know&lt;br /&gt;what I find!&lt;br /&gt;&lt;br /&gt;GOTTA LOOK INTO THIS ONE FURTHER!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-8072689480445533544?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/8072689480445533544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=8072689480445533544' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/8072689480445533544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/8072689480445533544'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/good-question-from-collegue-got.html' title='Global Variables in the new SSIS packages'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-9122757201925896494</id><published>2008-05-06T08:14:00.001-07:00</published><updated>2008-05-06T08:19:13.761-07:00</updated><title type='text'>SQL SERVER COPY OBJECTS TASK AND 2000 COMPATIBILITY</title><content type='html'>HERE'S A GOOD ONE!&lt;br /&gt;&lt;br /&gt;IN TRYING TO USE SSIS TO COPY DATABASE OBJECTS FROM ONE SERVER TO ANOTHER, IT FAILED. IT FAILED BECAUSE THE DATABASES HAD 2000 COMPATIBILITY!!! I HAD TO CREATE A 2000 DTS PACKAGE, USE THE SQL SERVER COPY OBJECTS TASK TO PUSH SPs BETWEEN THE SERVERS! THIS ONE NEEDS TO BE LOOKED INTO. I GUESS MS ISN'T LOOKING BACK!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-9122757201925896494?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/9122757201925896494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=9122757201925896494' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/9122757201925896494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/9122757201925896494'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/heres-good-one-in-trying-to-use-ssis-to.html' title='SQL SERVER COPY OBJECTS TASK AND 2000 COMPATIBILITY'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-4556015240334626884</id><published>2008-05-01T11:00:00.000-07:00</published><updated>2008-05-06T08:19:35.066-07:00</updated><title type='text'>LogParser 2.2</title><content type='html'>just completed parsing an IIS log into SQL Server with a tool I found yesterday. LogParser 2.2, which can be downloaded from MS downloads. check with the MS IIS site &lt;a href="http://www.iis.net/default.aspx?tabid=1"&gt;http://www.iis.net/default.aspx?tabid=1&lt;/a&gt; you can parse a wide variety of log files from system logs like the event log to SQL Server logs to IIS logs. You have to do a little work from the command line, but I like the tool. I generally prefer a nice user friendly gui but this gets the job done when you understand the params.&lt;br /&gt;&lt;br /&gt;also, about a month or so ago i downloaded an XML editor i remember from several years ago that several developers i knew really liked. its much improved and i highly recommend it - XML Notepad. Its a VS 2007 tool. give it a whirl. It made understanding the XML data in my GPS much easier. web configs are much clearer especially changes are made in a hurry. it can also "beautify" the xml code making life a little easier!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-4556015240334626884?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/4556015240334626884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=4556015240334626884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/4556015240334626884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/4556015240334626884'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/just-completed-parsing-iis-log-into-sql.html' title='LogParser 2.2'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-3198175903639113732</id><published>2008-05-01T10:38:00.000-07:00</published><updated>2008-05-06T08:20:27.721-07:00</updated><title type='text'>determine the compatibility level prior to migration</title><content type='html'>Ahhhh here's one from the past couple of weeks!&lt;br /&gt;&lt;br /&gt;When moving a database to 2005 from 2000. select properties of the database, go to options and see what the compatibility level is. DSNs and apps can be affected by this. For example, I was working on a database issue with linked tables in Access. Users lost connectivity. i.e. they couldn't edit. The database compatibility level was set to the default 2005 when created yet ODBC connections and ADO.NET connection strings were using the SQL Server 2000 driver not the SQL Native Client driver. In reducing compatibility of the database to 2000 level, users were able to edit data with their current 2000 settings. issue resolved without user interaction. As I had used copies of the 2005 database, I had to delete non-2000 versions and rename. The users simply had to select and delete their linked tables and check the "Always prompt for a new location" checkbox. Basically, you're going to refresh your DSN connection and table linkage. Also, developers of a database that migrated a 2000 database after our team did, kept the default compatibility level yet, the team here set it to 2000. Connectivity issues in code will generate lost profit for the developers team due to code rewrite, process changes, etc.&lt;br /&gt;&lt;br /&gt;The moral of the story is to determine the compatibility level prior to migration to 2005 AND communicate this to all stakeholderes!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-3198175903639113732?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/3198175903639113732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=3198175903639113732' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/3198175903639113732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/3198175903639113732'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/ahhhh-heres-one-from-past-couple-of.html' title='determine the compatibility level prior to migration'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-9202249882805465416</id><published>2008-05-01T09:54:00.000-07:00</published><updated>2008-05-01T09:57:52.881-07:00</updated><title type='text'>SSIS dropping tasks from 2000 DTS packages</title><content type='html'>I found a new issue with SQL Server Integration Services yesterday!&lt;br /&gt;&lt;br /&gt;It seems that if you have tasks from a 2000 DTS package with the same name, that SSIS will drop one. This is not the first issue I've found when migrating 2000 DTSs to 2005. I really like the tool but I've been finding gotchas along the way.&lt;br /&gt;&lt;br /&gt;Anyone else run into this? any thoughts?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-9202249882805465416?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/9202249882805465416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=9202249882805465416' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/9202249882805465416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/9202249882805465416'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/i-found-new-issue-with-sql-server.html' title='SSIS dropping tasks from 2000 DTS packages'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6840765188851879924.post-72699510569763388</id><published>2008-05-01T09:41:00.001-07:00</published><updated>2008-05-01T09:43:50.958-07:00</updated><title type='text'>Welcome to Critical Status - Database-Oriented Issues Plus</title><content type='html'>Welcome to Critical Status - Database-Oriented Issues Plus!!!&lt;br /&gt;&lt;br /&gt;I hope that the ideas and issues I find in the mindfield we call IT is of help to you all.  Please share your thoughts with me as we can never stop learning!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6840765188851879924-72699510569763388?l=criticalstatus.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://criticalstatus.blogspot.com/feeds/72699510569763388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6840765188851879924&amp;postID=72699510569763388' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/72699510569763388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6840765188851879924/posts/default/72699510569763388'/><link rel='alternate' type='text/html' href='http://criticalstatus.blogspot.com/2008/05/welcome-to-critical-status-database.html' title='Welcome to Critical Status - Database-Oriented Issues Plus'/><author><name>CriticalStatus</name><uri>http://www.blogger.com/profile/15514076736232906519</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
