Quantcast
Channel: Inspari blog » T-SQL
Browsing all 10 articles
Browse latest View live

New string conversion functions

SQL Server 2012 contains two new string conversion functions. PARSE and TRY_PARSE. These two functions make life a lot easier when you want to convert a string to another data type. The different...

View Article



Image may be NSFW.
Clik here to view.

dbcc checkdb

Almost every one of my customers is running backup of their databases (you would be surprised if you knew how many databases never been backed up.. but that is another story). Unfortunately a lot of...

View Article

Image may be NSFW.
Clik here to view.

Avoid schema changes corrupting your views

Maybe you are using views as a layer between your tables and your users. If you have a lot of views you properly know the case where a table is change and now your view is not working anymore. Lets see...

View Article

Image may be NSFW.
Clik here to view.

Updateable views

By default view are updateable. It means you can write a TSQL update statement against a view just like you can update a table. I both cases you off course need update permissions. This give you an...

View Article

Output row values effected by an update

Have you ever thought about logging the before and after value for an update or delete? It’s actually pretty simple getting these information as a return on an update and delete. Lets make a quick...

View Article


Image may be NSFW.
Clik here to view.

Using table variables in a SSIS data source is not returning any records

Every now and then standard queries just aren’t sufficient as data sources and therefore it might be neccesary to add an intermediate step. For instance by using a table variable. But using a table...

View Article

Image may be NSFW.
Clik here to view.

Filegroup confusion

Where did I put my Sales table? Filegroups? What can I say! Sometimes I love them and sometimes I just hate them. In theory this should be quite simple and give you benefits – but in my years as a...

View Article

Image may be NSFW.
Clik here to view.

Backup On-Premises SQL Server Databases to Azure Storage

With the release of SQL Server 2012 SP1 CU2, an enhancement to the BACKUP command has been added. Now the BACKUP command support “TO URL” when you specify a backup device. This gives you the option to...

View Article


Image may be NSFW.
Clik here to view.

SQL Server trace flags

Normally I’m not a big fan of using trace flags, my advice is only to use these when it is absolutely necessary otherwise don’t. Here is a list of the documented trace flags that you can use with SQL...

View Article


Image may be NSFW.
Clik here to view.

Enrich your Data Warehouse dimensions with help from SQL Server 2012 Master...

As a Data Warehouse Consultant, I´m often asked the following by customers: “Is it possible to enrich our dimension data with some manually maintained data” and the answer is always “yeah, of course”....

View Article
Browsing all 10 articles
Browse latest View live




Latest Images