Viewing 15 posts - 196 through 210 (of 1,228 total)
Hi Lynn, EXECUTE() AT allows you to run a batch of statements, including for instance running results into a temp table for further processing.
July 21, 2014 at 12:07 pm
Lynn Pettis (7/21/2014)
SELECT WorkOrder, TakTime
INTO
[plc].[TaktTime]
from openquery([SAPETL],'
WITH TaktValues ([Counter], NODE, PLNNR) AS
(
...
July 21, 2014 at 11:42 am
Lynn Pettis (7/21/2014)
DevNate (7/21/2014)
Lined server is connected via Symbols.
So you are saying the Linked Server is hidden by using a synonym? Well, not obvious from what you posted. ...
July 21, 2014 at 10:40 am
sgmunson (7/10/2014)
DECLARE @DATE AS datetime = '07/10/2014';
DECLARE @TIME_START_INT AS int = 820;
DECLARE @TSV AS varchar(4) = RIGHT('00' + CAST(@TIME_START_INT AS varchar(4)), 4);
DECLARE @TIME_END_INT AS int =...
July 10, 2014 at 12:16 pm
Lynn Pettis (5/13/2014)
May 13, 2014 at 10:23 am
sqldriver (5/9/2014)
I have a stored procedure hitting a 761969 row table and doing several table scans on it...
Properly written queries will cut down on those scans. Consider the query you...
May 11, 2014 at 5:10 am
Without sample data to test against...
Try this.
;WITH Updater AS (
SELECT
FTEHrsAVG,
NewFTEHrsAVG = AVG(CASE WHEN FlexVast = 'VAST' THEN FTEHrs ELSE NULL END)
...
May 6, 2014 at 11:47 am
Jeff Moden (4/22/2014)
ChrisM@Work (4/22/2014)
April 22, 2014 at 10:34 am
EasyBoy (4/16/2014)
As suggested by Scott i have made changes in existing index with filtered index (suggested by Lynn). And i am able to bring...
April 17, 2014 at 12:20 am
Back to basics. Change Exec(@Tsql) to PRINT @Tsql. Examine the output. Too many delimiters around your variables perhaps.
April 11, 2014 at 12:10 pm
The easiest and fastest way to process your table would be the "quirky update". See Jeff Moden's article here[/url]. Post back if you have any questions after reading the article.
April 5, 2014 at 6:41 am
tfendt (3/21/2014)
select DealerId, Tire, count(*) as RepairsOfThisTire,
max(cnt) as TotalRepairs,
...
March 23, 2014 at 6:50 am
tfendt (3/21/2014)
The Preagg query is just counting the total number or records per dealer in table 2....
It also counts the total number of repairs per dealer.
;WITH
Preagg AS (
SELECT DealerID,...
March 22, 2014 at 3:33 am
Viewing 15 posts - 196 through 210 (of 1,228 total)