RWC (rcollens_SPAMONATOR_ (AT) hemmingway (DOT) com) writes:
Quote:
I should begin by saying I'm fairly new to SQL Server. I'm an
application developer who has built front ends atop Server, but have
never done much in the way of design / development.
My question is in two parts;
1). What is the best way to remotely "create" an SQL Server database?
I've been told that this can be done with SQL Statements, but thought
that there may be a way using XML. |
I don't know whether you can create databases and change metadata from
SQLXML. It does sound a bit akward to me, though. The normal way is
to use CREATE DATABASE, CREATE TABLE and that sort of SQL Statements.
Quote:
2). Can I use this same method to propogate updates to the remote database
without affecting the data? |
You mean changes to the metadata? Normally, the point with updates is
to affect the data? :-)
Composing an update script is a task that requires care. For simple
changes it may be as easy as a couple of ALTER TABLE statements. For
complex changes, it may be a task that requires quite some development.
Whatever you do, careful testing is needed before you do it in the
live databaase.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp