Viewing 15 posts - 22,021 through 22,035 (of 59,072 total)
muralikrishna2489 (1/5/2015)
There will be millions of records in "ChangesFunction_maintable. So will my database gets slow while using UNION ALL ?
Yes. It could get quite slow. I only...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2015 at 7:58 am
Here's one way to do it. UNION ALL treats dupes as equals so no need for the ISNULL thing. As usual, details are in the comments.
WITH
cteGetAllRows AS
( --===...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2015 at 12:55 am
Joy Smith San (1/4/2015)
I checked it further, found device_type = 7 and hence assume its the VSS backup updating backupset table in msdb database (Not sure...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2015 at 12:36 am
PRAMANA.DBA (1/2/2015)
How to create table without identity by using * into option.
ex: Select * Into Employee_History From Employee.
I don't want identity column in History table, But columns and datatypes should...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2015 at 12:26 am
It seems like two UNION ALLs would do the trick.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 5, 2015 at 12:19 am
And, yeah... there will be an article coming out on this. I have to make a couple of tweaks to handle different types of groupings.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 9:55 pm
Ok, here we go. I first had to make a couple of assumptions. which is why this code looks a little complicated.
1. 3 months isn't going to be...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 9:47 pm
Yakov Shlafman (12/19/2014)
Thanks. I agree I communicated multiple things with an assumption that my reader is a beginner. How I could do it better?
Highlight the key to the process by...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 7:55 pm
Still, enquiring minds want to know, what is the "YearMonth" column for?
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 7:49 pm
Eirikur Eiriksson (1/4/2015)
Jeff Moden (1/4/2015)
Eirikur Eiriksson (1/4/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 2:03 pm
For more information on how that works and an alternative along with some performance testing, please see the following article...
http://www.sqlservercentral.com/articles/T-SQL/63681/
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 12:01 pm
shashianireddy (1/3/2015)
a
Deleting an original post is a real quick way to lose friends. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 10:58 am
Lynn Pettis (1/3/2015)
Jeff Moden (1/3/2015)
http://www.sqlservercentral.com/Forums/Topic1648047-2799-1.aspx
Anyone have even a...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 10:54 am
Eirikur Eiriksson (1/4/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 10:50 am
asita (1/3/2015)
insert into #MyPhoneList values (123456789,'King@travel.com',null,'b.king@gmail.com',0,0,1,1,0,1)
insert into #MyPhoneList values (234567891,'drew@cocacola.com','drew@cocacola.com',null,1,1,1,1,0,1)
insert into #MyPhoneList values (345678912,'bob@chase.com',null,'kuya@gmail.com',1,0,1,1,0,1)
insert into #MyPhoneList values (456789123,null,'cmith@aix.com','bbc.king@gmail.com',1,1,1,1,1,1)
insert into #MyPhoneList values ...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2015 at 10:24 am
Viewing 15 posts - 22,021 through 22,035 (of 59,072 total)