Ozzie.eu

Love to code, although it bugs me.

No comments

Best decoration lighting at my inlaws neighbourhood :)

No comments :

Post a Comment

Catholic Church Debate

No comments
Link: Catholic Church Debate

Could this be the first sign of a long awaited church openness?

No comments :

Post a Comment

Organize Files by Date - UPDATE

No comments

The script I made using powershell to help organize files into folders, by date, had a bug: if you copied the files from another source, the creation date is the one from the copy being made. So it would stuff everything into the same folder.


The updated version is already on Github’s Gists.


Hope it helps…

No comments :

Post a Comment

No comments




portuguese-history:



Happy Birthday to the oldest director in the world, who is 106 years old today, Manoel de Oliveira!

Not only is the Porto-born director the oldest active director, he has a new a film coming out, ‘O Velho do Restelo’ (The Old Man From Belém).

Oliveira truly is a man who has witnessed first-hand the history of cinema itself.


No comments :

Post a Comment

Work hard, play hard ...

No comments


Banco Alimentar 2014

No comments :

Post a Comment

Cross platform? Not really

No comments

I came across a framework called osquery, developed by the Engineering at Facebook.


On the introduction page it’s stated that it is cross platform:



you can build and use osquery on Ubuntu, CentOS and Mac OSX. This has the distinct advantage of allowing you to monitor your corporate Mac OS X clients the same way you monitor your production Linux servers.



What about the windows systems guys? Don’t they qualify as a platform?


Or maybe you thought it wasn’t necessary?

No comments :

Post a Comment

No comments




Always glad to help with improvement ideas.Sometimes the simple things to a few people are biggies.

No comments :

Post a Comment

Reference Architecture for Private Cloud

No comments

A lot of companies still make the finantial compromise on private cloud, rather than public or hybrid ones, either because of regulatory affair or simply because there is a lack of trust on external suppliers.


Microsoft has released a whole set of documents about designing, implementing and securing a private cloud:


Overview of Private Cloud Architecture

Private Cloud Technical Overview

What is Infrastructure as a Service?

Private Cloud Reference Model

Private Cloud Principles, Patterns and Concepts

Private Cloud Planning Guide for Infrastructure as a Service (IaaS)

Private Cloud Planning Guide for Service Delivery

Private Cloud Planning Guide for Operations

Private Cloud Planning Guide for Systems Management

Cloud Computing Security Architecture

A Solution for Private Cloud Security


I was also made aware, by Microsoft’s security newsletter, of the "A Solution for Private Cloud Security" series of three papers on private cloud security. 


Finally, heading over to the Cloud and Datacenter Solutions Hub, there’s lots and lots of material to read.

No comments :

Post a Comment

Geeky pics for SQL Server fans

No comments
Link: Geeky pics for SQL Server fans

No comments :

Post a Comment

Reset Forgotten MySQL Root Password

No comments

Following my recent post about getting locked out of MSSQL, I might as well post one about MySQL:


http://www.itsprite.com/linuxreset-forgotten-mysql-root-password/

No comments :

Post a Comment

Locked out of MS SQL Server - solution

No comments

Reading this post from SQLServer Central, I remembered reading the documentation:


Connect to SQL Server When System Administrators Are Locked Out


It’s still valid for MSSQL2014.

No comments :

Post a Comment

No comments




oldoldlisbon:



| Fotografia da construção da estátua de Marquês de Pombal localizada em Praça do Marquês de Pombal - Lisboa (portugal)(1934)


| Photograph of the construction of the statue of the Marquis of Pombal




Reminds me of Gulliver and the Lilliputian people :)

No comments :

Post a Comment

New Version: SQL Server Maintenance Solution

No comments
Link: New Version: SQL Server Maintenance Solution

Ola Hallengren released a new version of SQL Server Maintenance Solution:



The new version has support for backup to Azure Blob Storage.


Here is how it works:



EXECUTE dbo.DatabaseBackup @Databases = ‘USER_DATABASES’,


@URL = ‘https://myaccount.blob.core.windows.net/mycontainer’,


@Credential = ‘MyCredential’,


@BackupType = ‘FULL’,


@Compress = ‘Y’


and with encryption:


EXECUTE dbo.DatabaseBackup @Databases = ‘USER_DATABASES’,


@URL = ‘https://myaccount.blob.core.windows.net/mycontainer’,


@Credential = ‘MyCredential’,


