Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Tuesday, March 27, 2012

Concat ?

Hi

I'm not sure about the right 'term' of this question. I'm using MS SQL server 2000 standard edition in a Windows 2003 Server Enterprise edition.

I have two tables. One of this has several columns (Year,Month,Day,User,Message). The other one, have just one column called Messages.

I count the today's messages in the first table using the following syntax

SELECT COUNT(*) FROM Tab1 WHERE YY = (datepart(year, getdate())) AND MM = (datepart(month, getdate())) AND DD = (datepart(day, getdate()))

Now, I have to update the column Messages in Table2, but I must to add a text before the count result. I.E.

'Messages today = 25'

Hoy may I add the text before the SELECT COUNT query result ?? Is it possible ??

Thank you.Try this syntax

select emp_id, 'Messages today = ' + convert(varchar(10),count(1)) from table group by empid

Prasad

Thursday, March 22, 2012

Computed Column

Is there a query that can be run to return all the tables in a database that
contain a computed column?
We are running SQL 2005, SP1, on Windows 2003.
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums.aspx/sql-server/200612/1
SELECT DISTINCT object_name(object_id)
FROM sys.computed_columns
Roy Harvey
Beacon Falls, CT
On Fri, 01 Dec 2006 21:38:16 GMT, "cbrichards via droptable.com"
<u3288@.uwe> wrote:

>Is there a query that can be run to return all the tables in a database that
>contain a computed column?
>We are running SQL 2005, SP1, on Windows 2003.

Computed Column

Is there a query that can be run to return all the tables in a database that
contain a computed column?
We are running SQL 2005, SP1, on Windows 2003.
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200612/1SELECT DISTINCT object_name(object_id)
FROM sys.computed_columns
Roy Harvey
Beacon Falls, CT
On Fri, 01 Dec 2006 21:38:16 GMT, "cbrichards via droptable.com"
<u3288@.uwe> wrote:

>Is there a query that can be run to return all the tables in a database tha
t
>contain a computed column?
>We are running SQL 2005, SP1, on Windows 2003.

Computed Column

Is there a query that can be run to return all the tables in a database that
contain a computed column?
We are running SQL 2005, SP1, on Windows 2003.
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200612/1SELECT DISTINCT object_name(object_id)
FROM sys.computed_columns
Roy Harvey
Beacon Falls, CT
On Fri, 01 Dec 2006 21:38:16 GMT, "cbrichards via SQLMonster.com"
<u3288@.uwe> wrote:
>Is there a query that can be run to return all the tables in a database that
>contain a computed column?
>We are running SQL 2005, SP1, on Windows 2003.

Tuesday, March 20, 2012

Compression feature, support for 64kb clusters?

Hi,

does the new (and future) compression feature included in katmai will support partitions formatted in 64kb?

the windows compression system required a 4kb cluster format and its not supported in other cluster size, this is a limitation when we use 64kb clusters for our database files.

Thanks.

Jerome.

The new compression feature will be done inside the SQL Server engine before data is written to disk, and is independent of the disk cluster size. So it will support 64kb formatted disk partitions.

Thanks,sqlsql

Compress SQL Server Backup File.

I have a Windows 2003 Server, what my plan is to compress sql server backup
file every night and ship in to different SQL Server Server, the question
is, is there any builtin zip/compress facility in windows which I can use it
for this purpose.
Thanks
If you are using the NTFS file system, you can just configure a directory to
be compressed in the advanced properties but when you read the file to send
it to the backup server, Windows will uncompress it so if you want the data
to be compressed on the wire, you will probably need to use some kind of zip
utility. Depending on how big the files are, compressing on the wire might
not make that big a difference so it might be enough to make the backup
directories compressed. Be sure you don't accidentally compress the
database files - this will break SQL Server.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Rogers" <naissani@.hotmail.com> wrote in message
news:eZves4UPGHA.1312@.TK2MSFTNGP09.phx.gbl...
>I have a Windows 2003 Server, what my plan is to compress sql server backup
>file every night and ship in to different SQL Server Server, the question
>is, is there any builtin zip/compress facility in windows which I can use
>it for this purpose.
> Thanks
>
|||Rogers wrote:
> I have a Windows 2003 Server, what my plan is to compress sql server
> backup file every night and ship in to different SQL Server Server,
> the question is, is there any builtin zip/compress facility in
> windows which I can use it for this purpose.
> Thanks
I would recommend you consider using a SQL Server backup and recovery
program that compresses and optionally encrypts backups in memory.
You'll save yourself a lot of backup (and recovery) time and won't have
to worry about post-backup compression. There are a number of companies
who have this type of software.
David Gugick - SQL Server MVP
Quest Software
|||Hi,
of course there are several tools in the market making a good job, but
sometimes you are really interested in a subset of their functionality
or your budget is really reduced. Four these cases, I would suggest
take a look here
http://spaces.msn.com/jcarlossaez/blog/cns!B3378F057444B65C!107.entry?_c11_blogpart_blogpart =blogview&_c=blogpart#permalink
Regards

