<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:maroon;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=maroon face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:maroon'>Actually I believe it does as he said he
scripts the data as well.&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=maroon face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:maroon'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=maroon face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:maroon'>Therefore once the database has been created,
you can run this script to populate it with data.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=maroon face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:maroon'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=maroon face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:maroon'>Cheers,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=maroon face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:maroon'>Paul.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=maroon face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:maroon'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=maroon face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:maroon'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
delphi-bounces@ns3.123.co.nz [mailto:delphi-bounces@ns3.123.co.nz] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Jeremy Coulter<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, 12 October 2004
9:11 a.m.<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">NZ
 Borland Developers Group - <st1:place w:st="on">Delphi</st1:place> List</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [DUG] Distributing
MSSQL DBs</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>yes, but this does not get round the need for the DB to have
pre-populated data as in my original email.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I COULD I guess import form an Access DB or even from Excel (which is prob.
better) but if I am using MSDE which I prob. will in a lot of cases I suspect,
it becomes a little more difficult, AND also I want to try to do a lot of this
with no user intervention.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I realise I will prob. have to do some custom stuff for this, and thats
fine.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Jeremy<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid black 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>-----Original
Message-----<br>
From: &quot;Stephen Bertram&quot; &lt;stephen.bertram@ensynergy.co.nz&gt;<br>
To: &quot;<st1:PersonName w:st="on">NZ Borland Developers Group - Delphi List</st1:PersonName>&quot;
&lt;delphi@ns3.123.co.nz&gt;<br>
Date: Tue, 12 Oct 2004 09:02:59 +1300<br>
Subject: RE: [DUG] Distributing MSSQL DBs<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>You&#8217;re correct Conor, but there are often issues as the
database retains the original security settings and unless the client
environment is compatible you can spend hours on the phone to the client
tweaking things to make the data available.</span></font><o:p></o:p></p>

</div>

<u1:p></u1:p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><u1:p>&nbsp;</u1:p> </span></font><o:p></o:p></p>

</blockquote>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>We script the structures and data out to a SQLscript which can
create the database and tables if required and then update or insert the
rows.&nbsp; A little more trouble, but it makes installation and maintenance of
common data across the clients a snip.&nbsp; If written carefully it can be db
independent which allows operation across a wide range of environments (MSSQL,
Ingres, Sybase, Oracle, &#8230;..)<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><u1:p>&nbsp;</u1:p> </span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>$0.02<u1:p></u1:p> </span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><u1:p>&nbsp;</u1:p> </span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Stephen<u1:p></u1:p> </span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><u1:p>&nbsp;</u1:p> </span></font><o:p></o:p></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabIndex=-1>

</span></font></div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;font-weight:
bold'>From: </span></font></b><font size=2 face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma'>delphi-bounces@ns3.123.co.nz
[mailto:delphi-bounces@ns3.123.co.nz] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Conor.Boyd@sungard.com<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, 12 October 2004
8:40 a.m.<br>
<b><span style='font-weight:bold'>To:</span></b> <u2:PersonName u3:st="on">vss@vss.co.nz</u2:PersonName>;
delphi@ns3.123.co.nz<br>
<b><span style='font-weight:bold'>Subject: </span></b>RE: [DUG] Distributing
MSSQL DBs</span></font><u1:p> <o:p></o:p></p>

</div>

</u1:p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'><u1:p>&nbsp;</u1:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>You can use the Enterprise Manager tool to create a backup of a
database.&nbsp; Then use the same tool at your client to restore&nbsp;the
database.&nbsp; I use this all the time to copy databases between
servers.&nbsp; Works a treat. </span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<u1:p></u1:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>SQL Server 2000, but I suppose there's something similar in any
version.</span></font><u1:p> </u1:p><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<u1:p></u1:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>Not sure what you mean by removable database, I'm afraid.</span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<u1:p></u1:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>HTH,</span></font> <u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<u1:p></u1:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>Conor</span></font> <u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'><u1:p>&nbsp;</u1:p><o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabIndex=-1>

</span></font></div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;font-weight:
bold'>From: </span></font></b><font size=2 face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma'>Jeremy Coulter [mailto:<u2:PersonName u3:st="on">
vss@vss.co.nz</u2:PersonName>]&nbsp;<br>
</span></font><font size=2 color=blue face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:blue'>&nbsp;</span></font><u1:p></u1:p> <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Just
following on from my question yesterday, one of the things we are going to want
to do is distribute an MSSQL db to the customer. We need to do this as appossed
to just creating the database and tables on the fly, is that a couple of tables
need pre-populated data in them.</span></font><u1:p></u1:p> <o:p></o:p></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<u1:p></u1:p><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I know you
can create a &quot;Removable Database&quot; in MSSQL, which pretty much takes a
copy of the database with out detaching it from the original SQL Server...I
think thats how it works.</span></font><u1:p> </u1:p><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I will then
just re attach it, although I need to investigate this bit some more.</span></font><u1:p></u1:p><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<u1:p></u1:p><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Anyone do
anything like this now?</span></font><u1:p> </u1:p><o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<br>
This communication contains information that is confidential and the copyright
of ensynergy Limited or a third party. <br>
<br>
If you are not the intended recipient of this communication please delete and
destroy all copies and telephone ensynergy Limited on +64 9 3551591 immediately.
If you are the intended recipient of this communication you should not copy,
disclose or distribute this communication without the authority of ensynergy
Limited. <br>
<br>
Any views expressed in this communication are those of the individual sender,
except where the sender specifically states them to be the views of ensynergy
Limited. <br>
<br>
Except as required by law, ensynergy Limited does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained nor that
the communication is free of errors, virus, interception or interference. </span></font><o:p></o:p></p>

</div>

</div>

</div>

</body>

</html>