@BackupType = ‘FULL’,


@Compress = ‘Y’,


@Encrypt = ‘Y’,


@EncryptionAlgorithm = ‘AES_256’,


@ServerCertificate = ‘MyCertificate’,


@Verify = ‘Y’


Backup to Azure Blob Storage is available in SQL Server 2012 (SP1 CU2 and later) and SQL Server 2014.


The new version also has some minor bug fixes and improvements.



The SQL Server Maintenance Solution comprises scripts for running backups, integrity checks, and index and statistics maintenance on all editions of Microsoft SQL Server.

No comments :

Post a Comment

No comments




Are these the only options in life?

No comments :

Post a Comment

Learning version control with Git

No comments

imageBetter late than never. Having discovered this wonderful resource on the Web, let me share it with you: Learn Version Control with Git is brought to us by the makers of Tower, a Git client for Mac.
This tutorial is available as an eBook or as a Webinar. It already has announced a series of videos, soon to become available.
If you’re a basic Git user or have no experience, this is a must read/watch.


Site: http://www.git-tower.com/learn/

No comments :

Post a Comment

Troy Hunt: What the f*** were they thinking?! Crazy website biases exposed by naughty words lists (the NSFW version)

No comments
Link: Troy Hunt: What the f*** were they thinking?! Crazy website biases exposed by naughty words lists (the NSFW version)


In fact all it takes is a casual GitHub search for some everyday words.


No comments :

Post a Comment

Fear Driven Development - FDD

No comments
Link: Fear Driven Development - FDD


I present this with no comment… NO COMMENT!

No comments :

Post a Comment

No comments




dbareactions:



When I let the developers use the SA login for their web app



HAHAHAHAHA!

No comments :

Post a Comment

Azure PowerShell Tools version 0.8.6 is available

No comments
Link: Azure PowerShell Tools version 0.8.6 is available


Finally: Non-interactive login support for Microsoft Organizational account with Add-AzureAccount -Credential.


For achieving daily full script automation, the login pop-up window every 24h wasn’t very nice.

No comments :

Post a Comment

Write-Host Considered Harmful

No comments
Link: Write-Host Considered Harmful


I’ll be reviewing some of my stuff on github after reading this.

No comments :

Post a Comment

Using PowerShell to discover information about your Microsoft SQL Servers

No comments
Link: Using PowerShell to discover information about your Microsoft SQL Servers

No comments :

Post a Comment

Imagine Cup já arrancou e a luva inteligente Nuada é a representante portuguesa

No comments
Link: Imagine Cup já arrancou e a luva inteligente Nuada é a representante portuguesa

No comments :

Post a Comment

Free ebook: Building Cloud Apps with Microsoft Azure - Microsoft Press - Site Home - MSDN Blogs

No comments
Link: Free ebook: Building Cloud Apps with Microsoft Azure - Microsoft Press - Site Home - MSDN Blogs

No comments :

Post a Comment

Command history on the powershell prompt

No comments

When you get used to issuing commands on the linux/unix prompt, one thing you’re sure to miss is that when you close and open another terminal or command line window the history is gone,


With a tip from the guys at powershell magazin, you can get that working for windows powershell.


That way you can always remember what have been up to recently on the command line.

No comments :

Post a Comment

Thinking of messing around with your Sharepoint database?

No comments

You better think again. If you consider doing any of the following changes:


  • Adding database triggers

  • Adding new indexes or changing existing indexes within tables

  • Adding, changing, or deleting any primary or foreign key relationships

  • Changing or deleting existing stored procedures

  • Calling existing stored procedures directly, except as described in the SharePoint Protocols documentation

  • Adding new stored procedures

  • Adding, changing, or deleting any data in any table of any of the databases for the products that are listed in the “Applies to” section

  • Adding, changing, or deleting any columns in any table of any of the databases for the products that are listed in the “Applies to” section

  • Making any modification to the database schema

  • Adding tables to any of the databases for the products that are listed in the “Applies to” section

  • Changing the database collation

  • Running DBCC_CHECKDB WITH REPAIR_ALLOW_DATA_LOSS (However, running DBCC_CHECKDB WITH REPAIR_FAST and REPAIR_REBUILD is supported, as these commands only update the indexes of the associated database.)

  • Enabling SQL Server change data capture (CDC)

  • Enabling SQL Server transactional replication

  • Enabling SQL Server merge replication

