Thursday, March 1, 2012

Database File Explorer v1.0.1.5 released


Database File Explorer, our revoluntioary database->file->disk space viewer, has a new version which just came out!

Some of the new features on the new versions are:
- Added quick search box
- Faster switching between view modes (Database-based / Drive-based)
- Added a new button to launch Management Studio (SSMS) with direct server connection
- UI improvements


I'm going to write an entire post on this app soon, in the meantime, feel free to grab it:
http://www.doccolabs.com/products.html#DatabaseFileExplorer


Here's a screenshot from the recent version:




Sunday, February 19, 2012

ClipTable now supports MySQL & PostgreSQL

This is a follow-up to our previous post was - Get to know ClipTable.
We've got a lot of feedback from SQL Server users who started using ClipTable on a daily basis.
In addition, the word has spread beyond the SQL Server community and we actually got some requests to have ClipTable support other database engines.

SO WE DID!
And even created a new/modified logo, here goes:


As from the latest version, ClipTable also supports MySQL and PostgreSQL!

Few things to keep in mind though,

  • This is only the first beta to support these engines, which means errors may occur. Be nice and report to us any misbehavior you find.
  • ClipTable is a Windows app, so apologies to all mysql/postgres who resent windows :)
  • Special connectors & drivers for each engine are not included within the setup. When loading the app you'll get links for each driver (if you already have them installed, nothing special to do)

Again, since this is quite preliminary, please let us know how your experience was like.

Thursday, February 2, 2012

Get to know – ClipTable


ClipTable objective is quite simple – 
revolutionize the way you’re importing data into your SQL Server.



New: ClipTable video is now available - Watch it!



Why:
I’ve been serving as a DBA for quite some time, performing production as well as development tasks.
One of the things I always found quite time-consuming was import data, any data, into a SQL table format for additional processing.
While it always works at the end, this type of task never became easier.

Here’s a typical scenario:
  • One of my customers hands me an Excel file containing his user data (let’s say, 50,000 users).
  • I open the Excel, see that it contains multiple sheets; one of them contains the data I need.
  • I choose the direct import option, using SSIS.
  • Trying to use Excel as input, getting an error and after a while, recalling that there’s an issue of reading Excel files when 64-bit office is not installed (hence missing the Jet/ODBC driver)
  • OK, giving up on the direct Excel->SQL path, going for the CSV->SQL
  • <Taking a deep breath, making another cup of coffee>
  • Saving sheet as CSV
  • Trying SSIS again with flat-file input
  • Battle continues with:
    •   Finding the right row/col delimiters
    •    Finding the best data-types (number, dates, text etc…)
    •    Finding the correct length for each column
    •    Hoping there are no “text qualifiers” (because this means further work and rules out working with bcp)
  • Importing… Finger crossed…
  • Worked? Great
  • Didn't work? Got an annoying unreadable SSIS error? Go back and try again…


Pardon for not drawing the above as a flowchart, but I hope you’re getting the point.
This is just one example. I’ve personally had so many of them I could write an entire article on the subject.
I could - but instead, I’ve spent my time simply writing a solution for this annoying problem.

So, the incentive was there, and my objective was to eliminate the frustration on this process.

How:
First, I wanted to eliminate the need of having input drivers for any format (my example above was Excel, but the table may come from PDF, Word, any webpage etc…)
So the natural solution was to use the clipboard. Instead of re-inventing the wheel, we let Windows do the work of translating anything to a readable text format.

Next, we need to “understand” the data;
This is where ClipTable’s smart engine is being used – analyzing the reverse-engineering the live data to understand the correct fields, types, delimiters etc…

And last – I wanted to quickly access any of the SQL Servers within my organizations (i.e. the “Destination”) and for that, I’ve implemented the Shared Repository component (which will be discussed on a different blog post)

The Result:
Taking the same example from the 1st paragraph, this could have taken way over an hour.
By using ClipTable, I simply:
  • Copy the users data from the relevant sheet
  • Letting ClipTable do the field/type analysis and turn it into a SQL formatted table
  • Choose my destination
  • Done!


That’s it – no more than 2 minutes and all done.

If you want to see more, go to our website (doccolabs.com) and get it – it’s totally free.
Hope we managed to help you save at least an hour on your next import task.

Let us know J


Thursday, December 1, 2011

Enjoy a bundle of Smart SQL Solutions



I'm super excited to share our new product bundle, which is constantly growing.
SQL Stripes is now part of a bigger family --  The "Docco Labs" family!

The objective is always the same - to provide smart SQL solutions, making DBA's life easier and more productive.

Here's a quick recap for each product; (I will post more detailed looking into each and every one of them in the near future):


  • ClipTable
    • Make data import as easy as possible: Copy the desired data into your clipboard (yes, I mean Ctrl-C), and in a few seconds - have this data available in an SQL Table!
    • No more dealing with input drivers, delimiter settings, field size and type headaches.
  • Database File Explorer
    • Explore your Database files/filegroups size & table location in a very easy to understand UI
    • The hierarchy view will help you quickly understand what's stored where
  • Log Table Viewer
    • This is a complete SQL logging solutions - just use the server side procedure to write anything to the log, and then look at it with an amazing viewer, containing many kind of views, filters and more
  • SQL Stripes
    • Our 1st product, which is a complete monitor and control solutions for multiple server environment
