Viewing 15 posts - 7,321 through 7,335 (of 8,753 total)
Further on Chris's post, can you provide DDL (create table script) and some sample data?
😎
August 27, 2014 at 1:33 am
Further on my previous snip, here is a more complete code block with some sample data
😎
USE tempdb;
GO
DECLARE @NUM_SAMPLES INT = 100;
DECLARE @SAMPLE_STR NVARCHAR(MAX) = N'declare @p? varchar(10) set @p?=NULL exec...
August 26, 2014 at 10:53 pm
Here is an alternative solution using CHARINDEX
😎
Declare @BaseTable table (PKCol int, Column2Search varchar(2000))
Insert into @BaseTable (PKCol, Column2Search)
Select 1001, 'apple,orange,grapefruit'
UNION ALL
Select 1002, 'grapefruit,coconut'
UNION ALL
Select 1003, 'toast'
UNION ALL
Select...
August 26, 2014 at 9:53 pm
er.mayankshukla (8/26/2014)
I have defined a Nvarchar column of 30 bytes
Lets say
create table demo (name nvarchar(30))
But when I see the length of this column by selecting table and pressing...
August 26, 2014 at 9:58 am
GilaMonster (8/26/2014)
Eirikur Eiriksson (8/26/2014)
... 10 byte row property bitmat etc..
?????
You mean the row header, column and data size entries and offset bytes (which add up to 10 bytes in...
August 26, 2014 at 8:13 am
Further on Gail's answer, the sp_help simply queries the sys.all_columns returning the max_length as "Length", no information is given on the overhead bytes used. All columns carry some overhead such...
August 26, 2014 at 7:39 am
simon_s (8/26/2014)
sorry not familiar with the phrase "go down to the basement" ?
"Go down to the basement / cellar" was just an attempt to mitigate the risk of you throwing...
August 26, 2014 at 4:42 am
simon_s (8/26/2014)
An...
August 26, 2014 at 4:11 am
Quick thought, compare the results of these two queries
😎
;WITH DISTINCT_KIDS3 AS
(
SELECT DISTINCT
load_KIDS3_clients.idClientKey ,
load_KIDS3_clients.firstName ,
load_KIDS3_clients.lastName...
August 26, 2014 at 2:11 am
Similar discussion on this thread
😎
August 26, 2014 at 1:45 am
arooj300 (8/26/2014)
August 26, 2014 at 1:31 am
Mr.Sahand (8/25/2014)
I need to run a VBA function in an MS Access database in SSIS.
I put a Execute SQL Task in control flow and link it to the...
August 26, 2014 at 1:27 am
Quick thought, is it possible that the initial code was double pasted? Below is what I would guess it should be.
😎
SELECT
tB.ORDER_DATE
,tB.COMMIT_NO
...
August 26, 2014 at 12:43 am
tony28 (8/25/2014)
Eirikur Eiriksson (8/25/2014)
tony28 (8/25/2014)
August 25, 2014 at 11:50 pm
tony28 (8/25/2014)
August 25, 2014 at 10:16 pm
Viewing 15 posts - 7,321 through 7,335 (of 8,753 total)