Showing posts with label displayed. Show all posts
Showing posts with label displayed. Show all posts

Friday, March 23, 2012

quert result is displayed from right to left. how can change it ba

hi,
when i open a table in the sql server managment consule the results are
displayed from right to left.
does anyone know how can i change this and go back to normal?
elad
Elad,shalom
This caused by installing SP3.
> does anyone know how can i change this and go back to normal?
Re-Install SQL Server
"Elad" <Elad@.discussions.microsoft.com> wrote in message
news:6E2560EB-20CD-4E18-A6E1-09264643357A@.microsoft.com...
> hi,
> when i open a table in the sql server managment consule the results are
> displayed from right to left.
> does anyone know how can i change this and go back to normal?
> elad
|||Uri Dimant (urid@.iscar.co.il) writes:
> "Elad" <Elad@.discussions.microsoft.com> wrote in message
> news:6E2560EB-20CD-4E18-A6E1-09264643357A@.microsoft.com...
> Elad,shalom
> This caused by installing SP3.
> Re-Install SQL Server
I assume that this is a problem that appears only in an environment
where text can appear right-to-left, for instance with Hebrew regional
settings. Since I don't use this, it's nothing that I can investigate
myself.
But I must say that I take exception of your recommendation that Elad should
reinstall SQL Server, and implicity that he should stay at SP2 or earlier.
Given that there is a serious security vulnerability exploited by the
Slammer worm, this appears to be very poor advice to me. Surely, there
must be some better way to address this issue?
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
|||Erland
As you see, I did not mention to stay on SP2. I have just answered his
question " how can i change this and go back to normal?". BTW ,it is
happening when you try to install SP3 on Enterprise Edition, so when you
access the data from your workstation (my is Personal Edition) i have no
problems. Did not try SP4 to fix the issue?
"Erland Sommarskog" <esquel@.sommarskog.se> wrote in message
news:Xns96C076EDCAB4EYazorman@.127.0.0.1...
> Uri Dimant (urid@.iscar.co.il) writes:
> I assume that this is a problem that appears only in an environment
> where text can appear right-to-left, for instance with Hebrew regional
> settings. Since I don't use this, it's nothing that I can investigate
> myself.
> But I must say that I take exception of your recommendation that Elad
> should
> reinstall SQL Server, and implicity that he should stay at SP2 or earlier.
> Given that there is a serious security vulnerability exploited by the
> Slammer worm, this appears to be very poor advice to me. Surely, there
> must be some better way to address this issue?
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techinf...2000/books.asp
>
|||See this
http://groups.google.com/group/micro...c 7d00691d5d1
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:us40em8qFHA.2592@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> Erland
> As you see, I did not mention to stay on SP2. I have just answered his
> question " how can i change this and go back to normal?". BTW ,it is
> happening when you try to install SP3 on Enterprise Edition, so when you
> access the data from your workstation (my is Personal Edition) i have no
> problems. Did not try SP4 to fix the issue?
>
>
> "Erland Sommarskog" <esquel@.sommarskog.se> wrote in message
> news:Xns96C076EDCAB4EYazorman@.127.0.0.1...
are[vbcol=seagreen]
earlier.
>

quert result is displayed from right to left. how can change it ba