Monday, March 19, 2012

Componente Services + win xp sp2

Hi.
I've intalled windows xp service pack 2, since there I cant' view Component
Services -> Transaction Statistics from a remote server.
I'm not using XP Firewall.
Any ideia?
Thanks
EsioI found the problem...
RPC changed.
http://msdn.microsoft.com/security/productinfo/XPSP2/networkprotection/restrict_remote_clients.aspx
Esio
"Esio Nunes" <esio_nunes@.hotmail.com> escreveu na mensagem
news:uznYoqk%23EHA.4092@.TK2MSFTNGP09.phx.gbl...
> Hi.
> I've intalled windows xp service pack 2, since there I cant' view
> Component Services -> Transaction Statistics from a remote server.
> I'm not using XP Firewall.
> Any ideia?
> Thanks
> Esio
>

Componente Services + win xp sp2

Hi.
I've intalled Windows XP service pack 2, since there I cant' view Component
Services -> Transaction Statistics from a remote server.
I'm not using XP Firewall.
Any ideia?
Thanks
EsioI found the problem...
RPC changed.
http://msdn.microsoft.com/security/...te_clients.aspx
Esio
"Esio Nunes" <esio_nunes@.hotmail.com> escreveu na mensagem
news:uznYoqk%23EHA.4092@.TK2MSFTNGP09.phx.gbl...
> Hi.
> I've intalled Windows XP service pack 2, since there I cant' view
> Component Services -> Transaction Statistics from a remote server.
> I'm not using XP Firewall.
> Any ideia?
> Thanks
> Esio
>

Friday, February 17, 2012

Compatilbilies issues with windows server 2003

I was wondering if anyone has issues installing SQL Server 2000 on Windows
2003 server?
If you have could you please let me know thanks.The only issue is with installing SQL 2000 on a Windows 2003 cluster using
named instances. That procedure is fully documented in the Knowledge Base.
I strongly recommend Windows 2003 as a host OS for SQL 2000. If you are
upgrading an existing installation, make sure your SQL Server is at or above
Service Pack 3a.
If this is a new installation, you will get a warning about required the
service pack level for SQL 2000. Continue the installation and then
immediately apply SP3a or higher (SP4 is currently the highest level service
pack).
--
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Ryan" <Ryan@.discussions.microsoft.com> wrote in message
news:553F3C8C-D5CF-476C-8E02-97C3C10638B8@.microsoft.com...
>I was wondering if anyone has issues installing SQL Server 2000 on Windows
> 2003 server?
> If you have could you please let me know thanks.

Compatilbilies issues with windows server 2003

I was wondering if anyone has issues installing SQL Server 2000 on Windows
2003 server?
If you have could you please let me know thanks.
The only issue is with installing SQL 2000 on a Windows 2003 cluster using
named instances. That procedure is fully documented in the Knowledge Base.
I strongly recommend Windows 2003 as a host OS for SQL 2000. If you are
upgrading an existing installation, make sure your SQL Server is at or above
Service Pack 3a.
If this is a new installation, you will get a warning about required the
service pack level for SQL 2000. Continue the installation and then
immediately apply SP3a or higher (SP4 is currently the highest level service
pack).
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Ryan" <Ryan@.discussions.microsoft.com> wrote in message
news:553F3C8C-D5CF-476C-8E02-97C3C10638B8@.microsoft.com...
>I was wondering if anyone has issues installing SQL Server 2000 on Windows
> 2003 server?
> If you have could you please let me know thanks.

