Viewing 15 posts - 2,371 through 2,385 (of 5,502 total)
What logic do you want to apply to define a month?
Would it be based on the number of full month between the two dates or based on a fixed number...
December 21, 2010 at 3:43 pm
Please post table def and (fake) sample data matching your expected result as described in the first link in my signature.
Some of us (including me) would like to test our...
December 21, 2010 at 2:49 pm
It seems like there are three options to consider: a lookup table, a (more or less) simple string concatenation or a combination of both.
If you write T-SQL code you should...
December 21, 2010 at 2:43 pm
Mistake #1: you're obviously using Oracle 😀
#2: assuming some logic implemented into the SQL systax Oracle is using, I'd get rid of all of the semicolons, since a semicolon should...
December 21, 2010 at 2:25 pm
Unfortunately, we don't have any table def or sample data to play with.
But based on the identical structure within each rec node I'd recommend to use a UNION statement to...
December 20, 2010 at 12:13 pm
Since you already have the objects used in a sproc you could query sys.sql_modules with PATINDEX() in a recursive CTE to find ho often it's referenced.
I honestly doubt you'll be...
December 19, 2010 at 3:33 pm
Instead of parsing the sproc, wouldn't one of the following object dependency functions be more efficient (introduced in SS2K8)?
sys.dm_sql_referenced_entities
sys.dm_sql_referencing_entities
sys.sql_expression_dependencies
December 19, 2010 at 2:46 pm
Gianluca Sartori (12/17/2010)
Paul White NZ (12/17/2010)
Gianluca Sartori (12/17/2010)
December 18, 2010 at 4:12 am
If you could provide a ready to use result set based on the query you have below, I think we can design the table on our side so you don't...
December 18, 2010 at 4:06 am
The reason is simple (more or less):
A new week will start on Sunday as per the standard setting of SQL Server (U.S. English).
Jan 1st 2028 is a Saturday. Jan 2nd...
December 18, 2010 at 3:46 am
Luke L (12/17/2010)
Jack Corbett (12/17/2010)
December 17, 2010 at 1:34 pm
Please read the first article in my signature on how to ask a question in this forum.
It'll show you how to post table def and sample data in a ready...
December 17, 2010 at 10:51 am
Why do you transfer all the data across the network twice? Just to set @inputcount = @@ROWCOUNT? It would be much more efficient to use a count(*) from OPENQUERY() to...
December 17, 2010 at 10:39 am
To summarize Tom's statement: "It depends!" 😀 (Tom, correct me, if I'm wrong)
December 16, 2010 at 4:52 pm
You run multiple queries against the same (namespaced) xml source.
Therefore, you'd need to declare the names pace for each and every query against that xml source. Right now it's just...
December 16, 2010 at 4:42 pm
Viewing 15 posts - 2,371 through 2,385 (of 5,502 total)