Viewing 15 posts - 5,956 through 5,970 (of 7,636 total)
You probably want to use a substitution table,
Like this:
--====== Create a substitution table:
Create Table #SSNSubs(
SSN int,
Subs int,
CONSTRAINT PK_SSNSubs_1
PRIMARY KEY CLUSTERED (SSN))
GO
--====== Get...
August 12, 2008 at 10:20 am
OK, I think I know what this one is...
Try this:
Select distinct CAST(TextCol as Varchar(MAX))
August 12, 2008 at 9:50 am
Can you provide us with an example so that we can see what work-arounds might be applicable?
August 12, 2008 at 9:48 am
Oops, almost forgot: Dynamic execution also provides Turing-completeness.
August 12, 2008 at 9:36 am
magarity kerns (8/12/2008)
gserdijn (8/12/2008)
But I'd like to add GOTO to the list of Mr. Simmons. SQL Server 2000 only...
Whoa there! SQL would not be Turing complete without GOTO -...
August 12, 2008 at 9:34 am
Wow. This obtuse defense of cursors and RBAR has more hand-waving than a Michael Jackson concert. Practically every other post here has statements to the the effect that...
August 12, 2008 at 9:22 am
GSquared (8/11/2008)
Barry, when I said, "your" I meant Milu's. He miscopied yours.
Yeah, I knew that Gus. Sorry if it looked like I was responding to you, I think...
August 11, 2008 at 2:48 pm
What does profiler say about the Insert code?
August 11, 2008 at 12:42 pm
Milu (8/11/2008)
Create View vwRecursiveAW AS
WITH DirectReports(ManagerID, EmployeeID, EmployeeLevel) AS
(
SELECT ManagerID, EmployeeID, 0 AS EmployeeLevel
FROM AdventureWorks.HumanResources.Employee
WHERE ManagerID...
August 11, 2008 at 11:24 am
Jack Corbett (8/11/2008)
August 11, 2008 at 11:07 am
You can pretty much take any CTE example out of BOL (Books On-Line) and just put a "CREATE VIEW..." in front of it.
Here is a recursive example:
Create View vwRecursiveAW AS
WITH...
August 11, 2008 at 10:50 am
Milu (8/11/2008)
with abc(a,b)as
(select * from temp where tid in (select tid from abc))
is this possible....????
Not like that, no. A recursive CTE has to follow a format that has a...
August 11, 2008 at 10:44 am
chandima_panditha (8/11/2008)
August 11, 2008 at 9:23 am
Maybe it would be easier for you to list all of the characters that are acceptable?
August 11, 2008 at 6:48 am
Viewing 15 posts - 5,956 through 5,970 (of 7,636 total)