Compatilbilies issues with windows server 2003

I was wondering if anyone has issues installing SQL Server 2000 on Windows
2003 server?
If you have could you please let me know thanks.The only issue is with installing SQL 2000 on a Windows 2003 cluster using
named instances. That procedure is fully documented in the Knowledge Base.
I strongly recommend Windows 2003 as a host OS for SQL 2000. If you are
upgrading an existing installation, make sure your SQL Server is at or above
Service Pack 3a.
If this is a new installation, you will get a warning about required the
service pack level for SQL 2000. Continue the installation and then
immediately apply SP3a or higher (SP4 is currently the highest level service
pack).
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Ryan" <Ryan@.discussions.microsoft.com> wrote in message
news:553F3C8C-D5CF-476C-8E02-97C3C10638B8@.microsoft.com...
>I was wondering if anyone has issues installing SQL Server 2000 on Windows
> 2003 server?
> If you have could you please let me know thanks.

Tuesday, February 14, 2012

Compatibility of SQL Server 7.0 with Windows 2K

Is SQL Server 7.0 compatible with the Windows 200 operating system? Are
there certain patches or service packs that need to be applied to SQL to
make this compatibility work? Thanks.

Larry"lmclaus" <lmclaus@.sandia.gov> wrote in message
news:bka37u$j4c$1@.sass2141.sandia.gov...
> Is SQL Server 7.0 compatible with the Windows 200 operating system? Are
> there certain patches or service packs that need to be applied to SQL to
> make this compatibility work? Thanks.
> Larry

http://www.microsoft.com/sql/evalua...datasheet.asp#E

Simon|||"lmclaus" <lmclaus@.sandia.gov> wrote in message
news:bka37u$j4c$1@.sass2141.sandia.gov...
> Is SQL Server 7.0 compatible with the Windows 200 operating system? Are
> there certain patches or service packs that need to be applied to SQL to
> make this compatibility work? Thanks.

Seems to be working fine here.

Ron.
--
Performance Intelligence, Inc.
Spy 4 DB2 - http://www.pireporting.com/spy4db2.html

Sunday, February 12, 2012

Compatibility between latin and sql_latin collation

