p***@gmail.com
2008-03-18 00:55:38 UTC
We are attempting to upgrade our application from MSDE 2000 to SQL
Server 2005 Express.
The installation occurs without error.
However, the database views in the database are messed up.
One view in the DB is define as:
CREATE view [dbo].[vwUser] AS SELECT * FROM OPENDATASOURCE
('Microsoft.Jet.OLEDB.4.0', 'Data Source="d:\folder\control.MDB";User
ID=USERID;Password=password;Jet OLEDB:System Database="c:\folder
\System.mda";Mode="Share Deny None"')...[User]
If we mount this DB in 2005 Express Management Studio and open the
same view in Design view, we get the following.
SELECT UserID AS ClassID, Password AS Custom, ClassID AS Disabled,
Custom AS MaxChannels, Disabled AS MinChannels, MinChannels AS
Password,
MaxChannels AS UserID
FROM OPENDATASOURCE ('Microsoft.Jet.OLEDB.4.0',
'Data Source="d:\folder\control.MDB";User
ID=USERID;Password=password;Jet OLEDB:System Database="c:\folder
\System.mda";Mode="Share Deny None"'
)...[User]
The thing to notice is that in the SQL Express Design version, the
Column name alias' do not match.
UserID AS ClassID,
Password AS Custom,
ClassID AS Disabled,
Custom AS MaxChannels,
Disabled AS MinChannels,
MinChannels AS Password,
MaxChannels AS UserID
When you execute the view, the resultset shows the incorrect
column(alias) names. This breaks all sorts of things in our stored
procedures.
Can someone explain why this is happening?
Server 2005 Express.
The installation occurs without error.
However, the database views in the database are messed up.
One view in the DB is define as:
CREATE view [dbo].[vwUser] AS SELECT * FROM OPENDATASOURCE
('Microsoft.Jet.OLEDB.4.0', 'Data Source="d:\folder\control.MDB";User
ID=USERID;Password=password;Jet OLEDB:System Database="c:\folder
\System.mda";Mode="Share Deny None"')...[User]
If we mount this DB in 2005 Express Management Studio and open the
same view in Design view, we get the following.
SELECT UserID AS ClassID, Password AS Custom, ClassID AS Disabled,
Custom AS MaxChannels, Disabled AS MinChannels, MinChannels AS
Password,
MaxChannels AS UserID
FROM OPENDATASOURCE ('Microsoft.Jet.OLEDB.4.0',
'Data Source="d:\folder\control.MDB";User
ID=USERID;Password=password;Jet OLEDB:System Database="c:\folder
\System.mda";Mode="Share Deny None"'
)...[User]
The thing to notice is that in the SQL Express Design version, the
Column name alias' do not match.
UserID AS ClassID,
Password AS Custom,
ClassID AS Disabled,
Custom AS MaxChannels,
Disabled AS MinChannels,
MinChannels AS Password,
MaxChannels AS UserID
When you execute the view, the resultset shows the incorrect
column(alias) names. This breaks all sorts of things in our stored
procedures.
Can someone explain why this is happening?