Re: Export from one DB table into another DB table based on ID number

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Thu, 8 Jan 2009 05:08:01 -0800, Transam388 wrote:

OK, I got an answer before but not exactly clear to me so trying again.
(...)
How is this done? This will be an overwrite of the data in the second table
and not an addition. Again, have used Query Analyzer some but claim to be no
pro...obviously. This is also a fairly critical set of DB so I will back up
prior to doing this. Help greatly appreciated!!!!!!!!!!!!!

Hi Transam388,

I'm sorry to say this, but your description gives me some vague idea of
what you want, but not specific enough. Please post the following:

* The exact structure of the tables, posted as CREATE TABLE statements.
Make sure to include all indexes, constraints, and properties. You may
omit irrelevant columns, though.

* A few rows of well-chosen test data to illustrate the problem and all
possible relevant permutations. Please post them as INSERT statements so
that we can simply copy and paste the code in your post to create a copy
of your situation with all the test data on my computer. (If the photo
column is of the "image" datatype, then please replace it with the
"text" datatype and use a small description in the test data; images
don't post too well in newsgroups).

* The expected results, based on the test data you provided. If you post
these in a tabular format, then make sure to use a fixed-width font when
preparing your posts and use spaces, not tabs, to tabulate the data.
Otherwise, there's no way for others to see the data as neatly lined up
as you do.

See www.aspfaq.com/5006 for more details.

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
.



Relevant Pages

  • Re: sql query which has got 3 dynamic parameters
    ... Class Type Name Number DataType Requirement ... where test data is residing. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)
  • Re: Views
    ... occurs with even simple queries. ... If you can't reproduce it with a limited set of test data but can do so ... My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis ...
    (microsoft.public.sqlserver.clients)
  • Re: Maximum number of fields
    ... Doing a test with Word 2003 and SQL Server 2000 here I could access a 1000-column table via the old SQL Server OLE DB provider - the Edit Recipient dialog does become pretty useless, but the full field list is displayed in the merge field drop and you can insert your own fields manually if that fails. ... limitations on the total amount of data you can have in a record, e.g. AFAICR there's a number of fields per record limit of 1024 in SQL Server 2000), but a maximum data per row of something quite small like 8192 bytes or some such - although that must exclude blob-type fields, and I suspect that all those limits have been relaxed considerably in later versions of SQL Server. ... Personally, I'd consider creating test data with something like double the number of columns you have at present, using real data, and see how Word deals with it. ... Does this exceed the Word single mailmerge limit? ...
    (microsoft.public.word.mailmerge.fields)
  • Where can I download some free name/address/phone test data?
    ... Need to populate a SQL Server contact database with test data. ...
    (microsoft.public.sqlserver.programming)