hi,
when i open a table in the sql server managment consule the results are
displayed from right to left.
does anyone know how can i change this and go back to normal?
eladElad,shalom
This caused by installing SP3.
> does anyone know how can i change this and go back to normal?
Re-Install SQL Server
"Elad" <Elad@.discussions.microsoft.com> wrote in message
news:6E2560EB-20CD-4E18-A6E1-09264643357A@.microsoft.com...
> hi,
> when i open a table in the sql server managment consule the results are
> displayed from right to left.
> does anyone know how can i change this and go back to normal?
> elad|||Uri Dimant (urid@.iscar.co.il) writes:
> "Elad" <Elad@.discussions.microsoft.com> wrote in message
> news:6E2560EB-20CD-4E18-A6E1-09264643357A@.microsoft.com...
> Elad,shalom
> This caused by installing SP3.
> Re-Install SQL Server
I assume that this is a problem that appears only in an environment
where text can appear right-to-left, for instance with Hebrew regional
settings. Since I don't use this, it's nothing that I can investigate
myself.
But I must say that I take exception of your recommendation that Elad should
reinstall SQL Server, and implicity that he should stay at SP2 or earlier.
Given that there is a serious security vulnerability exploited by the
Slammer worm, this appears to be very poor advice to me. Surely, there
must be some better way to address this issue?
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||Erland
As you see, I did not mention to stay on SP2. I have just answered his
question " how can i change this and go back to normal?". BTW ,it is
happening when you try to install SP3 on Enterprise Edition, so when you
access the data from your workstation (my is Personal Edition) i have no
problems. Did not try SP4 to fix the issue?
"Erland Sommarskog" <esquel@.sommarskog.se> wrote in message
news:Xns96C076EDCAB4EYazorman@.127.0.0.1...
> Uri Dimant (urid@.iscar.co.il) writes:
> I assume that this is a problem that appears only in an environment
> where text can appear right-to-left, for instance with Hebrew regional
> settings. Since I don't use this, it's nothing that I can investigate
> myself.
> But I must say that I take exception of your recommendation that Elad
> should
> reinstall SQL Server, and implicity that he should stay at SP2 or earlier.
> Given that there is a serious security vulnerability exploited by the
> Slammer worm, this appears to be very poor advice to me. Surely, there
> must be some better way to address this issue?
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techin.../2000/books.asp
>|||See this
http://groups.google.com/group/micr...691d5d1

"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:us40em8qFHA.2592@.TK2MSFTNGP09.phx.gbl...
> Erland
> As you see, I did not mention to stay on SP2. I have just answered his
> question " how can i change this and go back to normal?". BTW ,it is
> happening when you try to install SP3 on Enterprise Edition, so when you
> access the data from your workstation (my is Personal Edition) i have no
> problems. Did not try SP4 to fix the issue?
>
>
> "Erland Sommarskog" <esquel@.sommarskog.se> wrote in message
> news:Xns96C076EDCAB4EYazorman@.127.0.0.1...
are[vbcol=seagreen]
earlier.[vbcol=seagreen]
>

quert result is displayed from right to left. how can change it ba