I have a server with de windows latin_1... collation. But we restored some
older databases with SQL_Latin_1... collation.
Is this a problem or are these collation compatible?
Regards
Hi
You have not specified the full collation names, but you can easily test the
issue such as
USE TEMPDB
GO
CREATE TABLE MixedCollations ( id int not null identity CONSTRAINT PK_MiX
PRIMARY KEY,
col_SQL char(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
col_WIN char(1) COLLATE Latin1_General_CI_AS NOT NULL )
GO
INSERT INTO MixedCollations ( col_SQL, col_WIN )
SELECT 'A', 'A'
UNION ALL SELECT 'B', 'B'
GO
SELECT A.*, B.*
FROM MixedCollations A
JOIN MixedCollations B ON A.col_WIN = B.col_SQL
GO
/*
Server: Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation.
*/
SELECT A.*, B.*
FROM MixedCollations A
JOIN MixedCollations B ON A.col_WIN = B.col_SQL COLLATE Latin1_General_CI_AS
GO
/*
id col_SQL col_WIN id col_SQL col_WIN
-- -- -- -- -- --
1 A A 1 A A
2 B B 2 B B
(2 row(s) affected)
*/
DROP TABLE MixedCollations
GO
Therefore you may have issue when creating temporary tables where you don't
specify a collation and then join them to tables in the original database.
John
"Zekske" wrote:

> I have a server with de windows latin_1... collation. But we restored some
> older databases with SQL_Latin_1... collation.
> Is this a problem or are these collation compatible?
> Regards
|||OK, but normaly those databases on the server are databases for dedicated
applications. Normally there won't be a compare or sort with data coming from
two different databases.
Maybe I have to rephrase my question to:
What are the consequences of putting SQL_LATIN1_CI_AS databases on a
LATIN1_CI_AS SQL server?
"John Bell" wrote:
[vbcol=seagreen]
> Hi
> You have not specified the full collation names, but you can easily test the
> issue such as
> USE TEMPDB
> GO
> CREATE TABLE MixedCollations ( id int not null identity CONSTRAINT PK_MiX
> PRIMARY KEY,
> col_SQL char(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
> col_WIN char(1) COLLATE Latin1_General_CI_AS NOT NULL )
> GO
> INSERT INTO MixedCollations ( col_SQL, col_WIN )
> SELECT 'A', 'A'
> UNION ALL SELECT 'B', 'B'
> GO
> SELECT A.*, B.*
> FROM MixedCollations A
> JOIN MixedCollations B ON A.col_WIN = B.col_SQL
> GO
> /*
> Server: Msg 446, Level 16, State 9, Line 1
> Cannot resolve collation conflict for equal to operation.
> */
> SELECT A.*, B.*
> FROM MixedCollations A
> JOIN MixedCollations B ON A.col_WIN = B.col_SQL COLLATE Latin1_General_CI_AS
> GO
> /*
> id col_SQL col_WIN id col_SQL col_WIN
> -- -- -- -- -- --
> 1 A A 1 A A
> 2 B B 2 B B
> (2 row(s) affected)
> */
> DROP TABLE MixedCollations
> GO
> Therefore you may have issue when creating temporary tables where you don't
> specify a collation and then join them to tables in the original database.
> John
> "Zekske" wrote:
|||Hi
I did answer this, if you use temporary tables and don't create them with
the specified collation it WILL cause you problems. If you never do this and
only access tables within the database then you may get away with it.
John
"Zekske" wrote:
[vbcol=seagreen]
> OK, but normaly those databases on the server are databases for dedicated
> applications. Normally there won't be a compare or sort with data coming from
> two different databases.
> Maybe I have to rephrase my question to:
> What are the consequences of putting SQL_LATIN1_CI_AS databases on a
> LATIN1_CI_AS SQL server?
> "John Bell" wrote:
|||None unless there are cross database queries (including joins between temp
tables and physical ones).
However sql_latin_1 is effectively the sql based equivalant of the windows
based collation latin1. Windows based collations should be preferred over
the old style sql ones.
"Zekske" <Zekske@.discussions.microsoft.com> wrote in message
news:7693A675-BD40-4D0C-8DE0-35D11FF29622@.microsoft.com...[vbcol=seagreen]
> OK, but normaly those databases on the server are databases for dedicated
> applications. Normally there won't be a compare or sort with data coming
> from
> two different databases.
> Maybe I have to rephrase my question to:
> What are the consequences of putting SQL_LATIN1_CI_AS databases on a
> LATIN1_CI_AS SQL server?
> "John Bell" wrote:
|||... and SQL Collations are for backward support.
Ekrem nsoy
"Mark B" <nospam@.nospam.com> wrote in message
news:Od8xWi0NIHA.4740@.TK2MSFTNGP02.phx.gbl...
> None unless there are cross database queries (including joins between temp
> tables and physical ones).
> However sql_latin_1 is effectively the sql based equivalant of the windows
> based collation latin1. Windows based collations should be preferred over
> the old style sql ones.
> "Zekske" <Zekske@.discussions.microsoft.com> wrote in message
> news:7693A675-BD40-4D0C-8DE0-35D11FF29622@.microsoft.com...
>

Compatibility between latin and sql_latin collation

I have a server with de windows latin_1... collation. But we restored some
older databases with SQL_Latin_1... collation.
Is this a problem or are these collation compatible?
RegardsHi
You have not specified the full collation names, but you can easily test the
issue such as
USE TEMPDB
GO
CREATE TABLE MixedCollations ( id int not null identity CONSTRAINT PK_MiX
PRIMARY KEY,
col_SQL char(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
col_WIN char(1) COLLATE Latin1_General_CI_AS NOT NULL )
GO
INSERT INTO MixedCollations ( col_SQL, col_WIN )
SELECT 'A', 'A'
UNION ALL SELECT 'B', 'B'
GO
SELECT A.*, B.*
FROM MixedCollations A
JOIN MixedCollations B ON A.col_WIN = B.col_SQL
GO
/*
Server: Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation.
*/
SELECT A.*, B.*
FROM MixedCollations A
JOIN MixedCollations B ON A.col_WIN = B.col_SQL COLLATE Latin1_General_CI_AS
GO
/*
id col_SQL col_WIN id col_SQL col_WIN
-- -- -- -- -- --
1 A A 1 A A
2 B B 2 B B
(2 row(s) affected)
*/
DROP TABLE MixedCollations
GO
Therefore you may have issue when creating temporary tables where you don't
specify a collation and then join them to tables in the original database.
John
"Zekske" wrote:

> I have a server with de windows latin_1... collation. But we restored some
> older databases with SQL_Latin_1... collation.
> Is this a problem or are these collation compatible?
> Regards|||OK, but normaly those databases on the server are databases for dedicated
applications. Normally there won't be a compare or sort with data coming fro
m
two different databases.
Maybe I have to rephrase my question to:
What are the consequences of putting SQL_LATIN1_CI_AS databases on a
LATIN1_CI_AS SQL server?
"John Bell" wrote:
[vbcol=seagreen]
> Hi
> You have not specified the full collation names, but you can easily test t
he
> issue such as
> USE TEMPDB
> GO
> CREATE TABLE MixedCollations ( id int not null identity CONSTRAINT PK_MiX
> PRIMARY KEY,
> col_SQL char(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
> col_WIN char(1) COLLATE Latin1_General_CI_AS NOT NULL )
> GO
> INSERT INTO MixedCollations ( col_SQL, col_WIN )
> SELECT 'A', 'A'
> UNION ALL SELECT 'B', 'B'
> GO
> SELECT A.*, B.*
> FROM MixedCollations A
> JOIN MixedCollations B ON A.col_WIN = B.col_SQL
> GO
> /*
> Server: Msg 446, Level 16, State 9, Line 1
> Cannot resolve collation conflict for equal to operation.
> */
> SELECT A.*, B.*
> FROM MixedCollations A
> JOIN MixedCollations B ON A.col_WIN = B.col_SQL COLLATE Latin1_General_CI_
AS
> GO
> /*
> id col_SQL col_WIN id col_SQL col_WIN
> -- -- -- -- -- --
> 1 A A 1 A A
> 2 B B 2 B B
> (2 row(s) affected)
> */
> DROP TABLE MixedCollations
> GO
> Therefore you may have issue when creating temporary tables where you don'
t
> specify a collation and then join them to tables in the original database.
> John
> "Zekske" wrote:
>|||Hi
I did answer this, if you use temporary tables and don't create them with
the specified collation it WILL cause you problems. If you never do this and
only access tables within the database then you may get away with it.
John
"Zekske" wrote:
[vbcol=seagreen]
> OK, but normaly those databases on the server are databases for dedicated
> applications. Normally there won't be a compare or sort with data coming f
rom
> two different databases.
> Maybe I have to rephrase my question to:
> What are the consequences of putting SQL_LATIN1_CI_AS databases on a
> LATIN1_CI_AS SQL server?
> "John Bell" wrote:
>|||None unless there are cross database queries (including joins between temp
tables and physical ones).
However sql_latin_1 is effectively the sql based equivalant of the windows
based collation latin1. Windows based collations should be preferred over
the old style sql ones.
"Zekske" <Zekske@.discussions.microsoft.com> wrote in message
news:7693A675-BD40-4D0C-8DE0-35D11FF29622@.microsoft.com...[vbcol=seagreen]
> OK, but normaly those databases on the server are databases for dedicated
> applications. Normally there won't be a compare or sort with data coming
> from
> two different databases.
> Maybe I have to rephrase my question to:
> What are the consequences of putting SQL_LATIN1_CI_AS databases on a
> LATIN1_CI_AS SQL server?
> "John Bell" wrote:
>|||... and SQL Collations are for backward support.
Ekrem nsoy
"Mark B" <nospam@.nospam.com> wrote in message
news:Od8xWi0NIHA.4740@.TK2MSFTNGP02.phx.gbl...
> None unless there are cross database queries (including joins between temp
> tables and physical ones).
> However sql_latin_1 is effectively the sql based equivalant of the windows
> based collation latin1. Windows based collations should be preferred over
> the old style sql ones.
> "Zekske" <Zekske@.discussions.microsoft.com> wrote in message
> news:7693A675-BD40-4D0C-8DE0-35D11FF29622@.microsoft.com...
>

Compatibility between latin and sql_latin collation

I have a server with de windows latin_1... collation. But we restored some
older databases with SQL_Latin_1... collation.
Is this a problem or are these collation compatible?
RegardsHi
You have not specified the full collation names, but you can easily test the
issue such as
USE TEMPDB
GO
CREATE TABLE MixedCollations ( id int not null identity CONSTRAINT PK_MiX
PRIMARY KEY,
col_SQL char(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
col_WIN char(1) COLLATE Latin1_General_CI_AS NOT NULL )
GO
INSERT INTO MixedCollations ( col_SQL, col_WIN )
SELECT 'A', 'A'
UNION ALL SELECT 'B', 'B'
GO
SELECT A.*, B.*
FROM MixedCollations A
JOIN MixedCollations B ON A.col_WIN = B.col_SQL
GO
/*
Server: Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation.
*/
SELECT A.*, B.*
FROM MixedCollations A
JOIN MixedCollations B ON A.col_WIN = B.col_SQL COLLATE Latin1_General_CI_AS
GO
/*
id col_SQL col_WIN id col_SQL col_WIN
-- -- -- -- -- --
1 A A 1 A A
2 B B 2 B B
(2 row(s) affected)
*/
DROP TABLE MixedCollations
GO
Therefore you may have issue when creating temporary tables where you don't
specify a collation and then join them to tables in the original database.
John
"Zekske" wrote:
> I have a server with de windows latin_1... collation. But we restored some
> older databases with SQL_Latin_1... collation.
> Is this a problem or are these collation compatible?
> Regards|||OK, but normaly those databases on the server are databases for dedicated
applications. Normally there won't be a compare or sort with data coming from
two different databases.
Maybe I have to rephrase my question to:
What are the consequences of putting SQL_LATIN1_CI_AS databases on a
LATIN1_CI_AS SQL server?
"John Bell" wrote:
> Hi
> You have not specified the full collation names, but you can easily test the
> issue such as
> USE TEMPDB
> GO
> CREATE TABLE MixedCollations ( id int not null identity CONSTRAINT PK_MiX
> PRIMARY KEY,
> col_SQL char(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
> col_WIN char(1) COLLATE Latin1_General_CI_AS NOT NULL )
> GO
> INSERT INTO MixedCollations ( col_SQL, col_WIN )
> SELECT 'A', 'A'
> UNION ALL SELECT 'B', 'B'
> GO
> SELECT A.*, B.*
> FROM MixedCollations A
> JOIN MixedCollations B ON A.col_WIN = B.col_SQL
> GO
> /*
> Server: Msg 446, Level 16, State 9, Line 1
> Cannot resolve collation conflict for equal to operation.
> */
> SELECT A.*, B.*
> FROM MixedCollations A
> JOIN MixedCollations B ON A.col_WIN = B.col_SQL COLLATE Latin1_General_CI_AS
> GO
> /*
> id col_SQL col_WIN id col_SQL col_WIN
> -- -- -- -- -- --
> 1 A A 1 A A
> 2 B B 2 B B
> (2 row(s) affected)
> */
> DROP TABLE MixedCollations
> GO
> Therefore you may have issue when creating temporary tables where you don't
> specify a collation and then join them to tables in the original database.
> John
> "Zekske" wrote:
> > I have a server with de windows latin_1... collation. But we restored some
> > older databases with SQL_Latin_1... collation.
> > Is this a problem or are these collation compatible?
> >
> > Regards|||Hi
I did answer this, if you use temporary tables and don't create them with
the specified collation it WILL cause you problems. If you never do this and
only access tables within the database then you may get away with it.
John
"Zekske" wrote:
> OK, but normaly those databases on the server are databases for dedicated
> applications. Normally there won't be a compare or sort with data coming from
> two different databases.
> Maybe I have to rephrase my question to:
> What are the consequences of putting SQL_LATIN1_CI_AS databases on a
> LATIN1_CI_AS SQL server?
> "John Bell" wrote:
> > Hi
> >
> > You have not specified the full collation names, but you can easily test the
> > issue such as
> >
> > USE TEMPDB
> > GO
> >
> > CREATE TABLE MixedCollations ( id int not null identity CONSTRAINT PK_MiX
> > PRIMARY KEY,
> > col_SQL char(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
> > col_WIN char(1) COLLATE Latin1_General_CI_AS NOT NULL )
> > GO
> >
> > INSERT INTO MixedCollations ( col_SQL, col_WIN )
> > SELECT 'A', 'A'
> > UNION ALL SELECT 'B', 'B'
> > GO
> >
> > SELECT A.*, B.*
> > FROM MixedCollations A
> > JOIN MixedCollations B ON A.col_WIN = B.col_SQL
> > GO
> >
> > /*
> > Server: Msg 446, Level 16, State 9, Line 1
> > Cannot resolve collation conflict for equal to operation.
> > */
> >
> > SELECT A.*, B.*
> > FROM MixedCollations A
> > JOIN MixedCollations B ON A.col_WIN = B.col_SQL COLLATE Latin1_General_CI_AS
> > GO
> > /*
> > id col_SQL col_WIN id col_SQL col_WIN
> > -- -- -- -- -- --
> > 1 A A 1 A A
> > 2 B B 2 B B
> >
> > (2 row(s) affected)
> > */
> >
> > DROP TABLE MixedCollations
> > GO
> >
> > Therefore you may have issue when creating temporary tables where you don't
> > specify a collation and then join them to tables in the original database.
> >
> > John
> >
> > "Zekske" wrote:
> >
> > > I have a server with de windows latin_1... collation. But we restored some
> > > older databases with SQL_Latin_1... collation.
> > > Is this a problem or are these collation compatible?
> > >
> > > Regards|||None unless there are cross database queries (including joins between temp
tables and physical ones).
However sql_latin_1 is effectively the sql based equivalant of the windows
based collation latin1. Windows based collations should be preferred over
the old style sql ones.
"Zekske" <Zekske@.discussions.microsoft.com> wrote in message
news:7693A675-BD40-4D0C-8DE0-35D11FF29622@.microsoft.com...
> OK, but normaly those databases on the server are databases for dedicated
> applications. Normally there won't be a compare or sort with data coming
> from
> two different databases.
> Maybe I have to rephrase my question to:
> What are the consequences of putting SQL_LATIN1_CI_AS databases on a
> LATIN1_CI_AS SQL server?
> "John Bell" wrote:
>> Hi
>> You have not specified the full collation names, but you can easily test
>> the
>> issue such as
>> USE TEMPDB
>> GO
>> CREATE TABLE MixedCollations ( id int not null identity CONSTRAINT PK_MiX
>> PRIMARY KEY,
>> col_SQL char(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
>> col_WIN char(1) COLLATE Latin1_General_CI_AS NOT NULL )
>> GO
>> INSERT INTO MixedCollations ( col_SQL, col_WIN )
>> SELECT 'A', 'A'
>> UNION ALL SELECT 'B', 'B'
>> GO
>> SELECT A.*, B.*
>> FROM MixedCollations A
>> JOIN MixedCollations B ON A.col_WIN = B.col_SQL
>> GO
>> /*
>> Server: Msg 446, Level 16, State 9, Line 1
>> Cannot resolve collation conflict for equal to operation.
>> */
>> SELECT A.*, B.*
>> FROM MixedCollations A
>> JOIN MixedCollations B ON A.col_WIN = B.col_SQL COLLATE
>> Latin1_General_CI_AS
>> GO
>> /*
>> id col_SQL col_WIN id col_SQL col_WIN
>> -- -- -- -- -- --
>> 1 A A 1 A A
>> 2 B B 2 B B
>> (2 row(s) affected)
>> */
>> DROP TABLE MixedCollations
>> GO
>> Therefore you may have issue when creating temporary tables where you
>> don't
>> specify a collation and then join them to tables in the original
>> database.
>> John
>> "Zekske" wrote:
>> > I have a server with de windows latin_1... collation. But we restored
>> > some
>> > older databases with SQL_Latin_1... collation.
>> > Is this a problem or are these collation compatible?
>> >
>> > Regards|||... and SQL Collations are for backward support.
--
Ekrem Önsoy
"Mark B" <nospam@.nospam.com> wrote in message
news:Od8xWi0NIHA.4740@.TK2MSFTNGP02.phx.gbl...
> None unless there are cross database queries (including joins between temp
> tables and physical ones).
> However sql_latin_1 is effectively the sql based equivalant of the windows
> based collation latin1. Windows based collations should be preferred over
> the old style sql ones.
> "Zekske" <Zekske@.discussions.microsoft.com> wrote in message
> news:7693A675-BD40-4D0C-8DE0-35D11FF29622@.microsoft.com...
>> OK, but normaly those databases on the server are databases for dedicated
>> applications. Normally there won't be a compare or sort with data coming
>> from
>> two different databases.
>> Maybe I have to rephrase my question to:
>> What are the consequences of putting SQL_LATIN1_CI_AS databases on a
>> LATIN1_CI_AS SQL server?
>> "John Bell" wrote:
>> Hi
>> You have not specified the full collation names, but you can easily test
>> the
>> issue such as
>> USE TEMPDB
>> GO
>> CREATE TABLE MixedCollations ( id int not null identity CONSTRAINT
>> PK_MiX
>> PRIMARY KEY,
>> col_SQL char(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
>> col_WIN char(1) COLLATE Latin1_General_CI_AS NOT NULL )
>> GO
>> INSERT INTO MixedCollations ( col_SQL, col_WIN )
>> SELECT 'A', 'A'
>> UNION ALL SELECT 'B', 'B'
>> GO
>> SELECT A.*, B.*
>> FROM MixedCollations A
>> JOIN MixedCollations B ON A.col_WIN = B.col_SQL
>> GO
>> /*
>> Server: Msg 446, Level 16, State 9, Line 1
>> Cannot resolve collation conflict for equal to operation.
>> */
>> SELECT A.*, B.*
>> FROM MixedCollations A
>> JOIN MixedCollations B ON A.col_WIN = B.col_SQL COLLATE
>> Latin1_General_CI_AS
>> GO
>> /*
>> id col_SQL col_WIN id col_SQL col_WIN
>> -- -- -- -- -- --
>> 1 A A 1 A A
>> 2 B B 2 B B
>> (2 row(s) affected)
>> */
>> DROP TABLE MixedCollations
>> GO
>> Therefore you may have issue when creating temporary tables where you
>> don't
>> specify a collation and then join them to tables in the original
>> database.
>> John
>> "Zekske" wrote:
>> > I have a server with de windows latin_1... collation. But we restored
>> > some
>> > older databases with SQL_Latin_1... collation.
>> > Is this a problem or are these collation compatible?
>> >
>> > Regards
>

Compatibility between installation of MSDE 2000 and SQLServer 7

I want to install MSDE 2000 rel A on a Windows Server 2000 where SQLServer 7
is installed.
CAn I do it? Can MSDE and SQLServer live together?
Must I do any action before to install MSDE?
Thank you in advance
enzo giurleo
hi Enzo,
Enzo Giurleo wrote:
> I want to install MSDE 2000 rel A on a Windows Server 2000 where
> SQLServer 7 is installed.
> CAn I do it? Can MSDE and SQLServer live together?
> Must I do any action before to install MSDE?
> Thank you in advance
> enzo giurleo
you can install MSDE 2000 on a pc already hosting SQL Server 7.0..
SQL Server 7.0 will be the default instance, as it does not support multiple
instances, while MSDE will become a named instance you have to connect to
using the <computername>\<instancename> syntax but...
but...
MSDE 2000 will install and register it's own part of the shared component,
such as SQL-DMO and so on, and it does not contain the full client tools
like Enterprise Manager, Query Analyzer, Profiler and so on, so you loose
the possibility to administer your SQL Server 7.0 with your original 7.0
tools...
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.9.1 - DbaMgr ver 0.55.1
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply