Eli Leiba
  

Eli Leiba is a senior application DBA at Israel Electric Company, a teacher at Microsoft CTEC, and a senior database consultant for 2Cher IT Professionals Co. With 14 years of experience, he is certified in Oracle and SQL Server database administration and implementation and has a B.S. in Computer Science.
Email address: Eli.Leiba@2Cher.com

13 results found for Eli Leiba, displaying items 1 - 13

T-SQL Stored Procedure Creates Trace Tables from Trace Files

LoadTraceFileToTable loads the data from a trace file into a trace table so that you can easily sort and analyze that data.

SQL Server Magazine

T-SQL UDF Quickly Determines How Often a Substring Appears

To determine the number of occurrences of a substring within a string, a user-defined function (UDF) performs a simple arithmetic calculation.

SQL Server Magazine

Protect Your T-SQL Objects from Deletion

The sp_markAllMasterDBasSystem stored procedure can help protect the T-SQL objects you've created by marking them as system objects.

SQL Server Magazine

Procedure Helps Pinpoint Problematic Processes This article is only available to registered users.  Sign up now and get instant access!

Here's a stored procedure that displays all the T-SQL statements currently being executed along with the IDs of the processes running those statements.

SQL Server Magazine

Easily Find Rows That Violate Constraints

The showViolatingRows procedure automates the tedious task of finding rows that violate check and foreign-key constraints.

SQL Server Magazine

Summarize All the Constraints for a Table This article is only available to registered users.  Sign up now and get instant access!

The sp_showConstraints stored procedure is an alternative to using sp_helpconstraint when you need to find all the constraints for a table.

SQL Server Magazine

Optimize the Size of Your Indexed Integer Columns This article is only available to subscribers.  Sign up now and get instant access!

Together, the suggestIntType and scanIntIndex procedures search for indexed integer columns in a database and determine whether the optimal data type is used for those columns.

Windows Scripting Solutions

Rename Files or Directories On the Fly in T-SQL Scripts

SQL Server Magazine

Stored Procedures Work in Concert to Import and Export Data This article is only available to subscribers.  Sign up now and get instant access!

Here’s a simple yet generic solution for exporting or importing data. This solution consists of two stored procedures: BCPObject and ExpOrImpDB.

Windows Scripting Solutions

Quickly Retrieve a List of Available Media Resources

The sp_GetAllSQLMediaTypes stored procedure lists the names of all the available media and their types on a SQL Server machine.

SQL Server Magazine

Extend the sp_spaceUsed Procedure’s Usefulness in Obtaining Transaction Log Statistics

By compiling sp_LogSpace in a master database and calling it from an updated version of sp_SpaceUsed, you can extend the ability of sp_SpaceUsed to obtain transaction log statistics.

SQL Server Magazine

Don’t Let Resource-Intensive Sessions Consume All Your Resources and Time This article is only available to subscribers.  Sign up now and get instant access!

The getMaxResourceConsumeSessions stored procedure lets you quickly identify the sessions that are consuming most of a SQL Server machine's resources.

Windows Scripting Solutions

Dynamically Obtain a SQL Server’s IP Address in T-SQL Code

The getSQL_IPaddr.sql procedure uses the Ipconfig utility to dynamically find the IP address of a server running Microsoft SQL Server.

SQL Server Magazine

Add these Headlines to your Website