And these unsupported database modifications are discovered during a support call then, to get support back… just perform a database restoration from the last known good backup that did not include the database modifications.


I really don’t get the implications of creating new stored procedures or indexes. It’ s perfectly common for a DBA to sometimes add non-business related objects to get some usage overview.


Hope I never get called to solve performance issues on a Sharepoint MSSQL database. I might inadvertently ruin their support eligibility.


Source: here.

No comments :

Post a Comment

Largest collection of FREE Microsoft eBooks ever, including: Windows 8.1, Windows 8, Windows 7, Office 2013, Office 365, Office 2010, SharePoint 2013, Dynamics CRM, PowerShell, Exchange Server, Lync 2013, System Center, Azure, Cloud, SQL Server, and much more

No comments
Link: Largest collection of FREE Microsoft eBooks ever, including: Windows 8.1, Windows 8, Windows 7, Office 2013, Office 365, Office 2010, SharePoint 2013, Dynamics CRM, PowerShell, Exchange Server, Lync 2013, System Center, Azure, Cloud, SQL Server, and much more


Useful stuff.

No comments :

Post a Comment

Dynamic Management Views: Changes in SQL Server 2012 - SQLServerCentral

No comments
Link: Dynamic Management Views: Changes in SQL Server 2012 - SQLServerCentral

Nice article with an Excel spreadsheet attached with all the DMVs and identifuing changes made from MSSQL 2012 to 2014.

No comments :

Post a Comment

SQL Tact: Using Foreign Keys to Determine Table Insertion Order

No comments
Link: SQL Tact: Using Foreign Keys to Determine Table Insertion Order

Gold!

No comments :

Post a Comment

Download Remote Server Administration Tools for Windows 8.1 from Official Microsoft Download Center

No comments
Link: Download Remote Server Administration Tools for Windows 8.1 from Official Microsoft Download Center

This is a must for sysadmin … otherwise you just have to open RDP sessions all the time.


Remote Server Administration Tools for Windows 8.1 includes Server Manager, Microsoft Management Console (MMC) snap-ins, consoles, Windows PowerShell cmdlets and providers, and command-line tools for managing roles and features that run on Windows Server 2012 and Windows Server 2012 R2. 


This enables IT administrators to manage roles and features that are installed on computers that are running Windows Server 2012 or Windows Server 2012 R2 from a remote computer that is running Windows 8.1 Pro or Windows 8.1 Enterprise.

No comments :

Post a Comment

Uninspiring work

No comments

An old acquaintance of mine wrote a post on his blog where he mentions the weather and having having the flu coupled with uninspiring work result on a lack of good mood.


I don’t have the flu… guess my work is more uninspiring because my mood is way bad.


http://www.so.cl/#/post?i=1b6tkuncQuHssPhe

No comments :

Post a Comment

Microsoft updates privacy policy - respect.

No comments



I get that companies have to find revenue somewhere. Some might “give” you free cloud services and have invasive technology, usage terms or conditions. Some might just be earnest about it and tell you to buy their stuff and in return they’ll try to keep up and give you some great value added services.

No comments :

Post a Comment

10 common mistakes Java developers make when writing SQL

No comments
Link: 10 common mistakes Java developers make when writing SQL


The guy who wrote this post must not be a DBA: “Just let the database do the processing and fetch only the results …”


Really?

No comments :

Post a Comment

ASP.NET - Topshelf and Katana: A Unified Web and Service Architecture

No comments
Link: ASP.NET - Topshelf and Katana: A Unified Web and Service Architecture

This is great stuff… Opens up a variety of possible architectures for Windows applications, without the feature and subsequent hardware overkill.


Cool projects to watch:




With the bits and pieces, create service and application without the need for an IIS container.

No comments :

Post a Comment

Denial of service attack

No comments
Link: Denial of service attack


You darn criminals! I want to read my feeds…

No comments :

Post a Comment

No comments




portuguese-history:



June 10th, Portugal Day, a day to celebrate de Portuguese communities. The date was chosen as being that of the poet Luís Vaz de Camões' death, as there is no certainty of his birth.


Picture: Luís Vaz de Camões, by José Malhoa (in Museu Militar, Lisbon)


No comments :

Post a Comment

Springpad to OneNote migration tool

No comments

Remember this news here? No worries, the guys at Microsoft’s OneNote team have the solution: Springpad to OneNote migration tool.

No comments :

Post a Comment

Interesting news from the Hadoop summit