The "Glue"
Although the 3 new products are seperate, there all use a "Shared Repository" (see screenshot), which means you only have to manage one server/group list, and quickly use any of the servers by any of the products


The new products are still in beta stage, this means they are free to use!
Give it a shot and tell us what you think -

Cheers :)

Tuesday, November 22, 2011

Doccolabs.com is up!





There are various great news coming in today!

First, We're happy to announce that www.doccolabs.com is up and running.
Second, We're launching two new products (currently @ beta stages)
These products are the kickoff launch of our new path of extending our offered solutions.

So, what are those new products, you ask?

ClipTable -- 
A brand new way to import any data into SQL tables.
If you find yourself dealing with various SSMS wizards, trying to import those tricky Excel/CSV and other input files - ClipTable may be the best solution for you!
Out smart parsing engine reads any data you copy into your clipboard, and creates a table out of it.
Give it a shot - the beta is totally free!
http://www.doccolabs.com/products.html#ClipTable





Database File Explorer --
Our production databases usually have many files and filegroups.
Analyzing the locations, space consumption, hard-disk usage and more is usually a difficult task.
Out of the box Management Studio (SSMS) view is just a simple, unsorted, list of all files and filegroups.
So we usually find ourselves building various sys.* queries, into Excel and analyzing from there.
Well, no more!
We've created the perfect tool for such scenario, that gives you an extremely easy interface which helps you quickly understands the drive-space-file map each database is using.

Again, the beta is totally free, you're invited to give it a shot.
http://www.doccolabs.com/products.html#DatabaseFileExplorer


Enjoy!

Tuesday, September 6, 2011

Continuous Integration on SQL Server


Yesterday, I gave a presentation at the “Israeli SQL Server User Group” (Part of PASS), discussing the importance of continuous integration, automatic build, and the approach of SQL Code handling in general.
Lecturing there was a pleasure, the audience was great and I’ve got many responses during, and after the presentation.

Presentation aside; what puzzles me the most, is the fact that many SQL Developers don’t treat their code the way other developers (c#, java etc...) do
SQL Code is not just ad-hoc scripts; the code is often part of a big enterprise system -
It has to connect altogether, to compile & build, to use the right references and to be clean and readable.
Keeping these guidelines, even before you implement Automatic builds / CI, help you be in control when a team of SQL developers rapidly write new code and modify existing one.

Another thing worth mentioning is – Automatic deployment in Visual Studio is by all means, not intended for production deployment.
The main concept is to keep an updated, high-quality development (and maybe QA) environments with the latest code. This will help us:
  •           Provide a ‘Latest’ database version for integration with the other dev teams
  •           Ensure code quality and stability

For production, use whatever you like (diff scripts, 3rd parties…)

"Bad Code"













Last but not least – I sensed some excitement around controlling the presentation with my tablet. I’m always happy to see that I’m not the only gadget freak in the room J
So, there are many solutions out there. I’ve used Unified Remote (for Android) along with the server-side installation
Control can be done either through Wi-Fi or BT 

get it here:


Tuesday, August 30, 2011

SQL Code refactoring


Code refactoring (wiki:  "disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior") is a very common method of self-improving our existing code.

Doing this is extremely important and there are many resources, articles and forums discussing this topic.
Our SQL Code (procedures, functions etc…) is no different than any other regular code
And yet, we don’t see this common practice popular enough among SQL Developers.

It is important to distinct between query refactoring, which would usually aim at reformatting the query to better readability and in some cases – better performance, and actual code refactoring.

Frequently refactoring your code helps you make sure you (and other developers in your team) don’t get lost in long, spaghetti, unstructured code as your project grows.
In addition, you’ll be surprise of how much potential bugs you may find, fix and prevent during this process.

So, here are the common items you should be aiming towards:
-          Renaming (at least the internals that are not exposed to the outside application)
o   There are many tools, including Visual Studio, which will help you detect any rename any references to the renamed object. I strongly advise to use those
-          Keeping your procedures and functions small.
o   I personally saw too many of those 1000+ lines procedures. This is always a bad practice
o   And by the way, the solution is not to split a long procedure into [n] pieces J
-          Keeping the same structure/pattern. I’m referring to formatting, variable declaration, naming convention and more
-          Using schema prefix for different DALs. (this is a trick we’re using to divide the code into sub-systems)  For example:
o   Common.BatchDelete()
o   CallsDAL.StartTraceCall()
o   Etc…


Last but not least – during and after refactoring, always make sure that your project:
-          Compiles and builds with no errors
-          Deploys successfully
-          Passes all relevant unit-tests (to make sure backward compatibility and logic are not harmed)
 This is another big topic which I’ll cover in the near future.