Viewing 15 posts - 76 through 90 (of 334 total)
You two are freaky scary sometimes.. 😀
April 9, 2013 at 4:43 pm
Either that or bloat your tables with computed columns to represent the columns you want in your queries.
April 9, 2013 at 3:35 pm
I suppose you COULD write a server level trigger to append the SPID to the table extended properties. Not sure how useful that would be.
April 9, 2013 at 3:24 pm
Hey Jeff?
I read your article and I know it's been a loooooooooooooooong time but you know you could replace this:
--===== If the...
April 9, 2013 at 3:13 pm
Something like this might get you started?
DECLARE @d1 DATETIME,
@d2 DATETIME
SELECT @d1 = '04/01/2013',
...
April 9, 2013 at 10:30 am
You'll notice that Lowell prefaced it with Order By... this case structure goes in the Order By portion of your statement.
April 4, 2013 at 8:15 am
Could run a SQL task in SSIS to do it. Just write a script to do it and have SSIS run that script or scripts.
April 2, 2013 at 2:49 pm
I'm not sure I even understand the question.
April 1, 2013 at 2:46 pm
I concede that this task can be done with a set-based command that generates a list of commands.. lol.. now let's consider a moment.
Now consider your task may take...
April 1, 2013 at 11:10 am
That's a nice bit of code there, Sean.
While I've used dynamic sql to either a) build the list of commands I want to run, or b) run dynamic commands, I...
April 1, 2013 at 11:01 am
That's seems like an interesting task. What do you hope to gain from it?
April 1, 2013 at 10:55 am
AndrewSQLDBA (4/1/2013)
SQL Server does not Loop thru rows. SQL Server is Set Based.Please do not indicate that a database loops thru rows.
Andrew SQLDBA
🙂
Give me a set based statement that goes...
April 1, 2013 at 10:24 am
If you're looking specifically on how to use an identity column in a select into temporary table situation the following code should give you a leg up.
select IDENTITY (int,1,1)...
April 1, 2013 at 10:06 am
I imagine if you take each number and use it as a basis for outer apply you'd get a cartesian product with every number comination but it's going to get...
March 29, 2013 at 8:46 am
You mean something like this?
select empno
from
(
select 12 empno
union
select 34 empno
union
select 3 empno
union
select 78 empno
union
select...
March 29, 2013 at 8:10 am
Viewing 15 posts - 76 through 90 (of 334 total)