Compression

Technical Article

RE: Question of the Day for 04 Nov 2004

  • Reply

Here is the original and another method.It works from 1743 to 9998Steve Declare @Year_Begin as int, @Year_End as int,       @IndependeceDay as char(10), @DayofWeek as char(10)If exists (select * From dbo.sysobjects     Where id = object_id(N'Independence')) Drop Table IndependenceCreate Table Independence ( Four_of_July varchar(10),   Day_of_Week varchar(10))  Set @Year_Begin = 1753 Set @Year_End = 9998While (@Year_Begin […]

2004-11-05

Technical Article

RE: Retrieving the ID of a record just inserted

  • Reply

If you can add one more column to your table than: create table FIFO(xxx,xxx,xxx, GUID uniqueidentifier)  declare @GUID uniqueidentifier set @GUID = NewID() INSERT INTO FIFO ( xxx,xxx,xxx,xxx, GUID&nbsp VALUES( xxx,xxx,xxx,xxx, @GUID&nbsp        // Insert recordSELECT  UID AS Value FROM FIFOwhere GUID = @GUID                                            // Get the UID of the record just inserted It works much faster than using temporary table, especially if […]

You rated this post out of 5. Change rating

2004-08-30

Technical Article

RE: Question of the Day for 17 Aug 2004

  • Reply

And look at the explanation:"You need to remove the existing data, using the Excel automation model, copying a blank spreadsheet onto the target spreadsheet, or executing a drop table, create table on your spreadsheet.""Copying a blank spreadsheet" means not removing data from a spreadsheet but removing old spreadsheet and replacing it with new (empty) one. Than […]

You rated this post out of 5. Change rating

2004-08-18

Technical Article

Linked Server Update Problem

  • Topic

I am getting an error trying to update a table in DB2 via SQL Server using a Linked Server.  I can query the table using OPENQUERY but not via four-part name.I can do this...SELECTSelect * from OpenQuery(db2link, 'Select frst_nm from yccfssc9.person where id_prsn = 2')When I try to Query using four-part names I get the following […]

You rated this post out of 5. Change rating

2004-03-12

119 reads

Blogs

Step Up Your Data Game: Learn Advanced SQL Techniques for Analysis

By

In the modern data-centric landscape, SQL stands out as the dominant tool. It's essential...

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...

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