Can XPe SP1 and SP2 co-exist on the same development machine?

Posted: 12-07-2004, 03:35 PM
The boss says XPe SP1 for product A, and XPe SP2 for product B.

I have one workstation. Can I have both SP1 and SP2 on it?

When SP2 is installed, are the SP1 components overwritten or removed from
the database? (I don't think so.) Maybe I can be selective about upgrading
components in the product A SLX file and keep it at SP1.

Advice is greatly appreciated.

--
Regards.
Mark K Vallevand


Reply With Quote

Responses to "Can XPe SP1 and SP2 co-exist on the same development machine?"

KM
Guest
Posts: n/a
 
Re: Can XPe SP1 and SP2 co-exist on the same development machine?
Posted: 12-07-2004, 04:23 PM
Mark,

Good question.

SP2 is installed on the top os SP1. It adds more Repositories.
But as we all know, there is no way from TD to choose an old version/revision of a component.
You can build your SP1 configuration with SP2 tools&db if you don't upgrade the configuration and component it it. So, basically, if
you don't plan to make any changes in SP1 configuration (like installing QFEs and etc.) you may still be ale to build it with SP2.

Also some issues that you won't be able to easy fix if you want to have both SP1 and SP2 installed separatly:
- INF importer dll was changed in SP2. Inf importer is a registered COM object so you will have to choose one version for both
SP1 and SP2.
- I don't know if it is possible to change the XPe Database name the ToolKit uses. It seems currently to be hard-coded as Mantis
db. You can rename the SP1 database (with SQL Enterprise Manager, e.g.) temporarily but it is always a pain.
- Repositories have to be maintained and renamed manually each time you switch between SP1/SP2.

Anyway, this is just thoughts. I haven't actually having both SPs on the same machine to be able to build SP1 and SP2 projects.

KM
> The boss says XPe SP1 for product A, and XPe SP2 for product B.
>
> I have one workstation. Can I have both SP1 and SP2 on it?
>
> When SP2 is installed, are the SP1 components overwritten or removed from
> the database? (I don't think so.) Maybe I can be selective about upgrading
> components in the product A SLX file and keep it at SP1.
>
> Advice is greatly appreciated.
>
> --
> Regards.
> Mark K Vallevand
>
>

Reply With Quote
Slobodan Brcin \(eMVP\)
Guest
Posts: n/a
 
Re: Can XPe SP1 and SP2 co-exist on the same development machine?
Posted: 12-07-2004, 05:46 PM
Hi Mark,

1. Stop DB.
2. Duplicate SP1 folder named "Windows Embedded Data" to let say WEDBKP folder name.
3. Install SP2.

Make a batch file that will do following.
1. Stop DB.
2. Close net share on Repositories.
3. Rename "Windows Embedded Data" to let say WEDBKP2
4. Rename WEDBKP to "Windows Embedded Data"
6. Rename WEDBKP2 to WEDBKP
7. Start net share on Repositories.
8. Start DB.

Regards,
Slobodan

"Mark K Vallevand" <mark.vallevand@unisys.com> wrote in message news:%23gjNqJH3EHA.524@TK2MSFTNGP09.phx.gbl...
> The boss says XPe SP1 for product A, and XPe SP2 for product B.
>
> I have one workstation. Can I have both SP1 and SP2 on it?
>
> When SP2 is installed, are the SP1 components overwritten or removed from
> the database? (I don't think so.) Maybe I can be selective about upgrading
> components in the product A SLX file and keep it at SP1.
>
> Advice is greatly appreciated.
>
> --
> Regards.
> Mark K Vallevand
>
>

Reply With Quote
Lucvdv
Guest
Posts: n/a
 
Re: Can XPe SP1 and SP2 co-exist on the same development machine?
Posted: 12-08-2004, 10:07 AM
On Tue, 7 Dec 2004 18:46:47 +0100, "Slobodan Brcin \(eMVP\)"
<sbrcin@ptt.yu> wrote:
> Hi Mark,
>
> 1. Stop DB.
> 2. Duplicate SP1 folder named "Windows Embedded Data" to let say WEDBKP folder name.
> 3. Install SP2.
>
> Make a batch file that will do following.
> 1. Stop DB.
> 2. Close net share on Repositories.
> 3. Rename "Windows Embedded Data" to let say WEDBKP2
> 4. Rename WEDBKP to "Windows Embedded Data"
> 6. Rename WEDBKP2 to WEDBKP
> 7. Start net share on Repositories.
> 8. Start DB.

Hi, Slobodan

There is some information about the database in the system databases too,
so maybe instead of stopping the server and swapping the .mdf and .ldf
files underneath it, it could be safer to detach one version and attach the
other.

This can be done from a batch file too, through oqsl.exe (in the SQL Server
installation path, .\80\Tools\binn subdirectory).

osql -E -Q "sp_detach_db 'MantisSQLDB'"
> 2. Close net share on Repositories.
> 3. Rename "Windows Embedded Data" to let say WEDBKP2
> 4. Rename WEDBKP to "Windows Embedded Data"
> 6. Rename WEDBKP2 to WEDBKP
> 7. Start net share on Repositories.
set f1=X:\Windows Embedded Data\MantisSQLDB_Data.mdf
set f2=X:\Windows Embedded Data\MantisSQLDB_Log.ldf
osql -E -Q "sp_attach_db 'MantisSQLDB', '%f1%', '%f2%'"

I used environment variables for the filenames only to shorten the last
command line, so it's not broken in this post by the time you read it.



There's one drawback: sp_detach_db will fail if the database is still open
somewhere, and checking the return value in a single line sounds easier
than it is.

I thought executing the command as

osql -E -Q "exit(exec sp_detach_db 'MantisSQLDB')"

should store the result in %errorlevel%, but it looks like that doesn't
work with stored procedures (I always get errorlevel = -100).

Maybe we could ask for help in one of the SQL server groups

Reply With Quote
Slobodan Brcin \(eMVP\)
Guest
Posts: n/a
 
Re: Can XPe SP1 and SP2 co-exist on the same development machine?
Posted: 12-08-2004, 10:39 AM
Hi Lucvdv,

You are right that this look like better approach. But my DB knowledge is very limited and I'm not too eager to improve it soon.
(too high level for my taste).

Regards,
Slobodan


"Lucvdv" <replace_name@null.net> wrote in message news:vuddr0198qn0lirn5dgt2cbv484sqeom3c@4ax.com...
> On Tue, 7 Dec 2004 18:46:47 +0100, "Slobodan Brcin \(eMVP\)"
> <sbrcin@ptt.yu> wrote:
>
> > Hi Mark,
> >
> > 1. Stop DB.
> > 2. Duplicate SP1 folder named "Windows Embedded Data" to let say WEDBKP folder name.
> > 3. Install SP2.
> >
> > Make a batch file that will do following.
> > 1. Stop DB.
> > 2. Close net share on Repositories.
> > 3. Rename "Windows Embedded Data" to let say WEDBKP2
> > 4. Rename WEDBKP to "Windows Embedded Data"
> > 6. Rename WEDBKP2 to WEDBKP
> > 7. Start net share on Repositories.
> > 8. Start DB.
>
>
> Hi, Slobodan
>
> There is some information about the database in the system databases too,
> so maybe instead of stopping the server and swapping the .mdf and .ldf
> files underneath it, it could be safer to detach one version and attach the
> other.
>
> This can be done from a batch file too, through oqsl.exe (in the SQL Server
> installation path, .\80\Tools\binn subdirectory).
>
> osql -E -Q "sp_detach_db 'MantisSQLDB'"
> > 2. Close net share on Repositories.
> > 3. Rename "Windows Embedded Data" to let say WEDBKP2
> > 4. Rename WEDBKP to "Windows Embedded Data"
> > 6. Rename WEDBKP2 to WEDBKP
> > 7. Start net share on Repositories.
> set f1=X:\Windows Embedded Data\MantisSQLDB_Data.mdf
> set f2=X:\Windows Embedded Data\MantisSQLDB_Log.ldf
> osql -E -Q "sp_attach_db 'MantisSQLDB', '%f1%', '%f2%'"
>
> I used environment variables for the filenames only to shorten the last
> command line, so it's not broken in this post by the time you read it.
>
>
>
> There's one drawback: sp_detach_db will fail if the database is still open
> somewhere, and checking the return value in a single line sounds easier
> than it is.
>
> I thought executing the command as
>
> osql -E -Q "exit(exec sp_detach_db 'MantisSQLDB')"
>
> should store the result in %errorlevel%, but it looks like that doesn't
> work with stored procedures (I always get errorlevel = -100).
>
> Maybe we could ask for help in one of the SQL server groups
>

Reply With Quote
KM
Guest
Posts: n/a
 
Re: Can XPe SP1 and SP2 co-exist on the same development machine?
Posted: 12-16-2004, 05:34 AM
I just noticed this in the SP2 Rel.Notes: "Dual installations of the database are not supported, whether on the same or different
drives or partitions."

KM
> The boss says XPe SP1 for product A, and XPe SP2 for product B.
>
> I have one workstation. Can I have both SP1 and SP2 on it?
>
> When SP2 is installed, are the SP1 components overwritten or removed from
> the database? (I don't think so.) Maybe I can be selective about upgrading
> components in the product A SLX file and keep it at SP1.
>
> Advice is greatly appreciated.
>
> --
> Regards.
> Mark K Vallevand
>
>

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sync between Vista machine and External Hard Drive and XP Machine bobd Windows Vista File Management 1 01-01-2008 04:55 PM
Help with ACM Driver Development Culann mac Cabe Windows XP Device Drivers 0 02-04-2005 04:30 PM
64 Bit development environment Arnd Rosemeier Windows XP Beta 0 11-18-2003 10:24 AM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90