No comments

Apache Hadoop Elephant




Headlines:


  • Microsoft gives SQL Server tech to Hadoop: http://www.infoworld.com/t/hadoop/microsoft-gives-sql-server-tech-hadoop-and-helps-itself-243764

  • Microsoft releases HDInsight for Hadoop 2.4 And Gains 100x Performance Increase: http://blogs.technet.com/b/dataplatforminsider/archive/2014/06/04/microsoft-releases-hdinsight-for-hadoop-2.4-and-gains-100x-performance-increase.aspx

  • PolyBase in APS - Yet another SQL over Hadoop solution: http://blogs.technet.com/b/dataplatforminsider/archive/2014/06/02/polybase-in-aps-yet-another-sql-over-hadoop-solution.aspx

Someone’s been busy with the big data OSS :)

No comments :

Post a Comment

No comments

These guys from MS are crazy!

No comments :

Post a Comment

No comments




dbareactions:



When we use SQL Server to store files



Yep … this is a pain!

No comments :

Post a Comment

Announcement: Springpad is Shutting Down on June 25th

No comments
Link: Announcement: Springpad is Shutting Down on June 25th

This Is rally a shame. Such a nice note taking app…

No comments :

Post a Comment

No comments
Computers are like bikinis. They save people a lot of guesswork.

Sam Ewing

No comments :

Post a Comment

Arbitrary XML file conversion to JSON

No comments

Here’s a script I cooked up to generate JSON from a given XML file, any file:




Magic …

No comments :

Post a Comment

Stack Exchange PowerShell Loader

No comments

Following a session I attended on a SQL Saturday event and reading a post from Brent Ozar, I got the idea for a new github project, a loader utility script made to import the Stack Exchange data dumps, in XML format, into a given Microsoft SQL Server database.


The data dumps are an anonymized dump of all user-contributed content on the Stack Exchange network. Each site is formatted as a separate archive consisting of XML files zipped via 7-zip using bzip2 compression. Each site archive includes Posts, Users, Votes, Comments, PostHistory and PostLinks.


You can find and choose to download the data dumps here: https://archive.org/details/stackexchange


image



The given DDL file for the schema and database object creation is adapted from Jeremiah Peschka’s soddi project. You can check it out here: https://github.com/peschkaj/soddi


image



In order to run the script, you should have Powershell v3 and MSSQL Server Management Studio 2012 or above:


image



You can chek the project’s page and get the source here:


http://mjlmo.github.io/SEPSLoader/


image



Happy scripting!

No comments :

Post a Comment

Série Templários

No comments
Link: Série Templários

portugalsecrets:



image


Para quem gosta de história e dos nossos Templários, aqui está uma série interessante.


O Canal História vai estrear o 1º episódio dia 12 de Maio (2ºf) às 22h.


A série é composta por 6 episódios de 45 minutos cada, e vai ter como cenário o Castelo de Tomar e…



Já tenho programa para segunda-feira à noite.

No comments :

Post a Comment

Windows PowerShell 4.0 Quick Reference Guides

No comments

The PDF files in this download are short-form Quick Reference (also called “cheat sheet”) guides for IT professionals, developers, and scripting enthusiasts who want to learn tips, shortcuts, common operations, limitations, and proper syntax for using Windows PowerShell 4.0, Windows PowerShell Desired State Configuration (DSC), Windows PowerShell ISE, Windows PowerShell Web Access, Server Manager, WMI, and WS-Man in Windows Server 2012 R2 and Windows 8.1. 


To download go to the Microsoft Download Center:


http://www.microsoft.com/en-us/download/details.aspx?id=42554&ocid=aff-n-we-loc—ITPRO40886&WT.mc_id=aff-n-we-loc—ITPRO40886

No comments :

Post a Comment

No comments




portuguese-history:



The woman who gave the Carnations to the Revolution


Celeste Caeiro worked on a restaurant that opened on the 25th of April, 1973. Two years later, to comemorate the restaurant’s opening, her boss ordered red and white carnations to give out to every woman attending the restaurant and a Port Wine to the men. However, on that morning, the revolution happening downtown Lisbon prevented the restaurant from opening. Celeste’s boss told all his employees to go home and take the carnations with them.


