Viewing 15 posts - 8,296 through 8,310 (of 8,760 total)
David Burrows (5/11/2014)
CREATE TRIGGER trg_LastSaleDate ON dbo.Transheaders
AFTER INSERT, UPDATE
AS
IF UPDATE(TradingDate)
BEGIN
UPDATE c
SET c.ZLastDate = i.TradingDate
FROM inserted i
JOIN dbo.Customers c ON...
May 11, 2014 at 2:44 am
jeremy 64107 (5/11/2014)
I didn't write my script I had it provided to me.
I am new to Triggers, so that script really means nothing to me.
Are you able...
May 11, 2014 at 2:06 am
You might be slightly over complicating a simple thing, look through this example
😎
USE tempdb;
GO
/*
Sample Schema, Client and Transactions
*/
/* Drop the tables if they exist in the...
May 10, 2014 at 11:11 pm
Views are helpful but no a panacea, with or without index. Other options include filtered indexes, column store indexes, partitioning and compression to name few. And as with (almost :-D...
May 10, 2014 at 1:30 pm
jnsosnowski (5/10/2014)
can anybody help me with the problem:
when I tried to run package from SQL Server management studio I get the error:
the connection type "MSORA" specified for connection manager...
May 10, 2014 at 1:14 pm
Nilesh-788004 (5/10/2014)
I am using a Lookup and that Lookup table has...
May 10, 2014 at 1:11 pm
isuckatsql (5/10/2014)
I ran your sample query on my data and it took 284 ms vs my 0 ms using a SQL Indexed View.
Then you don't have to worry:w00t:
😎
May 10, 2014 at 1:01 pm
Here are two more queries, somewhat self explanatory, first one is
CATEGORY-TYPE-NAME-COLOUR-COUNT(COLOUR)
and the second is
CATEGORY-TYPE-NAME-COLOUR-SUBTYPE-COUNT(SUBTYPE)
With a small set of 2000000 records, these are returning in 0.1-0.2 sec on my mediocre...
May 10, 2014 at 12:13 pm
thomashohner (5/10/2014)
May 10, 2014 at 8:36 am
May 10, 2014 at 3:21 am
In my opinion it is not optimal to hard code the data hierarchy in this way. If an attribute is added, it would mean revisiting the code!
The window functions can...
May 10, 2014 at 3:15 am
David Burrows (5/10/2014)
For 2008 the list is actually in a binary file%AppData%\Microsoft\Microsoft SQL Server\100\Tools\Shell\SqlStudio.bin
Removing this file will clear the list BUT WILL ALSO REMOVE ALL OTHER SSMS SETTINGS
Thanks David for...
May 10, 2014 at 1:01 am
tieudu09 55544 (5/9/2014)
try thisHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
remove the key name MSSQL10.(the servername want to remove)
This has nothing to do with the Connection MRU (Most Recently Used), the registry keys for 2012/2014...
May 9, 2014 at 11:59 pm
This query is somewhat self explanatory and answers in most parts your question
😎
USE master;
GO
SELECT
*
FROM
(
SELECT
ROW_NUMBER() OVER
...
May 9, 2014 at 11:34 pm
Same in slightly different flavor
😎
USE tempdb;
GO
DECLARE @SAMPLE TABLE
(
PERSON VARCHAR(25) NOT NULL
,VAL_1 INT NOT NULL
,VAL_2 INT...
May 9, 2014 at 10:23 pm
Viewing 15 posts - 8,296 through 8,310 (of 8,760 total)