Click here to Skip to main content
15,913,685 members
Home / Discussions / Database
   

Database

 
GeneralRe: Constraint question Pin
i.j.russell28-Sep-09 10:55
i.j.russell28-Sep-09 10:55 
GeneralRe: Constraint question Pin
Abhishek Sur29-Sep-09 4:04
professionalAbhishek Sur29-Sep-09 4:04 
GeneralRe: Constraint question Pin
J4amieC29-Sep-09 6:00
J4amieC29-Sep-09 6:00 
AnswerRe: Constraint question Pin
David Skelly29-Sep-09 22:28
David Skelly29-Sep-09 22:28 
GeneralRe: Constraint question Pin
ToddHileHoffer30-Sep-09 2:34
ToddHileHoffer30-Sep-09 2:34 
Questionhierarchy Pin
mehrdadc4828-Sep-09 4:42
mehrdadc4828-Sep-09 4:42 
AnswerRe: hierarchy Pin
J4amieC28-Sep-09 5:36
J4amieC28-Sep-09 5:36 
AnswerRe: hierarchy Pin
i.j.russell28-Sep-09 10:56
i.j.russell28-Sep-09 10:56 
The following code uses the Employees table from Northwind.

WITH EmployeeStructure
AS
(
SELECT employeeid, reportsto, 0 as level
FROM Employees
WHERE reportsto is null
UNION ALL
SELECT e.employeeid, e.reportsto, level + 1
FROM Employees e
INNER JOIN EmployeeStructure es
ON es.employeeid = e.reportsto
)
SELECT *
FROM EmployeeStructure
WHERE EmployeeID NOT IN (SELECT reportsto FROM EmployeeStructure GROUP BY reportsto HAVING ReportsTo IS NOT NULL)
ORDER BY level ASC
QuestionXML Column in SQL Server 2005 Pin
Kartik Kumar28-Sep-09 0:02
Kartik Kumar28-Sep-09 0:02 
QuestionSSRS - Web Service vs URL access Pin
devvvy27-Sep-09 21:36
devvvy27-Sep-09 21:36 
AnswerRe: SSRS - Web Service vs URL access Pin
r a m e s h29-Sep-09 0:21
r a m e s h29-Sep-09 0:21 
GeneralRe: SSRS - Web Service vs URL access Pin
devvvy29-Sep-09 0:24
devvvy29-Sep-09 0:24 
QuestionNo error from SSMS but from applciation [modified] ------ Never mind, solved Pin
Mustafa Ismail Mustafa26-Sep-09 9:58
Mustafa Ismail Mustafa26-Sep-09 9:58 
Questionrun date query in nvarchar type, how ? Pin
E_Gold26-Sep-09 8:25
E_Gold26-Sep-09 8:25 
AnswerRe: run date query in nvarchar type, how ? Pin
Luc Pattyn26-Sep-09 10:10
sitebuilderLuc Pattyn26-Sep-09 10:10 
AnswerRe: run date query in nvarchar type, how ? Pin
Mycroft Holmes26-Sep-09 15:07
professionalMycroft Holmes26-Sep-09 15:07 
GeneralRe: run date query in nvarchar type, how ? Pin
Luc Pattyn26-Sep-09 16:44
sitebuilderLuc Pattyn26-Sep-09 16:44 
GeneralRe: run date query in nvarchar type, how ? Pin
Mycroft Holmes26-Sep-09 17:51
professionalMycroft Holmes26-Sep-09 17:51 
GeneralRe: run date query in nvarchar type, how ? Pin
Richard MacCutchan26-Sep-09 22:00
mveRichard MacCutchan26-Sep-09 22:00 
Questiondatagridview in tabcontrol! Pin
jeshra27925-Sep-09 18:31
jeshra27925-Sep-09 18:31 
AnswerRe: datagridview in tabcontrol! Pin
Mycroft Holmes26-Sep-09 15:12
professionalMycroft Holmes26-Sep-09 15:12 
QuestionTake a databse back up with LINQ ? Pin
Mohammad Dayyan25-Sep-09 15:58
Mohammad Dayyan25-Sep-09 15:58 
AnswerRe: Take a databse back up with LINQ ? Pin
Not Active25-Sep-09 17:19
mentorNot Active25-Sep-09 17:19 
GeneralRe: Take a databse back up with LINQ ? Pin
Mohammad Dayyan25-Sep-09 17:26
Mohammad Dayyan25-Sep-09 17:26 
GeneralRe: Take a databse back up with LINQ ? Pin
Not Active26-Sep-09 5:05
mentorNot Active26-Sep-09 5:05 

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.