Viewing 15 posts - 3,061 through 3,075 (of 5,590 total)
Yes. Note that you can use a CTE with an INSERT, UPDATE or DELETE statement in addition to the SELECT statement.
September 30, 2010 at 3:28 pm
R2 has a mode (in BIDS) where you can select which version you're developing for. If you use the "R1" version, then sure.
Edit: added (in BIDS)
September 30, 2010 at 2:55 pm
FWIW, I tend to think of a CTE as a pre-defined sub-query. (Of course, a recursive CTE is slightly different.)
September 30, 2010 at 2:50 pm
Steve Jones - Editor (9/30/2010)
Mr. Celko does enjoy stretching people's patience and tolerance.
And that, Steve, is quite the understatement!
September 30, 2010 at 1:53 pm
Attopeu (9/30/2010)
I need new solution not to have temp table to store MAX identity. Here is current business logic: we have a job execute a procedure and if there...
September 30, 2010 at 10:31 am
Steve Jones - Editor (9/30/2010)
You can pay at the door. I'll have Grant standing there intimidating people into giving up $30 or a ticket :-P:w00t:
If he's in his kilt you...
September 30, 2010 at 9:57 am
FYI:
I was able to manually uninstall the instance from the cluster using the directions at http://www.sqlservercentral.com/blogs/pearlknows/archive/2010/07/26/uninstall-a-sql-server-cluster-when-all-else-fails.aspx?CommentPosted=true#commentmessage as a guideline - modified to only delete registry keys and binary files that...
September 30, 2010 at 9:53 am
Tom.Thomson (9/30/2010)
Jeff Moden (9/29/2010)
Heh... nah... there are other places other than Alaska where such a thing occurs. 😉
East side of Michigan - anywhere between Detroit and Port Huron? That's...
September 30, 2010 at 7:56 am
Still trying to uninstall. No further progress after running overnight.
I have noticed that in the registry (HKLM\Software\Microsoft\Microsoft SQL Server) that there are keys for MSSQL10.NamedInstance and MSRS10.NamedInstance for the instance...
September 30, 2010 at 7:49 am
KMPSSS (9/30/2010)
Thanx friend. i got correct result. If possible give me result for cross boundary year.It's very useful for future
How's this?
Declare @FrDate datetime,@ToDate datetime
Set @FrDate ='2010-09-28 17:38:58.577'
Set @ToDate ='2011-02-01...
September 30, 2010 at 7:10 am
This is working for the sample data you provided. As previously mentioned, it won't work if you cross year boundaries.
Declare @FrDate datetime,@ToDate datetime
Set @FrDate ='2010-05-31 17:38:58.577'
Set @ToDate ='2010-09-01 17:38:58.577'
;WITH...
September 30, 2010 at 6:52 am
Are you ever going to have something like:
Declare @FrDate datetime,@ToDate datetime
Set @FrDate ='2010-09-01 17:38:58.577'
Set @ToDate ='2011-02-01 17:38:58.577'
Where the years are crossed?
If so, would you want?
1
2
9
10
11
12
September 30, 2010 at 6:45 am
touchmeknot (9/29/2010)
Shawn, This might sound silly. how do you paste the code like that, as in I see a separate box there 🙂 ?
When you're working in the editor, there...
September 29, 2010 at 4:55 pm
LutzM (9/29/2010)
Glad to help, Wayne 😀
Thanks Lutz.
The last few days, I've had issues trying to post to some threads... it just won't accept my code, but it will take it...
September 29, 2010 at 4:42 pm
The attached code works for me; however I'm having problems posting it.
Edit: since Lutz posted my code, I've deleted the attachment here. See the following post of Lutz' for what...
September 29, 2010 at 3:34 pm
Viewing 15 posts - 3,061 through 3,075 (of 5,590 total)