SQLServerCentral - www.sqlservercentral.com

A community of more than 1,600,000 database professionals and growing

The Voice of the DBA

Your Frame of Reference

Is a database snapshot in SQL Server update-able? Most of us would say no, but I ran across a blog from the Microsoft SQLCAT team that proposes a method of issuing an insert, update, or delete statement in a database snapshot context. You can read the article for the details, and we could argue if this is really allowing a snapshot to be read/write, but that's not what I noticed as I read this.

This is a very creative way of approaching a problem. It changes the frame of reference slightly so that we rethink what the customer is trying to accomplish instead of what the technology limitations are. There might be more elegant, or more easily maintained solutions, but I found this to be creative, and perhaps useful, approach for solving a certain domain of problems.

I think quite often we get caught in viewing problems in terms of our frame of reference, or in terms of common technology implentations without thinking through the problem from the customer's frame of reference and working on an effective solution. That's our job most of the time: being effective as we solve problems. If we view all problems within the narrow range of our past solutions, we are relying on our experience, but that may prevent us from building applications that work better than our past work, go beyond what our customers want and get them excited about using the end result.

However it's a balance. I've seen hacked solutions that didn't perform well, or didn't scale and ended up causing problems for years. Looking at the problem from the customer's viewpoint needs to be tempered with the requirement of building a solution that performs well and fits within the framework of the environment. Ultimately I think the way to get better at building applications (and databases) is to increase your knowledge and experience. Learn more about other people's solutions, and engage with the rest of the community to sanity check your approach.  Learning new techniques that have worked for others, and experimenting in your environment to build better software over time.

Steve Jones from SQLServerCentral.com

Join the debate, and respond to today's editorial on the forums


The Voice of the DBA Podcasts

We publish three versions of the podcast each day for you to enjoy.

Everyday Jones

The podcast feeds are available at sqlservercentral.mevio.com with  comments definitely appreciated. Overall RSS Feeds:  

Today's podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. Support this great duo at www.everydayjones.com.

 You can also follow Steve Jones on Twitter and find links and database related items and announcements.

ADVERTISEMENT
SQL Compare

Compare and sync databases with SQL Compare

“SQL Compare is fast, extremely easy to use, full-featured and affordable. I wouldn't bother messing around with anything else.” Adam Machanic, SQL Server MVP. Download a 14-day free trial.

SQL Monitor

Get your priorities straight with SQL Monitor

“SQL Monitor gives me the ability to quickly see what my priorities should be, and delivers the information I need to make the right decisions,” Aaron Kolysko, DBA. Start monitoring with a free trial.

SQL Data Generator

How do you generate test data for your database?

SQL Data Generator quickly populates databases with intelligent and meaningful test data. "SQL Data Generator is simple and effective." Michael Gaertner, Quintech. Download a free trial now.

Featured Contents

 

A simple trick for “Block Comment” syntax in SSMS

Peter Zerk from SQLServerCentral.com

Make your comment blocks much more useful, in a surprising number of ways More »


 

Exploring In-memory OLTP Engine (Hekaton) in SQL Server 2014 CTP1

Additional Articles from SimpleTalk

The continuing drop in the price of memory has made fast in-memory OLTP increasingly viable. SQL Server 2014 allows you to migrate the most-used tables in an existing database to memory-optimized 'Hekaton' technology, but how you balance between disk tables and in-memory tables for optimum performance requires judgement and experiment. More »


 

New SQL Monitor Custom Metric: Untrusted Check Constraints

Press Release from Red-Gate

This metric returns the number of check constraints that have their is_not_trusted flag set to 1 in the sys.check_constraints table. Untrusted constraints force SQL Server to construct less efficient query plans, because it doesn’t know enough about the kind of data contained in the table. This can point to a data integrity issue which should be investigated. More »

Question of the Day

Today's Question (by Prasad N):

What is the output of this query?
declare @Vchar varchar(12)='prasad  '
      , @Char char(12)='prasad  ' 

select len(@Vchar)
     , len(@Char)
     , len(reverse(@Vchar))
     , len(reverse(@Char))

Think you know the answer? Click here, and find out if you are right.


We keep track of your score to give you bragging rights against your peers.
This question is worth 1 point in this category: T-SQL.

We'd love to give you credit for your own question and answer.
To submit a QOD, simply log in to the Contribution Center.

ADVERTISEMENT

SQL Server Transaction Log Management

When a SQL Server database is operating smoothly and performing well, there is no need to be particularly aware of the transaction log, beyond ensuring that every database has an appropriate backup regime and restore plan in place. When things go wrong, however, a DBA's reputation depends on a deeper understanding of the transaction log, both what it does, and how it works. An effective response to a crisis requires rapid decisions based on understanding its role in ensuring data integrity.

Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

True or false: With Sharepoint 2010 and above, you can use Filestream to store your Sharepoint documents?

Answer: True

Explanation: You can use Filestream, using the Remote Blob Storage (RBS) integration with Filestream, you can store your documents from Sharepoint 2010 in Filestream storage.

Ref: http://blogs.technet.com/b/wbaer/archive/2011/02/22/filestream-and-sharepoint-2010.aspx


» Discuss this question and answer on the forums

ADVERTISEMENT

SQL Server 2012 T-SQL Recipes: A Problem-Solution Approach

SQL Server 2012 T-SQL Recipes is an example-based guide to the Transact-SQL language that is at the core of SQL Server 2012. It provides ready-to-implement solutions to common programming and database administration tasks. Learn to create databases, insert and update data, generate reports, secure your data, and more. Tasks and their solutions are broken down into a problem/solution format that is quick and easy to read so that you can get the job done fast when the pressure is on. Get your copy from Amazon today.

Featured Script

Changing database mail account SMTP servers

Dennis Post from SQLServerCentral.com

Change @NewSMTP to a valid server name or IP address or leave NULL if you just want to generate the accounts as they are.

To skip the ping test, simply change @TestPing to 0.

If you have many accounts then it might be necessary to remove
@SQL = @SQL +
from the SELECT statement.
This will return each accounts TSQL in table format.

For SMTP authentication users, remember to change each users password before you run the generated script.
If there is only one account or only one password for multiple accounts then set the @PW variable.

More »

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.

SQL Server 2005 : Administering

DATABASE SLOW - Hie, can any one help me what are the steps to b take when database is running slow?

SQL Server 2005 : Development

Data in date column to decrement with one - Hi, problem. I have a table that is having composite primary key e.g startdate, counterparty, center, costname, currency, month, year start date...

SQL Server 2005 : SQL Server 2005 General Discussion

