career

Technical Article

RE: SQL Server 2000/ SQLXML

  • Reply

ahhh. That was the easy route 🙂 What I thought you want was: <ROOT> <ElementName ATTR1="xxx">Some Value1</ElementName> <ElementName ATTR1="yyy">Some Value2</ElementName> <ElementName ATTR1="aaa">Some Value3</ElementName> <ElementName ATTR1="bbb">Some Value4</ElementName> </ROOT> You can get a lot done with EXPLICIT but it took me a while to understand it. Cheers, Crispin

You rated this post out of 5. Change rating

2003-06-09

Technical Article

RE: import excel file to sql table that has ID field

  • Reply

Hi bud, thanks for the reply. The destination table already has data in it, so I really just want to append the imported data from the source to the destination.I did the following: 1) Left the Identity field out of the Excel source file 2) Defined the spreadsheet as source 3) defined the SQL database […]

You rated this post out of 5. Change rating

2003-06-09

1 reads

Technical Article

RE: SQL Server 2000/ SQLXML

  • Reply

True, but should the objectives of a sporting code be to be played by and appeal to all nations. It is great for athletics and such, however for certain sports I think it is good to retain ethnic and regional traditions and keep 'em tribal. Talk about digression....!

You rated this post out of 5. Change rating

2003-06-09

Technical Article

RE: Trace DTS package deletions

  • Reply

Andy, sysdtspackages isn't a system table in the same sense as system tables within master and model. Your can define triggers on them. Try the following for logging the activities to the SQL error log. CREATE TRIGGER tr_sysdtspackages ON msdb.dbo.sysdtspackages FOR DELETE, INSERT, UPDATE AS BEGIN DECLARE @msg VARCHAR(500) DECLARE mods CURSOR FOR SELECT CASE […]

You rated this post out of 5. Change rating

2003-06-09

1 reads

Technical Article

RE: import excel file to sql table that has ID field

  • Reply

Leave the Identity field out of the Excel file... it's not needed. In the DTS Import/Export wizard: 1. define your spreadsheet as source 2. define your SQL database as destination. 3. select "copy tables and views..." 4. select your source sheet (eg. tblExcel$) 5. within transformations dialog, choose "Create destination table" and click on "Edit […]

You rated this post out of 5. Change rating

2003-06-08

1 reads

Technical Article

RE: Primary key / DTS load question

  • Reply

-- Assuming, for simplicity sake, that your main table is defined like: CREATE TABLE MainTable ( PKField INT PRIMARY KEY, OtherFields SQL_VARIANT /* or whatever.... */ NOT NULL ) -- I would create a staging table with an additional identity field, thus: CREATE TABLE StagingData ( IdentityField INT IDENTITY, PKField INT NOT NULL, OtherFields SQL_VARIANT […]

You rated this post out of 5. Change rating

2003-06-06

1 reads

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers