The Wrecking Bawl

Destructuring query language, one keyword at a time.


News

 

I have a real-time reporting server with a database which is basically a copy of my production database, but it's populated using transactional replication and replication only copies the primary keys over, i.e. none of the secondary indexes are included. So what I do is every time I need to recreate replication--which is every deployment with schema changes--I script out DROPs and CREATEs for all the reporting indexes I've created and then run the script after replication has been recreated. The...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

If you're like me you've been using SSRS 2008 for a long time with TFS and have constantly had to delete the bin folder in order for builds to work. This has irritated me to no end. Well today is my lucky day! There is a hotfix that actually fixes the bug! Go here: http://support.microsoft.co
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

I recently discovered that creating indexes in one of my production databases was causing deadlocks. My problem was that I wasn't using ONLINE=ON when I was creating the index. Check out the BOL for more information
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

If you're like me you had at one time connected one of your Reporting Services instances to a report server database that was already in use by another instance. This allows the instance to show up in the Scale-out Deployment section of the Reporting Services Configuration Manager. My problem was that the server that got joined to the original server was no longer available as it had been repurposed, and when I clicked Remove Server to remove it from my scale-out it would fail because it couldn't...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

If you're wondering how to migrate your SharePoint databases to a new server, this Microsoft article is actually pretty useful, though still overly complex like most of their other articles. http://technet.microsoft.co... The one thing I would change is that they seem to recommend installing SQL Server Configuration Manager on web servers, when all that was needed in my case was to add an entry to the hosts file on the SharePoint web server that used the IP address of the...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

How is it that you still can't save workspaces in SQL Server Management Studio as of version 2008? It seems like such a simple thing to implement. Quite often I create a bunch of different queries during a short period that are specific to a task I'm working on and that won't be needed once the task is completed, and rather than having to save each one it would be nice if I could just save a workspace file that knows which queries were open
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

For anybody that bought the SQL Server 2008 Self-Paced Training book for 70-433, if you are running a full version of SQL Server 2008 rather than the express edition, you will have problems attaching the AdventureWorks2008 database (file activation error). The trick is to use a SQL command, like so: USE [master] GO CREATE DATABASE [AdventureWorks2008] ON ( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQ... ), ( FILENAME = N'C:\Program Files\Microsoft...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

I just discovered something rather surprising. If you return a tinyint from a stored procedure as part of a dataset, and bind that dataset to a dataview, and then do something like this: <asp:Label runat="server" id="statusLabel" Text='<%# GetStatusText( (int)DataBinder.Eval(Contai... "DataItem.status")) %>'> </asp:Label> You will get an error about an invalid cast. If the stored procedure returns an int instead of tinyint, it works just fine. How can ASP.Net 3.5 not be able to...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

About once a day I was getting the following error from an ASP.Net web page that uses ActiveRecord: Exception Details: System.Data.SqlClient.SqlEx... A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) I would subsequently get this error upon refreshing the page: Exception Details: System.InvalidOperationExce... ExecuteReader requires an open and available Connection....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

Apparently you have to watch out when you select Materialize in a referenced dimension in SSAS 2005. I just ran into a situation where data was getting duplicated for no good reason, and unchecking Materialize fixed it. http://www.biblogs.com/2006
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Full SQL Server Archive