Click here to Skip to main content
15,888,579 members
Home / Discussions / Database
   

Database

 
QuestionCertifcate in SQL Server 2005................ Pin
Isaac Gordon21-Oct-08 0:43
Isaac Gordon21-Oct-08 0:43 
AnswerRe: Certifcate in SQL Server 2005................ Pin
Wendelius21-Oct-08 7:27
mentorWendelius21-Oct-08 7:27 
Questionconnection string to sql server 2005 database Pin
Dbase20-Oct-08 20:11
Dbase20-Oct-08 20:11 
AnswerRe: connection string to sql server 2005 database Pin
Giorgi Dalakishvili20-Oct-08 20:23
mentorGiorgi Dalakishvili20-Oct-08 20:23 
GeneralRe: connection string to sql server 2005 database Pin
Jamie Nordmeyer21-Oct-08 2:53
Jamie Nordmeyer21-Oct-08 2:53 
Questionspecifying the path to a file on another computer on the network using vb.net Pin
Dbase20-Oct-08 19:59
Dbase20-Oct-08 19:59 
AnswerRe: specifying the path to a file on another computer on the network using vb.net Pin
Ashfield20-Oct-08 21:14
Ashfield20-Oct-08 21:14 
QuestionSQL Server and XML [modified] Pin
Jamie Nordmeyer20-Oct-08 9:03
Jamie Nordmeyer20-Oct-08 9:03 
Maybe it's just me, but I can't stand how Microsoft implemented XML in SQL Server, syntax wise, I mean, when it comes to selecting table data to XML. I always thought something like this made much more sense:

Select
	Convert(xml, '<?xml version="1.0" encoding="utf-8" ?>
<Employees>
	#foreach emp in emp begin#
	<Employee id="emp.EmployeeID#">
		<Manager id="#emp.BossID#">#emp.BossName#</Manager>
		<Addresses>
		#foreach addr in emp.Address1 begin#
			<Address id="#addr.AddressID#">#addr.Address1 + " " + addr.City + ", " + addr.State + " " addr.ZipCode#</Address>
		#end#
		</Addresses>
	</Employee>
	#end#
</Employees>
	') As EmployeeDoc
From
(
	Select
		emp.ID			As EmployeeID
		,emp.Name		As EmployeeName
		,boss.ID		As BossID
		,boss.Name		As BossName
		,addr.ID		As AddressID
		,addr.Address1
		,addr.City
		,addr.State
		,addr.ZipCode
	From
		Employees emp
		Left Join Employees boss
			On emp.ManagerID = emp.ID
		Inner Join EmployeeAddresses empaddr
			On emp.ID = empaddr.EmployeeID
		Inner Join Addresses addr
			On empaddr.AddressID = addr.ID
	Where
		emp.TerminationDate Is Null
) tbl;


I'm still working on learning the current syntax, so maybe this is a bit of a soapbox, but I feel better now anyways. Smile | :)

Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA

modified on Monday, October 20, 2008 3:32 PM

QuestionCreating database design Pin
vithiya raj20-Oct-08 6:15
vithiya raj20-Oct-08 6:15 
AnswerRe: Creating database design Pin
Wendelius20-Oct-08 7:09
mentorWendelius20-Oct-08 7:09 
QuestionSaving images into sql server using vb.net Pin
Dbase20-Oct-08 1:47
Dbase20-Oct-08 1:47 
AnswerRe: Saving images into sql server using vb.net Pin
That's Aragon20-Oct-08 2:04
That's Aragon20-Oct-08 2:04 
QuestionDatabase approach Pin
Mogaambo19-Oct-08 23:47
Mogaambo19-Oct-08 23:47 
AnswerRe: Database approach Pin
Ashfield20-Oct-08 1:15
Ashfield20-Oct-08 1:15 
GeneralRe: Database approach Pin
Mogaambo20-Oct-08 1:41
Mogaambo20-Oct-08 1:41 
GeneralRe: Database approach Pin
N a v a n e e t h20-Oct-08 1:48
N a v a n e e t h20-Oct-08 1:48 
GeneralRe: Database approach Pin
Ashfield20-Oct-08 3:07
Ashfield20-Oct-08 3:07 
QuestionImport database from local system to server system Pin
pavanip19-Oct-08 19:51
pavanip19-Oct-08 19:51 
AnswerRe: Import database from local system to server system Pin
Mycroft Holmes19-Oct-08 22:02
professionalMycroft Holmes19-Oct-08 22:02 
Questionhow to retrieve UTF-8 data from SQL Server 2005 with asp.Net 2.0 Pin
Member 462760918-Oct-08 6:49
Member 462760918-Oct-08 6:49 
AnswerRe: how to retrieve UTF-8 data from SQL Server 2005 with asp.Net 2.0 Pin
Rob Graham18-Oct-08 7:03
Rob Graham18-Oct-08 7:03 
AnswerRe: how to retrieve UTF-8 data from SQL Server 2005 with asp.Net 2.0 Pin
Wendelius18-Oct-08 7:09
mentorWendelius18-Oct-08 7:09 
AnswerRe: how to retrieve UTF-8 data from SQL Server 2005 with asp.Net 2.0 Pin
N a v a n e e t h20-Oct-08 1:50
N a v a n e e t h20-Oct-08 1:50 
QuestionODBC and SQL Pin
ffowler17-Oct-08 10:47
ffowler17-Oct-08 10:47 
AnswerRe: ODBC and SQL Pin
Mycroft Holmes17-Oct-08 23:04
professionalMycroft Holmes17-Oct-08 23:04 

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.