Viewing 15 posts - 241 through 255 (of 323 total)
A few things to clarify...
1) It's the query that makes up the view that never completes. It churns along in SSMS. No records are returned while it's running, the timer...
Mike Scalise, PMP
https://www.michaelscalise.com
October 5, 2012 at 12:26 pm
sunilk, yes -- the solution I used was the one opc suggested. It did exactly what I was looking for. I would use that.
Mike Scalise, PMP
https://www.michaelscalise.com
May 30, 2012 at 6:36 am
Sean Lange (4/10/2012)
create table #Address
(
id int,
addr1 varchar(25),
addr2 varchar(25),
addr3 varchar(25)
)
insert #Address
select 1, '123', NULL, 'Main St.'
union all select 2, NULL, NULL, NULL
union all select...
Mike Scalise, PMP
https://www.michaelscalise.com
April 10, 2012 at 9:39 am
opc.three (4/10/2012)
SQLKnowItAll (4/10/2012)
The other option is to do this in separate queries starting with checking col 3 and moving data left. Then column 2.
That's the ticket, but only one...
Mike Scalise, PMP
https://www.michaelscalise.com
April 10, 2012 at 9:30 am
This will probably end up being a regular operation.
Mike Scalise, PMP
https://www.michaelscalise.com
April 10, 2012 at 9:04 am
Yes, that's my ultimate goal. I'm just trying to think of ways I can accomplish that. For example, I could probably use a combination of ISNULL() with concatenation with a...
Mike Scalise, PMP
https://www.michaelscalise.com
April 10, 2012 at 8:59 am
It's not that I mind using three case statements. It's that I don't think they'll be that simple. How about with concatenation?
Mike Scalise, PMP
https://www.michaelscalise.com
April 10, 2012 at 8:50 am
Thanks, guys.
@GSquared -- yes, that's exactly what I was talking about, and I think the DB name "Common" is a good way to represent all of that information.
@steve-2 -- you...
Mike Scalise, PMP
https://www.michaelscalise.com
February 27, 2012 at 9:32 am
Nevermind, I think I was thinking of IS_MEMBER.
Thanks anyway,
Mike
Mike Scalise, PMP
https://www.michaelscalise.com
January 10, 2012 at 2:03 pm
Thanks guys, very helpful! I have one more question. Is there any way make it so that if there's a remainder, it's at the beginning instead of at the end?
For...
Mike Scalise, PMP
https://www.michaelscalise.com
December 21, 2011 at 9:45 am
Jeff Moden (12/6/2011)
Do you have any users on your server, other than "SA", that absolutely require "SA" privs for anything else other than xp_CmdShell usage?
No, I do not.
-Mike
Mike Scalise, PMP
https://www.michaelscalise.com
December 7, 2011 at 7:46 am
Under which user context would the CLR function be run?
Mike Scalise, PMP
https://www.michaelscalise.com
December 6, 2011 at 11:13 am
As far as I know, you only have two options:
1) Create a new table with the correct column collations, load the data from the original table into it, and replace...
Mike Scalise, PMP
https://www.michaelscalise.com
November 23, 2011 at 8:48 am
wizard_froto (11/14/2011)
mytable
State City Sales Qty
CA ...
Mike Scalise, PMP
https://www.michaelscalise.com
November 15, 2011 at 8:58 am
Can you provide an example?
Mike Scalise, PMP
https://www.michaelscalise.com
November 14, 2011 at 7:33 pm
Viewing 15 posts - 241 through 255 (of 323 total)