SQLServerCentral - www.sqlservercentral.com

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

Featured Contents

The Voice of the DBA

Who's Licensed?

My employer licenses software to users. Many of you might have SQL Compare, SQL Prompt, or one of our other handy products. If you do, you might have noticed that we have a Redgate login for you that shows your licenses and lets you activate/deactivate them. This was surprisingly a big project across the last year to streamline and smooth our licensing process.

Early on, I realized this was an issue in one company I where I worked. This was during the 1990s and I started working at a small company with a fancy imaging system. We had purchased software to receive all our faxes as images and file them in a digital system. I'm sure we had one of the smallest (and cheapest) installations of this software, which one of our executives had managed to negotiate. However, the exec had left the company and a few months into my tenure, I needed support.

Finding our account, verifying our status, and re-enabling an old email account were a few of the cumbersome steps we completed to link the software to our organization. As soon as this was done, I realized this process had created a single point of failure, something I've tried to avoid as a technology professional. Immediately I set up a new email (licensing@ourdomain.com) and changed our account to this email. In fact, in all future purchases of software and hardware, I linked all support, warranty registrations, purchasing contacts, and more to this email. I also had this email forward to both myself and the CFO (he got an email rule set up to file this away).

Since that time, I've tried to use centralized contacts for my employers, ensuring that any vendor contact would outlive my tenure. I haven't always been consistent, and certainly with SQLServerCentral, I purchased any number of things under my own email, assuming if I weren't there, the company wouldn't be. However, I did make sure that I put all contact info in a Password Safe that my business partners had copies of.

I wonder how many of you bother to worry about longevity when you contact a vendor or purchase software. There are certainly times when a personal email makes more sense (research, working to craft an ROI), but for formal contacts, and registrations, a more generic contact might make sense.

Actually, I'd like to see more vendors take this approach, building their CRM and sales systems to take a general contact and then a list of individuals that might be personal contacts. They could easily add new licenses to this account, tracking them in a central area, perhaps even ensuring that renewals would be a more efficient process.

Steve Jones from SQLServerCentral.com

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


The Voice of the DBA Podcast

Listen to the MP3 Audio ( 5.2MB) podcast or subscribe to the feed at iTunes and Libsyn. feed

The Voice of the DBA podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music.

ADVERTISEMENT

Featured Contents

 

Azure DWH part 13: Load data using Data Platform Studio

Daniel Calbimonte from SQLServerCentral.com

In this article we will load data from a SQL Server on-premises to Azure SQL Data Warehouse More »


 

How to Generate a Restore Script

Additional Articles from Database Journal

There are multiple ways to accomplish a database restore. But if you wanted to restore a database from a script how might you accomplish that task quickly and accurately? More »


 

Simple Talk is hiring a full-time editor

Site Owners from Redgate

Have experience editing and writing technical content? Redgate is currently hiring for their educational publishing site, Simple Talk. They're open to accepting remote workers, so if you're interested, there's no excuse not to go ahead and apply! More »


 

From the SQLServerCentral Blogs - Power BI Custom Visuals Class (Module 60 – Drilldown Player)

Devin Knight from SQLServerCentral Blogs

In this module you will learn how to use the Drilldown Player Custom Visual.  The Drilldown Player acts like a... More »


 

From the SQLServerCentral Blogs - SQL Cruise: Alaska 2017

Grant Fritchey from SQLServerCentral Blogs

We’re weeks away from another SQL Cruise. If you’ve never heard of this before, follow the link to read more.... More »

Question of the Day

Today's Question (by Steve Jones):

I have this sample data

 CREATE TABLE EncryptedData ( MyID INT , MyVal VARBINARY(max) ); GO INSERT dbo.EncryptedData ( MyID, MyVal ) VALUES ( 1, ENCRYPTBYPASSPHRASE('ProtectThIs!', CAST(100000 AS VARCHAR(100))) ) GO 

I want to decrypt it, but this is what I get.

 SELECT MyID, DECRYPTBYPASSPHRASE('ProtectThIs!', MyVal) FROM dbo.EncryptedData; MyID ----------- -------------------- 1 0x313030303030 

What should my SELECT be to get this data back?

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 2 points in this category: Encryption.

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

ADVERTISEMENT

The DevOps Handbook: How to Create World-Class Agility, Reliability, and Security in Technology Organizations

More than ever, the effective management of technology is critical for business competitiveness. For decades, technology leaders have struggled to balance agility, reliability, and security. The consequences of failure have never been greater?whether it's the healthcare.gov debacle, cardholder data breaches, or missing the boat with Big Data in the cloud. Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

I am trying to round down for in my coffee card tracking to ensure that I never run out of money. For each amount, I want to round down and ignore the cents, which means that I will be saving fractions of dollars throughout the year. I'll use all these at the end of the year to buy Christmas presents. I also want my deposits (show as negatives) to also be rounded, to add more savings.