hi,
when i open a table in the sql server managment consule the results are
displayed from right to left.
does anyone know how can i change this and go back to normal?
eladElad,shalom
This caused by installing SP3.
> does anyone know how can i change this and go back to normal?
Re-Install SQL Server
"Elad" <Elad@.discussions.microsoft.com> wrote in message
news:6E2560EB-20CD-4E18-A6E1-09264643357A@.microsoft.com...
> hi,
> when i open a table in the sql server managment consule the results are
> displayed from right to left.
> does anyone know how can i change this and go back to normal?
> elad|||Uri Dimant (urid@.iscar.co.il) writes:
> "Elad" <Elad@.discussions.microsoft.com> wrote in message
> news:6E2560EB-20CD-4E18-A6E1-09264643357A@.microsoft.com...
>> hi,
>> when i open a table in the sql server managment consule the results are
>> displayed from right to left.
>> does anyone know how can i change this and go back to normal?
> Elad,shalom
> This caused by installing SP3.
>> does anyone know how can i change this and go back to normal?
> Re-Install SQL Server
I assume that this is a problem that appears only in an environment
where text can appear right-to-left, for instance with Hebrew regional
settings. Since I don't use this, it's nothing that I can investigate
myself.
But I must say that I take exception of your recommendation that Elad should
reinstall SQL Server, and implicity that he should stay at SP2 or earlier.
Given that there is a serious security vulnerability exploited by the
Slammer worm, this appears to be very poor advice to me. Surely, there
must be some better way to address this issue?
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp|||Erland
As you see, I did not mention to stay on SP2. I have just answered his
question " how can i change this and go back to normal?". BTW ,it is
happening when you try to install SP3 on Enterprise Edition, so when you
access the data from your workstation (my is Personal Edition) i have no
problems. Did not try SP4 to fix the issue?
"Erland Sommarskog" <esquel@.sommarskog.se> wrote in message
news:Xns96C076EDCAB4EYazorman@.127.0.0.1...
> Uri Dimant (urid@.iscar.co.il) writes:
>> "Elad" <Elad@.discussions.microsoft.com> wrote in message
>> news:6E2560EB-20CD-4E18-A6E1-09264643357A@.microsoft.com...
>> hi,
>> when i open a table in the sql server managment consule the results are
>> displayed from right to left.
>> does anyone know how can i change this and go back to normal?
>> Elad,shalom
>> This caused by installing SP3.
>> does anyone know how can i change this and go back to normal?
>> Re-Install SQL Server
> I assume that this is a problem that appears only in an environment
> where text can appear right-to-left, for instance with Hebrew regional
> settings. Since I don't use this, it's nothing that I can investigate
> myself.
> But I must say that I take exception of your recommendation that Elad
> should
> reinstall SQL Server, and implicity that he should stay at SP2 or earlier.
> Given that there is a serious security vulnerability exploited by the
> Slammer worm, this appears to be very poor advice to me. Surely, there
> must be some better way to address this issue?
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
>|||See this
http://groups.google.com/group/microsoft.public.il.hebrew.sqlserver/browse_frm/thread/641ce411be303bc3/23f5c7d00691d5d1?q=Right+align+&rnum=1&hl=en#23f5c7d00691d5d1
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:us40em8qFHA.2592@.TK2MSFTNGP09.phx.gbl...
> Erland
> As you see, I did not mention to stay on SP2. I have just answered his
> question " how can i change this and go back to normal?". BTW ,it is
> happening when you try to install SP3 on Enterprise Edition, so when you
> access the data from your workstation (my is Personal Edition) i have no
> problems. Did not try SP4 to fix the issue?
>
>
> "Erland Sommarskog" <esquel@.sommarskog.se> wrote in message
> news:Xns96C076EDCAB4EYazorman@.127.0.0.1...
> > Uri Dimant (urid@.iscar.co.il) writes:
> >> "Elad" <Elad@.discussions.microsoft.com> wrote in message
> >> news:6E2560EB-20CD-4E18-A6E1-09264643357A@.microsoft.com...
> >> hi,
> >> when i open a table in the sql server managment consule the results
are
> >> displayed from right to left.
> >> does anyone know how can i change this and go back to normal?
> >>
> >> Elad,shalom
> >> This caused by installing SP3.
> >> does anyone know how can i change this and go back to normal?
> >> Re-Install SQL Server
> >
> > I assume that this is a problem that appears only in an environment
> > where text can appear right-to-left, for instance with Hebrew regional
> > settings. Since I don't use this, it's nothing that I can investigate
> > myself.
> >
> > But I must say that I take exception of your recommendation that Elad
> > should
> > reinstall SQL Server, and implicity that he should stay at SP2 or
earlier.
> > Given that there is a serious security vulnerability exploited by the
> > Slammer worm, this appears to be very poor advice to me. Surely, there
> > must be some better way to address this issue?
> >
> >
> > --
> > Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> >
> > Books Online for SQL Server SP3 at
> > http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
> >
>

querry: rows must be displayed as columns

hi all,

currently i have a table:
studentId course score year
6.1 math 9 2007
6.1 french 5 2007
6.1 science 8 2007
6.1 math 6 2006
6.1 french 5 2006
6.1 science 5 2006
6.2 math 4 2007
6.2 french 6 2007

is it possible to have a query that gives this as result:
student year mathscore frenchscore sciencescore
6.1 2007 9 5 8
6.1 2006 6 5 5
6.2 2007 4 6 NULL

use PIVOT operator (if you SQL Server 2005).

Code Snippet

Create Table #score (

[studentId] Varchar(100) ,

[course] Varchar(100) ,

[score] int ,

[year] int

);

Insert Into #score Values('6.1','math','9','2007');

Insert Into #score Values('6.1','french','5','2007');

Insert Into #score Values('6.1','science','8','2007');

Insert Into #score Values('6.1','math','6','2006');

Insert Into #score Values('6.1','french','5','2006');

Insert Into #score Values('6.1','science','5','2006');

Insert Into #score Values('6.2','math','4','2007');

Insert Into #score Values('6.2','french','6','2007');

Select

[studentId]

, [year]

, [math]

, [french]

, [science]

From

#score S

Pivot(

Max([score]) For

[course] in ([math], [french], [science])

) as Pvt

|||

You could ue PIVOT function:

