Viewing 15 posts - 136 through 150 (of 901 total)
a Slight modification to use an inline Tally table and my own String for demos
--===== Simulate a passed parameter
DECLARE @Parameter VARCHAR(8000)
SET @Parameter = 'this is a very long string just...
December 8, 2014 at 6:38 am
I would say that the fact the script in the CTE runs quickly doesn't mean that it will do the same when inside a CTE, especially where you have scalar...
December 8, 2014 at 12:39 am
If you run this you can see the cause, all I've done is added an S column to show which query is causing the issue.
DECLARE
@MGR_NAME NVARCHAR(100)='Betts, Brian'
,@COUNTRY NVARCHAR(100)='US'
,@SEGMENT...
December 5, 2014 at 6:14 am
Create a job that uses variables stored in a database, to configure the package then, simply write a script that updates the necessary variables, to the required values, and execute...
December 5, 2014 at 2:29 am
Phil Parkin (12/4/2014)
Jason-299789 (12/4/2014)
to...
December 4, 2014 at 3:00 am
IN SQL server if you do a divide an Integer by an integer you get an integer, and a count will only ever produce an integer.
to get round this...
December 4, 2014 at 2:29 am
True, I was just demonstrating why people sometimes forget to declare the length of the VARCHAR in a declare statement, because they are used to using the CONVERT/CAST method without...
December 2, 2014 at 1:56 am
Its not as if its that difficult to create a system view in the model DB that gets replicated to all new databases that are created.
PS : Voted +1
December 2, 2014 at 1:47 am
Phil Parkin (12/2/2014)
Jason-299789 (12/2/2014)
When n is not specified in a data definition or variable declaration statement, the default length is 1. When...
December 2, 2014 at 1:34 am
MS don't make it easy for people from BOL
When n is not specified in a data definition or variable declaration statement, the default length is 1. When n is not...
December 2, 2014 at 1:05 am
GilaMonster (12/1/2014)
Jason-299789 (12/1/2014)
This wont work in 2000, so you would have put the CTE as a 2 Correlated sub queries.
Or maybe a temp table, since the Row_Number function doesn't exist...
December 1, 2014 at 8:18 am
Ok so if we assume that you are using SQL 2012 then you have the new Lead and LAG window functions
this calculates the difference from the previous row.
create table #temp_Octets...
December 1, 2014 at 8:01 am
I didn't read the op properly code posted below
December 1, 2014 at 7:50 am
aaron.reese (12/1/2014)
December 1, 2014 at 4:24 am
Koen Verbeeck (12/1/2014)
Jason-299789 (12/1/2014)
aaron.reese (11/27/2014)
Sorry to all for hijacking this thread, Koen, should be start a new one about BIML?
Wouldnt it be better to have an article or Stairway series...
December 1, 2014 at 3:24 am
Viewing 15 posts - 136 through 150 (of 901 total)