Click here to Skip to main content
15,923,006 members
Home / Discussions / Database
   

Database

 
AnswerRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
David Lario26-Jan-11 9:51
David Lario26-Jan-11 9:51 
QuestionMSSQL Triggers Pin
rajkumar.324-Jan-11 1:48
rajkumar.324-Jan-11 1:48 
AnswerRe: MSSQL Triggers Pin
David Mujica24-Jan-11 3:21
David Mujica24-Jan-11 3:21 
AnswerRe: MSSQL Triggers Pin
Mycroft Holmes24-Jan-11 15:38
professionalMycroft Holmes24-Jan-11 15:38 
QuestionDatabase design issue - Pl Sugget a better way Pin
meerabhuva24-Jan-11 1:26
meerabhuva24-Jan-11 1:26 
AnswerRe: Database design issue - Pl Sugget a better way Pin
Eddy Vluggen24-Jan-11 8:29
professionalEddy Vluggen24-Jan-11 8:29 
AnswerRe: Database design issue - Pl Sugget a better way Pin
PIEBALDconsult24-Jan-11 9:50
mvePIEBALDconsult24-Jan-11 9:50 
QuestionFOR XML AUTO and column name with space problem in SQL Server 2005 Pin
Tridip Bhattacharjee20-Jan-11 19:36
professionalTridip Bhattacharjee20-Jan-11 19:36 
Here is my SQL

select
ID as [Emp ID],
Name as [Employee name],
Sal as [Salary]
from Emp
FOR XML AUTO, ELEMENTS, ROOT('customers')

When I issue this SQL then unknown data is added in xml with my field name.

I got the xml like


<customers>
<Emp>
<Emp_x0020_ID>1</Emp_x0020_ID>
<Employee_x0020_name>bob</Employee_x0020_name>
<Salary>2020</Salary>
</Emp>
<Emp>
<Emp_x0020_ID>2</Emp_x0020_ID>
<Employee_x0020_name>keith</Employee_x0020_name>
<Salary>6500</Salary>
</Emp>
<Emp>
<Emp_x0020_ID>3</Emp_x0020_ID>
<Employee_x0020_name>markc</Employee_x0020_name>
<Salary>5400</Salary>
</Emp>
</customers>

It shows <Emp_x0020_ID> instead of this <Emp ID>
because I mention column alias with space like "Emp ID". how could
modify my SQL as a result space will not be ignore I mean my xml would

<customers>
<Emp>
<Emp ID>1</Emp ID>
<Employee name>bob</Employee name>
<Salary>2020</Salary>
</Emp>
</customers>


please help me......urgent.
look like
tbhattacharjee

AnswerRe: FOR XML AUTO and column name with space problem in SQL Server 2005 Pin
Richard MacCutchan20-Jan-11 21:44
mveRichard MacCutchan20-Jan-11 21:44 
Questiondynamic sql and store output in variable sql server2005 Pin
Tridip Bhattacharjee20-Jan-11 6:36
professionalTridip Bhattacharjee20-Jan-11 6:36 
AnswerRe: dynamic sql and store output in variable sql server2005 Pin
Corporal Agarn21-Jan-11 5:46
professionalCorporal Agarn21-Jan-11 5:46 
AnswerRe: dynamic sql and store output in variable sql server2005 Pin
Costica U22-Jan-11 8:00
Costica U22-Jan-11 8:00 
QuestionSQL and Joining in sql server2005 Pin
Tridip Bhattacharjee20-Jan-11 2:18
professionalTridip Bhattacharjee20-Jan-11 2:18 
AnswerRe: SQL and Joining in sql server2005 Pin
dasblinkenlight20-Jan-11 7:27
dasblinkenlight20-Jan-11 7:27 
GeneralRe: SQL and Joining in sql server2005 Pin
Mahendra Vishwakarma20-Jan-11 20:32
Mahendra Vishwakarma20-Jan-11 20:32 
AnswerRe: SQL and Joining in sql server2005 Pin
Pravin Patil, Mumbai20-Jan-11 21:37
Pravin Patil, Mumbai20-Jan-11 21:37 
QuestionHow to create an outlook task using SQL? Pin
obarahmeh20-Jan-11 2:04
obarahmeh20-Jan-11 2:04 
AnswerRe: How to create an outlook task using SQL? Pin
David Mujica20-Jan-11 3:26
David Mujica20-Jan-11 3:26 
GeneralRe: How to create an outlook task using SQL? Pin
obarahmeh20-Jan-11 6:15
obarahmeh20-Jan-11 6:15 
GeneralRe: How to create an outlook task using SQL? Pin
David Mujica20-Jan-11 7:59
David Mujica20-Jan-11 7:59 
QuestionReplacing ' in a string Pin
phimix19-Jan-11 21:52
phimix19-Jan-11 21:52 
AnswerRe: Replacing ' in a string Pin
Richard MacCutchan19-Jan-11 22:00
mveRichard MacCutchan19-Jan-11 22:00 
GeneralRe: Replacing ' in a string Pin
phimix19-Jan-11 22:21
phimix19-Jan-11 22:21 
AnswerRe: Replacing ' in a string Pin
Jörgen Andersson19-Jan-11 22:06
professionalJörgen Andersson19-Jan-11 22:06 
AnswerRe: Replacing ' in a string Pin
Luc Pattyn20-Jan-11 0:27
sitebuilderLuc Pattyn20-Jan-11 0:27 

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.