Celeste took the subway to Rossio, where she was immediatly confronted with the military forces. She approached one of the soldiers and asked what was going on. He answered “We are heading to Largo do Carmo to stop Marcello Caetano. This is a revolution!”. He then asked for a cigarette, but Celeste had none. She felt like giving some food to the soldiers, but all the stores were closed. So she handed out the only thing she had with her: her carnations. She told him: “If you want it, here: a carnation should be given to any person”. The soldier took the carnation and put it in his rifle.


So Celeste proceeded to hand out carnations. And the soldiers proceeded to put it in the barrell of their rifles.


No comments :

Post a Comment

10 Reasons why Java Rocks More Than Ever | Javalobby

No comments
Link: 10 Reasons why Java Rocks More Than Ever | Javalobby

Maybe this will help all the haters understand why I’m still so fond of this programming language. I’ll have a cup of it anytime!

No comments :

Post a Comment

HDFS Explorer - nice tool for MS Windows and Hadoop

No comments

Looks like someone at RedGate read my mind: Manipulating HDFS storage on an interface like Windows explorer. Check out the demo video below:



You can get the software here:


http://bigdata.red-gate.com/hdfs-explorer.html



No comments :

Post a Comment

Como fazer a declaração de IRS português em Linux | Ubuntued

No comments
Como fazer a declaração de IRS português em Linux | Ubuntued:

Para quem, como eu, utiliza software livre nos computadores lá de casa, aqui vai uma ajuda!

No comments :

Post a Comment

eBook - HDInsight: Microsoft’s Cloud Hadoop

No comments

I’ve published a small ebook meant to help IT professionals, with background experience on Apache Hadoop, transition to its Microsoft cloud implementation. The assumption will be that the client will be running Windows along with PowerShell.


This is not a book to learn Hadoop, its purpose is to accelerate the adoption by Hadoop developers coming from in-house clusters or cloud providers such as Amazon Web Services.


You can check it out at Amazon Kindle Store.


Here’s a look at the table of contents:


1 CONTENTS
2 Introduction
3 Do you have what it takes?
3.1 Create a Microsoft Account
3.2 Register for Microsoft Azure
3.3 Download and Install the Azure SDK
3.4 Configure the Azure SDK to your Online Account
4 Setting Things Up for HDInsight
4.1 Creating a Storage Account
4.2 Create a Container using Microsoft Azure Powershell
4.3 Uploading Input Files to Azure Blob Storage
4.3.1 Using Powershell
4.3.2 Using Free GUI Tools
4.4 Provisioning an HDInsight Cluster with Quick Create
4.5 Provisioning an HDInsight Cluster with Powershell
5 Meeting Old Friends in New Places
5.1 Running Map Reduce Jobs Programatically
5.2 Retrieving Job Output
5.3 Using Hive with HDInsight
6 General HDInsight Powershell Guidance
6.1 Basic building blocks
6.2 Scripts used to perform the tasks on this book
6.2.1 Create Storage Container
6.2.2 Upload File
6.2.3 Download File
6.2.4 Delete File
6.2.5 Hadoop Submit Job
6.2.6 Hive Create Table
6.2.7 Hive Load Data
6.2.8 Hive Perform Query


Happy reading!

No comments :

Post a Comment

Free ebook: Introducing Microsoft SQL Server 2014

No comments

Free ebook: Introducing Microsoft SQL Server 2014:



image

No comments :

Post a Comment

SQL Server 2014 has been released

No comments

image


With the release of SQL Server 2014, there are new licensing guides:


image

No comments :

Post a Comment

Available Today: Windows Azure HDInsight with Hadoop 2.2

No comments
Link: Available Today: Windows Azure HDInsight with Hadoop 2.2

Big Data

No comments :

Post a Comment

This looks promising - new Google Sheets

No comments

No comments :

Post a Comment

Color, Value & Evolution of Logos: Infographic

No comments
How Big Businesses Like Ford or McDonald's Use The Power of Their Logos

No comments :

Post a Comment

This must be Christmas ...

No comments


First I got this: http://blogs.office.com/2014/03/17/onenote-now-on-mac-free-everywhere-and-service-powered/


Free OneNote for everyone :)


Then I read this:


http://googleblog.blogspot.pt/2014/03/save-more-with-google-drive.html


Two bucks a month? Sold!

No comments :

Post a Comment

Looks like the script I cooked up ...

No comments
Looks like the script I cooked up …:

… has everything to be a hit!


http://blog.ozzie.eu/post/79501121337/automatically-organizing-files-by-creation-date-into

No comments :

