Click here to Skip to main content
16,004,927 members
Home / Discussions / Database
   

Database

 
QuestionHelp to Pivot the Following Table Pin
Vimalsoft(Pty) Ltd14-Jun-09 20:29
professionalVimalsoft(Pty) Ltd14-Jun-09 20:29 
AnswerRe: Help to Pivot the Following Table Pin
Mycroft Holmes14-Jun-09 21:18
professionalMycroft Holmes14-Jun-09 21:18 
QuestionBackup database using sql 2005 Express Edition. Pin
ram_panda0914-Jun-09 19:44
ram_panda0914-Jun-09 19:44 
AnswerRe: Backup database using sql 2005 Express Edition. Pin
Mycroft Holmes14-Jun-09 21:12
professionalMycroft Holmes14-Jun-09 21:12 
AnswerRe: Backup database using sql 2005 Express Edition. Pin
Aman786Singh15-Jun-09 1:05
Aman786Singh15-Jun-09 1:05 
AnswerRe: Backup database using sql 2005 Express Edition. Pin
Aman786Singh15-Jun-09 1:06
Aman786Singh15-Jun-09 1:06 
AnswerRe: Backup database using sql 2005 Express Edition. Pin
K030616-Jun-09 1:55
K030616-Jun-09 1:55 
QuestionUnicode Column Alias [modified] Pin
Mustafa Ismail Mustafa14-Jun-09 6:57
Mustafa Ismail Mustafa14-Jun-09 6:57 
This issue has been giving me some grief and maybe one of you guys can shed some light on how to solve it and why does it happen.

Look at the following:

Select [PatientID] as [رقم المريض] from EMR.Patient; 

(if you can't see the Arabic characters between the square brackets its OK Smile | :) )

This is a very straight forward statement and the column alias works perfectly fine.

Doing this:

DECLARE @SQL nvarchar(250);
SET @SQL='Select [PatientID] as [رقم المريض] from EMR.Patient';

EXEC sp_executesql @SQL;


Returns a column titled [??? ?????] instead of the unicode alias. I tried setting it as a string and that didn't work either.

Any clues?

TIA

[edit]
http://www.sommarskog.se/dynamic_sql.html#columnalias[^]

This is a solution, but it seems a bit complicated for something seemingly simple.

If the post was helpful, please vote!

Current activities:
Book: Devils by Fyodor Dostoyevsky
Project: Hospital Automation, final stage
Learning: Image analysis, LINQ

Now and forever, defiant to the end.
What is Multiple Sclerosis[^]?

modified on Sunday, June 14, 2009 1:22 PM

AnswerRe: Unicode Column Alias [modified] Pin
Mycroft Holmes14-Jun-09 15:13
professionalMycroft Holmes14-Jun-09 15:13 
GeneralRe: Unicode Column Alias Pin
Mustafa Ismail Mustafa14-Jun-09 23:41
Mustafa Ismail Mustafa14-Jun-09 23:41 
Questioni need help with oracle database! Pin
Eldad_kd14-Jun-09 6:17
Eldad_kd14-Jun-09 6:17 
AnswerRe: i need help with oracle database! Pin
David Mujica15-Jun-09 3:03
David Mujica15-Jun-09 3:03 
QuestionAuditing in Database!! Pin
Sr...Frank13-Jun-09 23:34
Sr...Frank13-Jun-09 23:34 
AnswerRe: Auditing in Database!! Pin
Mycroft Holmes14-Jun-09 15:16
professionalMycroft Holmes14-Jun-09 15:16 
GeneralRe: Auditing in Database!! Pin
Sr...Frank18-Jun-09 7:40
Sr...Frank18-Jun-09 7:40 
AnswerRe: Auditing in Database!! Pin
Niladri_Biswas17-Jun-09 20:51
Niladri_Biswas17-Jun-09 20:51 
GeneralRe: Auditing in Database!! Pin
Sr...Frank18-Jun-09 7:41
Sr...Frank18-Jun-09 7:41 
Question2 tables? Pin
benjamin yap13-Jun-09 7:16
benjamin yap13-Jun-09 7:16 
AnswerRe: 2 tables? Pin
Blue_Boy13-Jun-09 7:28
Blue_Boy13-Jun-09 7:28 
GeneralRe: 2 tables? Pin
benjamin yap13-Jun-09 7:36
benjamin yap13-Jun-09 7:36 
GeneralRe: 2 tables? Pin
Blue_Boy13-Jun-09 7:39
Blue_Boy13-Jun-09 7:39 
Generaldatabase creation Pin
malika mouzmine13-Jun-09 5:48
malika mouzmine13-Jun-09 5:48 
GeneralRe: database creation Pin
Henry Minute13-Jun-09 6:07
Henry Minute13-Jun-09 6:07 
GeneralRe: database creation Pin
Eddy Vluggen13-Jun-09 7:58
professionalEddy Vluggen13-Jun-09 7:58 
JokeRe: database creation Pin
Jerry Hammond14-Jun-09 4:12
Jerry Hammond14-Jun-09 4:12 

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.