Click here to Skip to main content
16,008,010 members
Home / Discussions / Database
   

Database

 
AnswerRe: Selecting the top 1 item Pin
Blue_Boy17-Sep-08 21:33
Blue_Boy17-Sep-08 21:33 
GeneralRe: Selecting the top 1 item Pin
Christian Graus17-Sep-08 21:58
protectorChristian Graus17-Sep-08 21:58 
GeneralRe: Selecting the top 1 item Pin
Blue_Boy17-Sep-08 22:00
Blue_Boy17-Sep-08 22:00 
QuestionAn error occurs when an extra parameter is increased in application as well as stored procedure to the existing one Pin
sanjubaba17-Sep-08 20:20
sanjubaba17-Sep-08 20:20 
AnswerRe: An error occurs when an extra parameter is increased in application as well as stored procedure to the existing one Pin
Mycroft Holmes17-Sep-08 22:41
professionalMycroft Holmes17-Sep-08 22:41 
QuestionSSIS Packages Pin
geekfromindia17-Sep-08 13:42
geekfromindia17-Sep-08 13:42 
AnswerRe: SSIS Packages Pin
Mycroft Holmes18-Sep-08 2:47
professionalMycroft Holmes18-Sep-08 2:47 
GeneralRe: SSIS Packages Pin
geekfromindia19-Sep-08 5:18
geekfromindia19-Sep-08 5:18 
Questionsending sql info to (C#) application- advide needed Pin
nelsonpaixao17-Sep-08 13:24
nelsonpaixao17-Sep-08 13:24 
AnswerRe: sending sql info to (C#) application- advide needed Pin
Wendelius19-Sep-08 9:15
mentorWendelius19-Sep-08 9:15 
GeneralRe: sending sql info to (C#) application- advide needed Pin
nelsonpaixao21-Sep-08 15:47
nelsonpaixao21-Sep-08 15:47 
GeneralRe: sending sql info to (C#) application- advide needed Pin
Wendelius21-Sep-08 18:13
mentorWendelius21-Sep-08 18:13 
QuestionCreate recurring date in SQL statement Pin
Shane Leach17-Sep-08 11:34
Shane Leach17-Sep-08 11:34 
GeneralRe: Create recurring date in SQL statement Pin
nelsonpaixao17-Sep-08 12:04
nelsonpaixao17-Sep-08 12:04 
GeneralRe: Create recurring date in SQL statement Pin
Shane Leach18-Sep-08 3:29
Shane Leach18-Sep-08 3:29 
AnswerRe: Create recurring date in SQL statement Pin
RyanEK17-Sep-08 14:24
RyanEK17-Sep-08 14:24 
GeneralRe: Create recurring date in SQL statement Pin
Shane Leach18-Sep-08 3:27
Shane Leach18-Sep-08 3:27 
GeneralRe: Create recurring date in SQL statement Pin
RyanEK18-Sep-08 14:50
RyanEK18-Sep-08 14:50 
Questioncan someone help me to code add, edit, delete, search in mysql database using C#.. Pin
cutedrew17-Sep-08 9:59
cutedrew17-Sep-08 9:59 
GeneralRe: can someone help me to code add, edit, delete, search in mysql database using C#.. Pin
nelsonpaixao17-Sep-08 12:10
nelsonpaixao17-Sep-08 12:10 
QuestionSQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Steven J Jowett17-Sep-08 9:28
Steven J Jowett17-Sep-08 9:28 
I have a stored procedure as follows, which runs OK on SQL Server 2005.

CREATE PROCEDURE spGetChildAccounts 
	@ParentId Char(12)
AS
BEGIN
	SET NOCOUNT ON;
	WITH Subsidaries (ACCOUNTID,ParentID)
	AS
	(
		SELECT ACCOUNTID, ParentID FROM Accounts WHERE ParentID = @parentID
		UNION ALL
		SELECT Accounts.ACCOUNTID, Accounts.ParentID FROM Accounts
            INNER JOIN Subsidaries ON Accounts.ParentID = Subsidaries.ACCOUNTID
	)
	SELECT * FROM Accounts INNER JOIN Subsidaries ON Accounts.ACCOUNTID = Subsidaries.ACCOUNTID
END


The problem is that it has to run on SQL Server 2000 sp3 and when I try to create the procedure on the 2000 server it get an error "Incorrect syntax near the keyword WITH".

I am assuming the WITH statement is not supported in 2000 and would appreciate any help converting the above stored procedure to a vaild SQL Server 2000 format.

Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.

AnswerRe: SQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Blue_Boy17-Sep-08 9:45
Blue_Boy17-Sep-08 9:45 
GeneralRe: SQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Steven J Jowett17-Sep-08 10:03
Steven J Jowett17-Sep-08 10:03 
AnswerRe: SQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Mycroft Holmes17-Sep-08 20:15
professionalMycroft Holmes17-Sep-08 20:15 
AnswerRe: SQL Server 2000 sp3 and the WITH Clause in Stored Procedures Pin
Ashfield17-Sep-08 21:53
Ashfield17-Sep-08 21:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.