Viewing 15 posts - 6,001 through 6,015 (of 8,761 total)
spaghettidba (3/21/2015)
TomThomson (3/20/2015)
spaghettidba (3/19/2015)
March 21, 2015 at 1:50 pm
Just for fun here are two alternative methods, a single table scan solution without recursion and a dual self-join
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_DATE_SAMPLE') IS NULL
BEGIN
CREATE TABLE dbo.TBL_DATE_SAMPLE
(
...
March 21, 2015 at 3:55 am
Have you tried to add the Code Snippet Manager Command to the Tools menu?
😎
Edit: typo
March 20, 2015 at 11:37 pm
wagdy_maher (3/20/2015)
I need help if any idea to keep data of last 6 month only and the oldest keep it as backup or anyany idea please ?
Thanks,
Quick thought, there is...
March 20, 2015 at 10:41 pm
A straight forward way of doing this is to calculate the running total on the first column, here is an example
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_SAMPLE_SHIFT') IS NOT NULL DROP TABLE...
March 20, 2015 at 9:43 pm
Hi and welcome to the forum.
Not certain what you are after but this is my first interpretation
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_SAMPLE_DATA') IS NOT NULL DROP TABLE dbo.TBL_SAMPLE_DATA;
CREATE TABLE dbo.TBL_SAMPLE_DATA
(
...
March 20, 2015 at 2:45 pm
patrickmcginnis59 10839 (3/19/2015)
Eirikur Eiriksson (3/17/2015)
add2700 (3/17/2015)
This issue has existed for a long time. SQL Server 2005 SP2 on server 2003.
First thought is that fixing the ageing OS/SQL Version should be...
March 19, 2015 at 9:13 am
crookj (3/19/2015)
Ed Wagner (3/19/2015)
Stuart Davies (3/19/2015)
Eirikur Eiriksson (3/18/2015)
djj (3/18/2015)
Ed Wagner (3/18/2015)
crookj (3/18/2015)
Revenant (3/18/2015)
whereisSQL? (3/18/2015)
Ed Wagner (3/18/2015)
djj (3/18/2015)
crookj (3/18/2015)
Ed Wagner (3/18/2015)
BWFC (3/18/2015)
djj (3/18/2015)
SQLRNNR (3/17/2015)
Ed Wagner (3/17/2015)
Eirikur Eiriksson (3/17/2015)
SQLRNNR (3/17/2015)
skiffFloating
Drift
wood
Stove
Pipe
Exhaust
flatulence
Stinks
Smells
Deodorizer
Fresh
Prince
Harry
Potter
Simmer
boil
Pasta
lasagna
Red
March 19, 2015 at 6:44 am
Quick thought, use either HASHBYTES or CHECKSUM
😎
WHERE CHECKSUM(@xml_old) = CHECKSUM(@xml_new)
March 19, 2015 at 3:42 am
djj (3/18/2015)
Ed Wagner (3/18/2015)
crookj (3/18/2015)
Revenant (3/18/2015)
whereisSQL? (3/18/2015)
Ed Wagner (3/18/2015)
djj (3/18/2015)
crookj (3/18/2015)
Ed Wagner (3/18/2015)
BWFC (3/18/2015)
djj (3/18/2015)
SQLRNNR (3/17/2015)
Ed Wagner (3/17/2015)
Eirikur Eiriksson (3/17/2015)
SQLRNNR (3/17/2015)
skiffFloating
Drift
wood
Stove
Pipe
Exhaust
flatulence
Stinks
Smells
Deodorizer
Fresh
Prince
Harry
Potter
Simmer
March 18, 2015 at 1:51 pm
Classifying any person as inferior based on gender, race, religion, health, physical condition or any other irrelevant aspects or properties is both appalling and unprofessional. Under no circumstances should such...
March 18, 2015 at 1:21 pm
Steve Jones - SSC Editor (3/18/2015)
For your discussion: https://medium.com/@sailorhg/coding-like-a-girl-595b90791cce
Quick thought, do not ever ever ever judge the book by it's cover
😎
March 18, 2015 at 12:06 pm
thomashohner (3/17/2015)
Wow that was fast!And its faster than my attempt at creating a temp table to build a start and stop time column.
Amazing 242,139 rows in under 30 seconds
Hence...
March 17, 2015 at 4:05 pm
March 17, 2015 at 4:02 pm
bpowers (3/17/2015)
March 17, 2015 at 4:00 pm
Viewing 15 posts - 6,001 through 6,015 (of 8,761 total)