Viewing 15 posts - 2,881 through 2,895 (of 6,486 total)
Ahh...I think the namespace is messing you up. try this on...
http://www.sqlservercentral.com/Forums/Topic483834-21-1.aspx#bm483865
June 16, 2008 at 12:26 pm
Brandie - you're going to need to run a "find/replace" on the < and > sign's. SSC is "eating" your XML snippet.
Replace them with < and > respectively.
June 16, 2008 at 12:21 pm
So what IS the data type of TimeDifference? When you said is was "in minutes" I was thinking you mean it was INT - is that not the case?
June 16, 2008 at 11:27 am
Steve Jones - Editor (6/16/2008)
So, time%60 should work, correct?
the modulo would work, yes. But in order to perform the division and end up with a numeric or decimal value,...
June 16, 2008 at 11:08 am
Gus' statement is missing a JOIN clause right before that table name. Not sure which one he had in mind, but it kind of looks like a CROSS JOIN...
June 16, 2008 at 9:28 am
Having done some amount of testing on this - while this scenario is certainly convenient in some scenarios, it has a tendency to perform on par with CSQ's, so it...
June 16, 2008 at 9:15 am
I can't help but think that you're "overthinking" the problem. There's nothing special about expressing a query that happens to have a many to many. Just join the...
June 16, 2008 at 7:34 am
Jeff - I will post my own script later. I kind of got busy yesterday and didn't get a chance to come back and finish the thought so to...
June 16, 2008 at 7:30 am
TheSQLGuru (6/16/2008)
Wilfred van Dijk (6/16/2008)
June 16, 2008 at 7:20 am
hmm...needle in the haystack time. The best I can offer up would be to start commenting sections out to isolate where the error might be. The second...
June 16, 2008 at 6:29 am
samir (6/16/2008)
June 16, 2008 at 6:24 am
Here's the CLR stored proc:
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlTypes
Imports Microsoft.SqlServer.Server
Partial Public Class StoredProcedures
<Microsoft.SqlServer.Server.SqlProcedure()> _
Public Shared Sub CLRCursorSP(ByRef Total As SqlMoney)
...
June 16, 2008 at 6:14 am
As requested - here's the CLR code I used. First the function:
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlTypes
Imports Microsoft.SqlServer.Server
Partial Public Class UserDefinedFunctions
<Microsoft.SqlServer.Server.SqlFunction(DataAccess:=DataAccessKind.Read, IsDeterministic:=True, IsPrecise:=True)> _
...
June 16, 2008 at 6:13 am
Jeff Moden (6/15/2008)
What's wrong with a good ol' concatenation function that works in 2k and 2k5?
Absolutely nothing. The two solutions are a bit of a toss-up from what I...
June 15, 2008 at 2:01 pm
Viewing 15 posts - 2,881 through 2,895 (of 6,486 total)