Viewing 15 posts - 196 through 210 (of 229 total)
You're right. I may have jumped to conclusions about what the generic columns here represented.
October 31, 2013 at 4:27 pm
If you don't need it proceduralized, you can also use sp_helptext to quickly get that information.
ex.
exec MyDB.dbo.sp_helptext myView
exec MyDB.dbo.sp_helptext myProc
October 31, 2013 at 2:53 pm
I should point out that #NewThings is itself not normalized (Metric1 and Metric2 should really be distinct rows in a separate table). That said, you can unpivot this data to...
October 31, 2013 at 1:55 pm
What's the nature of the function you're trying to apply to the data? As Koen says, using functions against large sets of rows can have serious performance implications. If you...
October 31, 2013 at 1:42 pm
Nevermind, I found the answer to my own question. From BOL...
"When an option is not explicitly specified, the current setting is applied. For example, if a FILLFACTOR setting is not...
October 29, 2013 at 12:00 pm
Ah, that's right. All the non-clustered indexes would end up being re-built essentially twice; once after the drop, and once after the re-creation, rather than just once if you drop...
October 1, 2013 at 12:33 pm
Firstly, you actually dont need the "Use ?" at the start. sp_msforeachdb effectively assumes that as it iterates through the database.
Also, unless you actually need those strings exactly as you...
September 19, 2013 at 3:13 pm
Thanks guys, those look like good places to start. I'll check them out!
October 8, 2012 at 7:16 pm
No problem . Again, sorry if its sort of complex looking sql. I'm not much of a reporting guy, so Report Builder and SSRS are not my forte. If I...
April 15, 2012 at 4:12 pm
Hi Yvonne, I hope this is helpful. Unfortunately, I am very much a SQL coder, which may be a detriment in this scenario, given that you are not, but I've...
April 13, 2012 at 6:26 pm
Mac1986, are you trying to aggregate the rows or the columns?
i.e are you trying to aggregate...
4216,2|4215,2|4280,5|4282,3
4271,5|4094,3|4216,1|4215,1
4276,5|4216,2|4215,2|3964,2|4215,1
4271,5|3994,3|4216,1|4215,1|4215,1|4215,1
or
4216,2|4215,2|4280,5|4282,3
4271,5|4094,3|4216,1|4215,1
4276,5|4216,2|4215,2|3964,2|4215,1
4271,5|3994,3|4216,1|4215,1|4215,1|4215,1
April 13, 2012 at 3:37 pm
Thanks Sean,
I'm actually already familiar with that splitter. I'm just playing around with his data and seeing what I can do to help.
April 13, 2012 at 3:30 pm
You probably need a string splitter and an unpivot. let me see what I can come up with.
April 13, 2012 at 3:23 pm
To my dismay, I used to be an IT Recruiter before seeing the pearly white light of database development. If you happen to be going that route (i.e. through a...
April 13, 2012 at 2:46 pm
What you're describing is a union. If you are truly just looking for
ID,
FirstName,
EventType,
Event Location
then you can perform you union on just those. You don't need...
April 13, 2012 at 1:48 pm
Viewing 15 posts - 196 through 210 (of 229 total)