Quantcast
Channel: Database – zOld – Raymund Macaalay's Dev Blog
Browsing all 41 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Use SQL to view Active Directory Data

If you want an easy way of viewing objects in Active Directory one good way of doing it is creating a view or stored procedure on SQL Server.  By doing this you can easily call now the views or stored...

View Article



Image may be NSFW.
Clik here to view.

Function to Clean Fields in SQL

Have you ever wondered how to clean fields in SQL, usually you have to LTRIM and RTRIM on each Field Object on your select statement which I used to do before when I was starting with SQL years ago,...

View Article

Image may be NSFW.
Clik here to view.

Saving changes is not permitted. The changes that you have made require the...

I was importing some data from Excel to SQL 2008  this morning and everything seems to work well and fine.  I successfully imported the data but I forgot to define the proper data types which means I...

View Article

Image may be NSFW.
Clik here to view.

A good use for SQL OUTER APPLY

This week I have a lot of good challenges in SQL as we are building an SSIS package to unify data from different systems like Solomon, Raisers Edge, Goldmine, etc.  A part of that SSIS Package is to...

View Article

Image may be NSFW.
Clik here to view.

Observations (SQL Server – TSL and Oracle – PL/SQL Comparison)

Here are some useful information for those who knows TSQL and wants to learn PL/SQL. Lets start with the data types SQL Server Oracle image blob nchar(x) char(n*2) text clob datetime date real float...

View Article


Image may be NSFW.
Clik here to view.

Performing SQL Query in Different Servers using a Single TSQL Command

Have you ever wondered how to perform the same query on different servers without going to each of the SQL Servers?  Well I was presented this scenario just a while ago because I wanted to know what...

View Article

Image may be NSFW.
Clik here to view.

Extracting Multiple Rows from a Single Row (TSQL)

I was tasked to create a query for an accounting journal entry from a transaction table with only amounts indicated, so if it’s a journal entry there should be a credit and debit but most of the other...

View Article

Image may be NSFW.
Clik here to view.

Restricting Access to Database by Application Name and/or Host Name in SQL...

Have you ever thought of restricting access to the Database by Application Name or Host Name, that’s on top of the user credentials. For example you don’t want users to use SQL Query Analyser but...

View Article


Image may be NSFW.
Clik here to view.

Deleting Files using File System Task in SSIS

I recently had noticed that deleting a file in SSIS using the File System Task is not straightforward specially when your file is not hardcoded in your package but it is declared as a variable. I just...

View Article


Image may be NSFW.
Clik here to view.

Integrating Sharepoint 2010 and SQL Reporting Services 2008 in 6 easy steps

There are only 6 main steps to achieve this task assuming you already have an instance of SQL Server Reporting Services and Sharepoint 2010. I had created this starting from a clean installation of SQL...

View Article

Image may be NSFW.
Clik here to view.

Auditing events on SQL Server 2008

If you want to audit whats happening on your SQL Server then look no further as SQL Server 2008 have a built in function for that, so you can log all Queries like Select, Insert, Updates and Deletes...

View Article

Image may be NSFW.
Clik here to view.

Automating Backups on SQL Server Express Version

Automating Backups on SQL Server Express Version is not as it does not have a SQL Server Agent installed with the instance but dont worry as you can still do backups but manually using the free SQL...

View Article

Image may be NSFW.
Clik here to view.

Reparing Suspect SQL Database

I’m not a DBA but I have a real life experience repairing a suspect databases twice, I guess I can say that I am unlucky at that time as I was presented in a tough situation where I am still in the...

View Article


Image may be NSFW.
Clik here to view.

Making the best use out of Mainenance Plans on SQL Server

This article is about making the best use of the SQL Server Maintenance Plans, I am saying that because if you really want to do best practice maintenance on a SQL Server is that you should do it on a...

View Article

Image may be NSFW.
Clik here to view.

Execute Stored Procedures in Parallel

After my post here, It seems that everything is working fine but I need performance out of it an my last resort is to Execute Stored Procedures in Parallel so I can run multiple instances in one run....

View Article


Image may be NSFW.
Clik here to view.

Mirroring a SQL Server Database is not as hard as you think

Mirroring a database is not really a hard task to do, you just need this easy and simple 11 steps to start mirrored SQL Server.  Doing it will not just improve you disaster recovery capabilities on...

View Article

Image may be NSFW.
Clik here to view.

Median Calculation using TSQL (no cursors)

Before we start lets define what a Median is first, in laymans term the Median is the “middle number” in a sorted list of numbers. So in a sample like 3, 4, 5, 8, 10, 11, 100 The middle number which is...

View Article


Image may be NSFW.
Clik here to view.

Create Alerts for SQL Server Mirroring Failovers

You might have SQL Mirroring enabled in your Enterprise but might not have alerting enabled or you don’t know how to enable it.  If you want to enable that functionality just follow this 2 easy steps....

View Article

Image may be NSFW.
Clik here to view.

Singularize Function in TSQL

Today I was trying to make a code generator for one of our projects to make our lives easier, basically I was trying to list all objects on our SQL Server database and Print a C# code output which I...

View Article

Image may be NSFW.
Clik here to view.

Simple TSQL and C# Entity Generator for S#arp Architecture

Recently we started a big project which uses S#arp Architecture and for those who does not know what it is you can go to the site (http://www.sharparchitecture.net/) and have a read, but in a gist it...

View Article
Browsing all 41 articles
Browse latest View live




Latest Images