- This is Event #3 for this Meetup.
- 450+ members; Meetup started in May 2014.
- New talk format: Lightning Talks
- 30 seconds to 5 minutes maximum.
- Any topic relating to Spark.
- Any skill or experience level--beginners welcome!
- Speakers: We want you!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- schema | |
--DROP TABLE dbo.common_Text; | |
--DROP TABLE dbo.common_LanguageType; | |
--DROP TABLE dbo.common_Comment; | |
CREATE TABLE dbo.common_Comment ( | |
CommentId BIGINT NOT NULL PRIMARY KEY | |
); | |
CREATE TABLE dbo.common_LanguageType ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- required SET options for indexed view | |
SET ANSI_NULLS ON; | |
SET ANSI_PADDING ON; | |
SET ANSI_WARNINGS ON; | |
SET CONCAT_NULL_YIELDS_NULL ON; | |
SET NUMERIC_ROUNDABORT OFF; | |
SET QUOTED_IDENTIFIER ON; | |
SET ARITHABORT ON; | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- The gist of it: | |
-- Use HASHBYTES('SHA1', @input); instead of CHECKSUM(@input); if you are interested | |
-- in using hashes to detect code changes. | |
-- oops! I deleted too many records | |
DECLARE @old_proc_definition VARCHAR(MAX) = ' | |
DELETE FROM dbo.transactions | |
WHERE txn_id < 10000000000000000; | |
'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Author: Nicholas Chammas | |
-- Turbine / WB Games | |
-- 2011/10/13 | |
-- Inspired by: http://vyaskn.tripod.com/sql_server_check_identity_columns.htm | |
-- Purpose: Find all IDENTITY columns on all databases on this instance | |
-- and show how much of their range they have exhausted. | |
-- | |
-- CAVEATS | |
-- | |
-- 1. Developed using SQL Server 2008 syntax. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET NOCOUNT ON; | |
USE [tempdb]; | |
CREATE TABLE a_farting_farthing ( | |
an_integer INT DEFAULT (1) | |
); | |
INSERT INTO a_farting_farthing | |
DEFAULT VALUES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Tested on SQL Server 2008 R2 | |
-- Isolation level is READ COMMITTED | |
-- | |
-- Session 1 | |
-- | |
CREATE TABLE dbo.parent ( | |
parent_id INT NOT NULL PRIMARY KEY | |
, value VARCHAR(50) NOT NULL | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET NOCOUNT ON; | |
USE [tempdb]; | |
GO | |
-- Try substituting GETDATE() for SYSUTCDATETIME() everywhere in this script | |
-- and you will get the same results. | |
CREATE TABLE a_table ( | |
an_integer INT DEFAULT (1) | |
, a_string CHAR(10) DEFAULT ('ohmigodwut') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Display the duration between timer start and stop. | |
# | |
# Usage: timer {start|stop} [format] | |
# | |
# Example: | |
# | |
# timer start | |
# <script_commands> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y java-1.7.0-openjdk-devel gcc gcc-c++ ant git | |
yum install -y wget tar unzip time | |
yum install -y python-devel | |
curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | python - | |
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python - | |
easy_install pip |
OlderNewer