Viewing 15 posts - 4,681 through 4,695 (of 26,490 total)
SQLRNNR (8/12/2015)
Let's keep this friendly.Let's not antagonize.
Easier said than done when we get hammered for not providing the answer the OP expected when we did answer the question.
August 12, 2015 at 10:59 am
mar.ko (8/12/2015)
There are two:
1) ISNULL(@ColDefaultVal,'-')
That variable was the one preventing the PRINT from executing.
2) RAISERROR ('ColDflt=%s',0,1,@ColDefaultVal);
This is even better as it indicates...
August 12, 2015 at 10:12 am
pietlinden (8/11/2015)
This is one option:
insert into table_2 (col1,col2,col3)
select DISTINCT col1,col2,col3
from table_1 t1
where not exists...
August 11, 2015 at 4:01 pm
Libby (8/11/2015)
August 11, 2015 at 3:57 pm
Alvin Ramard (8/11/2015)
WayneS (8/11/2015)
Lynn Pettis (8/11/2015)
What an attitude.Duly smacked
It's actually the last variable, that's NULL. 😀
I think we scared him off.
August 11, 2015 at 3:50 pm
Give this a try.
select distinct
mt.field1,
ca.field3
from
dbo.MyTable mt
cross apply (select stuff((select ',' + mt1.field2
...
August 11, 2015 at 3:48 pm
Suggestion, post the DDL for the tables, sample data for the tables, expected results based on the sample data provided.
August 11, 2015 at 3:41 pm
mar.ko (8/11/2015)
BEGIN
FETCH NEXT FROM C_tables INTO
@ColName
,@ColOrdPosit
,@TabSchema
,@TabName
,@ColDataType
,@ColDefaultVal
;
PRINT @ColName + ' ' +STR(@ColOrdPosit) + ' ' +@TabSchema + ' ' +@TabName + ' ' + @ColDataType +...
August 11, 2015 at 3:11 pm
Ed Wagner (8/11/2015)
Lynn Pettis (8/11/2015)
Ed Wagner (8/11/2015)
Alvin Ramard (8/11/2015)
Ed Wagner (8/11/2015)
Sean Lange (8/11/2015)
Ed Wagner (8/11/2015)
Here's a...
August 11, 2015 at 2:13 pm
Grant Fritchey (8/11/2015)
Lynn Pettis (8/11/2015)
Can't place the movie or show that came from, but love the editing!Big Trouble in Little China.
That is actually what I suspected but wasn't sure.
August 11, 2015 at 1:39 pm
SQLRNNR (8/11/2015)
Jeff Moden (8/11/2015)
Even better is when they use NVARCHAR(256). That was my first experience with blowing a pork chop bone out my nose.
Can't place the movie or show...
August 11, 2015 at 12:08 pm
Ed Wagner (8/11/2015)
Alvin Ramard (8/11/2015)
Ed Wagner (8/11/2015)
Sean Lange (8/11/2015)
Ed Wagner (8/11/2015)
Here's a quote I don't think...
August 11, 2015 at 12:07 pm
Grant Fritchey (8/11/2015)
SQLRNNR (8/11/2015)
Grant Fritchey (8/11/2015)
Sean Lange (8/11/2015)
August 11, 2015 at 11:58 am
SQLRNNR (8/11/2015)
Ed Wagner (8/11/2015)
Sean Lange (8/11/2015)
Grant Fritchey (8/11/2015)
Sean Lange (8/11/2015)
August 11, 2015 at 10:27 am
Viewing 15 posts - 4,681 through 4,695 (of 26,490 total)