In testing, I don't seem to get the right results from this query.

 WITH mycte (a, n) AS (SELECT a, n FROM (VALUES ('Coffee', 2.38), ('Coffee', 4.53), ('Recharge card', -15.50), ('Recharge card', -5.25)) a (a, n) ) SELECT a, SUM(FLOOR(n)) FROM mycte GROUP BY a; 

I have more tracked in recharges than I added, not less. Why?

Here are my results

 a ------------- ------- Coffee 6 Recharge card -22 

Answer: FLOOR() rounds down, which is the opposite of what I want for negative numbers.

Explanation:

The problem with FLOOR() is that it chooses the integer just lower than the value passed in. For positives, this gives me what I want, extra money saved. For negatives, I am adding back money, not removing it. In this case, I need to use CEILING().

This quick query would work:

 WITH mycte (a, n) AS (SELECT a, n FROM ( VALUES ('Coffee', 2.38), ('Coffee', 4.53), ('Recharge card', -15.50), ('Recharge card', -5.25) ) a (a, n) ) SELECT a, SUM( CASE WHEN n < 0 THEN CEILING(n) ELSE FLOOR(n) END ) FROM mycte

Ref: Floor - click here

CEILING() - click here


» Discuss this question and answer on the forums

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 2016 : SQL Server 2016 - Administration

Automate SQL Server Installations - Hello  With Devops and moving to AWS being the in thing these days  , I wanted to know if any one of...

SQL Server geo-cluster 2016 - Dear Everyone Ikeep reading online that its not recommended to virtualize SQL Server clusters (4 nodes)  


SQL Server 2016 : SQL Server 2016 - Development and T-SQL

Changing type from INT to BIGINT why so slow? - I was hoping SQL Server 2016 could handle change in types. With this table of numbers it takes an age to...

Cursor Performance - OK so we have an application that has gone through an upgrade which also saw the database move from a...


SQL Server 2014 : Administration - SQL Server 2014

When does Powershell become indispensible? - I have been reading articles over the last 6 months that have come my way which discuss the crossroads of...

Should I Re-design table? - This table has high transactions with select, insert, update, delete and It index got fragmentation about 90% after rebuild 3-4...


SQL Server 2014 : Development - SQL Server 2014

Display members with active cards - Hi guys, I have a little complicated issue, I want to display all the members in the Allmembers table, and their card...

Synonyms causing performance issue - database on same server - I have synonyms created that point to a database on the same server.  I have been using them for 2 years...

High level performance report aimed at senior management - Hi all, I've been in the SQL space for a number of years now and recently been asked to act as...


SQL Server 2008 : SQL Server 2008 - General

Why doesn't this simple concatenation work? - Hi, I'm trying to assign a concatenated string to a variable, in 2008 R2.  I've tried both Concat() and the + operator,...

Numbering a group - Hi, I have the following sample data, I would like the following result

A network-related or instance-specific error occurred while establishing a connection to SQL Server - Hi, The below error is logged into application logs intermittently.But, when I review SQL Server errorlog, event viewer application log, system...


SQL Server 2008 : T-SQL (SS2K8)

i need the max length value of every column in every table in a database - I'm creating some dynamic sql to loop through each table and column and basically generate some dynamis sql that will...

ERROR:An expression of non-boolean type specified in a context where a condition is expected - Hi..I am trying to create Sp as below: CREATE PROCEDURE . @InvestorCode_FROM INT ,@InvestorCode_TO INT ,@Investor_all VARCHAR(MAX) AS BEGIN SET NOCOUNT ON IF(@InvestorCode_FROM AND @InvestorCode_TO IS...


SQL Server 2008 : SQL Server Newbies

(The device is not ready.) to SQL Server during a read at offset 0x00001573c00000 in file - Good morning Experts, Today morning when i came to office, i saw that a  job failed because a  database went to...


SQL Server 2008 : SQL Server 2008 Administration

Allow remote SQL connections from specific IP addresses via windows firewall? - My MS SQL Server 2008 R2 instance is setup to allow remote connections. However, I only want to allow remote...


Reporting Services : Reporting Services

Allow 'everyone' to view a report - In the past (using SSRS 2008 R2) in order to allow anyone in our organization to VIEW a report. I...


Programming : Powershell

Powershell script transfers entire directory? - I've got a powershell script I'm using to send one file via SFTP. The only problem? It's copying everything in...


SQL Server 7,2000 : Backups

How to take backup & restore for one table? - How to take backup & restore for one table?


Career : Presentations and Speaking

Potential presentation idea: So you want to be a SQL Saturday speaker? - This idea is based on a 'blog article of the same name that I wrote a while back. I was just...

This email has been sent to newsletter@newslettercollector.com. 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 ©2017 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com