Code Snippet

create table #Scores

(

studentid int,

course varchar(10),

score int,

year int

)

insert into #Scores values(6.1,'math', 9, 2007)

insert into #Scores values(6.1,'french', 5, 2007)

insert into #Scores values(6.1,'science', 8, 2007)

insert into #Scores values(6.1,'math', 6, 2006)

insert into #Scores values(6.1,'french', 5, 2006)

insert into #Scores values(6.1,'science', 5, 2006)

insert into #Scores values(6.2,'math', 4, 2007)

insert into #Scores values(6.2,'french', 6, 2007)

select studentid, year, [math],[french], [science]

FROM #Scores PIVOT( MAX(SCORE) FOR course IN ([math],[french], [science]) ) as pvt

|||hi try this..

DECLARE @.Subjects TABLE (
studentId numeric(10,1)
, course varchar(20)
, score numeric
, [year] int
)

INSERT
INTO @.Subjects
SELECT 6.1, 'math', 9, 2007 UNION ALL
SELECT 6.1, 'french', 5, 2007 UNION ALL
SELECT 6.1, 'science', 8, 2007 UNION ALL
SELECT 6.1, 'math', 6, 2006 UNION ALL
SELECT 6.1, 'french', 5, 2006 UNION ALL
SELECT 6.1, 'science', 5, 2006 UNION ALL
SELECT 6.2, 'math', 4, 2007 UNION ALL
SELECT 6.2, 'french', 6, 2007

SELECT DISTINCT
s.studentId
, s.[year]
, m.score as mathscore
, f.score as frenchscore
, c.score as sciencescore
FROM @.Subjects s LEFT OUTER JOIN
(
SELECT *
FROM @.Subjects
WHERE course = 'math'
) m ON s.studentId = m.studentId
AND s.[year] = m.[year] LEFT OUTER JOIN
(
SELECT *
FROM @.Subjects
WHERE course = 'french'
) f ON s.studentId = f.studentId
AND s.[year] = f.[year] LEFT OUTER JOIN
(
SELECT *
FROM @.Subjects
WHERE course = 'science'
) c ON s.studentId = c.studentId
AND s.[year] = c.[year]|||

If you use SQL Server 2000 (This query will work with 2005 also)..

Code Snippet

Create Table #score (

[studentId] Varchar(100) ,

[course] Varchar(100) ,

[score] int ,

[year] int

);

Insert Into #score Values('6.1','math','9','2007');

Insert Into #score Values('6.1','french','5','2007');

Insert Into #score Values('6.1','science','8','2007');

Insert Into #score Values('6.1','math','6','2006');

Insert Into #score Values('6.1','french','5','2006');

Insert Into #score Values('6.1','science','5','2006');

Insert Into #score Values('6.2','math','4','2007');

Insert Into #score Values('6.2','french','6','2007');

Select

studentId

, year

, Sum(Case When Course = 'math' Then score End) as [math]

, Sum(Case When Course = 'french' Then score End) as [french]

, Sum(Case When Course = 'science' Then score End) as [science]

From

#score [main]

Group By

studentId,year

|||nice post mani,|||hi,
in SQL Server 2000 you can try this query :

Code Snippet


select studentID, year
, (select score from #tbl where course = 'math' and studentID = x.studentid and year = x.year) as matchscore
, (select score from #tbl where course = 'science' and studentID = x.studentid and year = x.year) as sciencescore
, (select score from #tbl where course = 'french' and studentID = x.studentid and year = x.year) as frenchscore
from #tbl x


- clintz

Monday, March 12, 2012

Quality of Displayed charts is poor

I create some charts in VS and they look crisp.
Then deploy, but when I view in the bouser(IE7) they look jaggered.
What am I doing wrong.
Thanks for any adviceOn Nov 7, 8:37 pm, gavin <ga...@.discussions.microsoft.com> wrote:
> I create some charts in VS and they look crisp.
> Then deploy, but when I view in the bouser(IE7) they look jaggered.
> What am I doing wrong.
> Thanks for any advice
This is just a thought, but you might want to shrink the chart control
in the report and see if maybe that improves the resolution, etc. Hope
this helps.
Regards,
Enrique Martinez
Sr. Software Consultant