Cannot convert a char value to money. --Error Msg 235 - Hi, I want to write a query & need to convert char value to money. following Error is showing after Executing Query. [ Msg 235,...

SQL Server 2005 : SQL Server 2005 Performance Tuning

select query does not return any resultset - hi all, i have a table with 74 rows. when i run a select statement on it, it does not return...

SQL Server 2005 : SQL Server 2005 Integration Services

SQL job failed - I did an SFTP to command the job via winSCP. I manage to run execute it in SSIS. When I try to...

SQL Server 2005 : T-SQL (SS2K5)

How to make this block dynamic? - I'm just not sure how to do it. When I run: [code="sql"] select @liststr = coalesce(@liststr+',' ,'') + quotename(column_name) from [server].j3688802s.information_schema.columns where table_name = 'sample' print (@liststr) [/code] I get a...

SQL Server 2008 : SQL Server 2008 - General

Auditing - no machine name? Really? - I'm going through trialing out Auditing using this example: http://blogs.msdn.com/b/sql_shep/archive/2012/06/27/sql-2012-security-audit.aspx What I can't understand though is that it doesn't store the source...

Regular Mirroring Timeout Error Messages - We are running SQL Server 2008R2 RTM (10.50.1617) We get time out messages that read like "the mirroring connection for database...

syntax for using /SET for SSIS config file in SQL 2008? - I used to use /CONF to represent an XML config file running SSIS packages via DTExec with SQL 2005. With...

Simple select query with no where or join takes a long time - Do you guys have any idea why a simple select statement without any joins or where clause would take over...

Ranking Based of Advert Breaks - Hi People, This is a tough one for me. Let me start by explaining what i want to do then posting...

Please HELP !! :SQL SERVER with MySQL Linked Server. Error Executing Trigger - Hi sirs ! If somebody can help me i would appreciate a lot ! I have SQL server with MySQL Linked server...

Service pack 2 SQL Server 2008 R2 is released - http://support.microsoft.com/kb/2630458 *never mind, old news. rss acting up

Differential restore without full backup restore!! - HI I have 2 servers. I do a full backup of serverA and restore it to ServerB with NORECOVERY.Now I do...

How to load dynamically created excel into DB table (SQL Server 2012) using SSIS - Hi All, I need to load excel sheet data into database table in SQL Server (2012) using SSIS (2012). The columns...

Issue while creating indexed view after joining two non related tables - I am trying an create the indexed view after joining two non related tables. Please correct me if my approach...

Effect of Clustered Index on Non-Clustered Index - Not remotely a DBA so forgive me if this is a novice question, but will having a clustered index in...

SQL Server 2008 : T-SQL (SS2K8)

Different between two query - Hi Dear, What is different between two query? query 1: [code="sql"]SELECT dbo.Person.Code FROM dbo.Person LEFT OUTER JOIN dbo.CustomerSegment ON dbo.Person.CustomerSegment = dbo.CustomerSegment.Code INNER JOIN dbo.CustomerCreditD...

Sequential numeric - I have a need to update numeric values in a table column so that they are unique and sequencial, the...

SQL Server 2008 : SQL Server 2008 High Availability

Restore the primary database of a log shipping configuration - I support a company that is using Log Shipping setup by the previous DBA. The log shipping is setup to...

SQL Server 2008 : SQL Server 2008 Administration

SQL 2008 Express Edition Server Agent won't start - I can't get Server Agent to 'start' on my install of Express Edition. I did some research and it seems...

Login failure to SQL instance in 2012 - Hi All, I'm seeing login failures to our end users on our server which has recently migrated to Windows/SQL 2012. Strange...

Programming : General

C# - Passing parameters on launch - Hi, I am writing a windows form application that will pass parameters on lauch. The parameter is A then it will...

SQLServerCentral.com : Anything that is NOT about SQL!

.net csv Reader - This library can read CSV files, including handling columns that have line feeds in them. It is inexpensive too. [url=http://www.kellermansoftware.com/p-50-csv-reports.aspx]http://www.kellermansoftware.com/p-50-csv-reports.aspx [/url]

Are the posted questions getting worse? - Is it me, or are the posted questions getting worse these days? I just read a post by someone apparently in...

Reporting Services : Reporting Services

Customized script or code to grant or revoke access from report in Reporting Services 2012 - Hi All, I hope all of you agree that it's a painful task to provide or remove access to the reports...

Data Warehousing : Integration Services

Microsoft.ACE.OLEDB.12.0 provider not registered on local Machine - My source file was created in Excel 2007, so i had to install ACE drivers on server (I did it...

Automate Editng of SSIS packages in XML - Hi All, I am searching for some help on editing the SSIS packages as XML files, Here is the scenario, I...

SSIS error when configuring data flow task with .xls file - Quick environment details: 64 bit Server 2008; SQL Server 2012; Studio 2010 I have a package that connects to a .xlsx...

Data Warehousing : Analysis Services

cube accessing speed issue - This is a weird thing I am facing in my project. Just a brief below... We have an SSAS server...

To be removed from this list, please click here.
If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com.
This newsletter was sent to you because you signed up at SQLServerCentral.com.
Feel free to forward this to any colleagues that you think might be interested.
If you have received this email from a colleague, you can register to receive it here.
This transmission is ©2013 Red Gate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com