Analysis and Insights on #sqlserver
SQL Server is a relational database management system, or RDBMS, developed and marketed by Microsoft.
Articles tagged sqlserver:
SQL Server Reporting Services (SSRS)–How to open SSRS Project
Ever try to open an older SQL Server Reporting Services (SSRS) project and do not know what product it opens with? SSRS and how to add/manage reports always seems to be a problem. Well, Visual Studio 2017 has an extension that you can use to open the older rptproj files. Give it a go.
Read MoreCannot execute as the database principle
My database did not have had any owner before this issue. Execute this command in your database to set owner to sysadmin account
Read MoreSQL Server Profiler - Trace for your Application
I want to watch the queries made by my application during development efforts.
Read More
SQL Server 2008 Installation, not so quick
Before you rush to download SQL 2008 you may want to read the following KB article contained within this blog.
Read More
SQL Server Triggers To Mirror a Table
I had a need to mirror any changes to one Sql Server table to another Sql Server table of a different name. Read on.
Read MoreVarchar vs NVarchar
Let’s talk about this to better understand some differences and benefits of using each.
Read MoreSQL Execution (Enterprise Manager-QA) VS. .NET Execution
I have been chasing an issue for quite a while where the query would timeout when executed from an ASP.NET interface. If I ran that exact same query through Query Analyzer the results would be returned in less than 2 seconds. I have for a while been struggling with why it is different between those two interfaces. I thought about connection pooling issues, command time outs and connection timeouts and was focused on that for a while. Even after extending those values from the default the query would still time out. It was often I would see an exception similar to --------------------------- SQL Exception Information: ErrorId: -2 Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Line Number: 0 Procedure: --------------------------- To put this post in the proper context think about one of your application search stored procedures. The interface shows a dozen or more optional textboxes for user entry to narrow down the results. The stored procedure in this case often has many parameters that could be used with the actual query. This is the case for the query that I am discussing herein. When you execute a stored procedure for the first time the query processor constructs a query plan based on the the state of the statistics and the input parameters. So, the query plan is created upon first execution and is cached in case some other invocation of the same stored procedure comes along before the cache is cleared. So, when executing through the web interface SQL Server is using the same execution plan that was created by the prior user. This can look significantly different between users and what parameters they provide before they run the search. So, to have SQL Server generate a new query plan upon each execution the "WITH RECOMPILE" can be used. By adding this parameter SQL Server regardless of the parameters passed in it will create a new optimal plan.
Read MoreSQL Server Find Field Value in Database
SQL Script that can be run in a database to return all tables and columns where...
Read MoreSQL Server Find SQL Object Names within a Database
Find SQL Object Names within a database.
Read More


New SSDT Power Tools! Now for both Visual Studio 2010 and Visual Studio 2012
SQL Server Data Tools (SSDT) provides project templates and design surfaces for building SQL Server content types - relational databases, Analysis Services models, Reporting Services reports, and Integration Services packages.
Read More