Post a Comment

Automatically organizing files by creation date into folders

No comments

I made this script for personal use, to organize photos after downloading them from the smartphone or memory card.


Maybe it’s useful to the rest of you:



No comments :

Post a Comment

Why dynamic TSQL should be banned from Stored Procedures

No comments


The guys from SQLServerCentral.com published an article giving a Quick Tour of sp_ExecuteSQL. This is all very well, except for the antibodies in me regarding dynamic TSQL inside frequently used stored procedures.

Yes, it’s true that “Every once in a while you find yourself working with SQL Server and you need to execute a piece of T-SQL that will be  different at the time of execution from the time that the code is being written.” but pointing out SQL injection as the single concern is quite an understatement.

The key downside events regarding dynamic TSQL are statement compile time and execution plans. You can read on the official documentation at MSDN: “The Transact-SQL statement or batch in the sp_executesql @stmt parameter is not compiled until the sp_executesql statement is executed. The contents of @stmt are then compiled and executed as an execution plan separate from the execution plan of the batch that called sp_executesql.”

Furthermore “sp_executesql can be used instead of stored procedures to execute a Transact-SQL statement many times when the change in parameter values to the statement is the only variation. Because the Transact-SQL statement itself remains constant and only the parameter values change, the SQL Server query optimizer is likely to reuse the execution plan it generates for the first execution.”

One can try to optimize this dynamic execution by using parameter substitution, so the the Transact-SQL string is built only one time. But there are still aspects you can’t control:


  • What is the generated execution plan for the dynamic statement, running separate from the execution plan of the batch that called sp_executesql;

  • Is the execution plan any good? You can’t really tell to try to change it;

  • Good or bad, the plan is cached for the following executions. If the diversity of queries that can dynamically be run is large, there’s no gain from the plan caching;

  • Using the RECOMPILE option solves the above issue but creates another: each time the stored procedure is called, the execution plan is recompiled. For long running queries this might be overlooked, but for queries otherwise fast, it’s a major performance drawback.

Having stated my displeasure for the dynamic TSQL, I can also recommend the following readings:


I apologize for the rant but in all applications I witnessed the development, using dynamic TSQL inside stored procedures caused nothing but trouble as soon as the tiny tables turned into a larger, business critical database with hundreds of users.

No comments :

Post a Comment

Announcing the release of Service Pack 1 for Office 2013 and SharePoint 2013 - Office Updates - Site Home - TechNet Blogs

No comments
Link: Announcing the release of Service Pack 1 for Office 2013 and SharePoint 2013 - Office Updates - Site Home - TechNet Blogs

No comments :

Post a Comment

Announcing the release of Service Pack 1 for Office 2013 and SharePoint 2013 - Office Updates - Site Home - TechNet Blogs

No comments

Announcing the release of Service Pack 1 for Office 2013 and SharePoint 2013 - Office Updates - Site Home - TechNet Blogs

No comments :

Post a Comment

Hadoop default configuration directory

No comments

To anyone reading this:



I inform that the conf directory that comes with Hadoop is no longer the default configuration directory.  Rather, Hadoop looks in “etc/hadoop" for configuration files. 

No comments :

Post a Comment

Hadoop default configuration directory

No comments

To anyone reading this:



I inform that the conf directory that comes with Hadoop is no longer the default configuration directory.  Rather, Hadoop looks in “etc/hadoop" for configuration files. 

No comments :

Post a Comment

No comments




Think I’ll bet on linux, next lab… These are the longest 54 seconds I ever waited!

No comments :

Post a Comment

Think I’ll bet on linux, next lab… These are the...

No comments


Think I’ll bet on linux, next lab… These are the longest 54 seconds I ever waited!

No comments :

Post a Comment

Troubleshooting pymssql installation on Ubuntu

No comments

Installing pymssql on Ubuntu 13.10 was not an easy task. Trying to install directly from the .egg file gave an UCS2-UCS4 incompatibility error. So I installed it from source.

After installing the FreeTDS packages, the process was as follows:

  1. Get source from https://github.com/pymssql/pymssql
  2. Error: _mssql.c:8:22: fatal error: pyconfig.h: No such file or directory
  3. Install Python development libraries: sudo apt-get install python-dev
  4. Error: _mssql.c:314:22: fatal error: sqlfront.h: No such file or directory
  5. Install freeTDS development libraries: sudo apt-get install freetds-dev
  6. Install pymssql from the unzipped source directory: sudo python setup.py install
Success!

No comments :

Post a Comment

"Há terras do interior, sem centro de saúde, sem correios e sem finanças… Mas os “festivais de verão”..."

No comments
“Há terras do interior, sem centro de saúde, sem correios e sem finanças… Mas os “festivais de verão” estão cheios e com bilhetes de centenas de euros.”

-

Para quem quiser ler tudo sobre esta “crise inventada”:


http://www.ericeiraonline.pt/index.php/destaques/item/123-nao-quero-morrer


NÃO QUERO MORRER…..

No comments :

Post a Comment

Marvel Developer Portal

No comments
Marvel Developer Portal:

I might give it a spin …

No comments :

Post a Comment

Free ebook download from the Microsoft Virtual Academy

No comments

MVA-00-Free-eBooks-banner-730x120

Microsoft has made available a series of ebooks on the MVA web site. From technical overviews to drilldowns on special topics, these free ebooks are available in PDF, EPUB, and/or Mobi for Kindle formats, ready for you to download.

You can check them all out here:

http://www.microsoftvirtualacademy.com/ebooks

Happy reading!

No comments :

Post a Comment

Qualquer dia o desespero é maior que o conformismo …

No comments


Qualquer dia o desespero é maior que o conformismo …

No comments :

Post a Comment

No comments

Qualquer dia o desespero é maior que o conformismo …

No comments :

Post a Comment

Really good advice.

No comments


Really good advice.

No comments :

Post a Comment

No comments

Really good advice.

No comments :

Post a Comment

mjlmo/Internet Robot - Web Scraper

No comments
Link: mjlmo/Internet Robot - Web Scraper



No comments :

Post a Comment

mjlmo/Internet Robot - Web Scraper

No comments

mjlmo/Internet Robot - Web Scraper:



No comments :

Post a Comment

Security Concern: Alternative to extended stored procedures on Microsoft SQL Server

No comments
115446241_67b259d1aeWhile securing a Microsoft SQL Server instance, there are many issues you should look after. According to the official documentation, it can be viewed as a series of steps, involving four areas: the platform, authentication, objects (including data), and applications that access the system. On environments where SQL Server is used on a more “Swiss Army Knife” fashion, there is often difficulty on disabling or, at least, restricting access to the general extended stored procedures, like xp_cmdshell. These stored procedures provide an interface from an instance of SQL Server to external programs for various maintenance activities. But they also represent a security liability. The alternative suggested is if possible to use SQL CLR Integration to perform these tasks. It can be done and it works, but maybe it isn’t a desired task by the regular DBA to learn to program a .NET Framework language.
With this in mind, as far as SQL Server Agent jobs are concerned, I’d suggest creating a Powershell job step:
3441.hsg-5-6-13-4.jpg-550x0
Bear in mind this requires a specific kind of error handling. By default the ErrorActionPreference is set to Continue, and this has implications on how errors bubble up to the SQL Server Job Server. If you run a Windows PowerShell command as a SQL Server Agent job and there are no syntax errors but the command produces an error, the SQL Server Agent job will report success. If you want an error condition to halt execution of a SQL Server Agent job or to produce an error, you'll need to add some error handling. To bubble up Windows PowerShell errors to SQL Server Agent, you'll need to set your $ErrorActionPreference = "Stop". You can check that out here.
For the processing task which are a hybrid of data manipulation and other external system related tasks I’d suggest the development of Powershell scripts that use SQL Server Management Objects (SMO) which is a collection of objects that are designed for programming all aspects of managing Microsoft SQL Server.
Sure, you might say that this suggestion doesn’t help from learning to code, but this is an inevitable goal every SQL Server DBA must have as the future might have projects where the projects might have a server core platform. What then?
So why not kill two rabbits with one stone and learn your Powershell and SMO, it quite seems  the way to go. For starters, this might help.

By coincidence, as I'm writing this post, this editorial from SQLServer Central came out. What are the odds of that?

Happy coding!


Photo Credit: baboon™ via Compfight cc

No comments :

Post a Comment

Top programming languages list of 2013 throws up surprise winner

No comments

Top programming languages list of 2013 throws up surprise winner :



Oh yeah :)


image

No comments :

Post a Comment

No comments




E pronto, é isso.

No comments :

Post a Comment

E pronto, é isso.

No comments


E pronto, é isso.

No comments :

Post a Comment