Data Compression

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

query question

  • Topic

Hi, All:     Here is a question that I could not figure out. Please share your idea if you know the answer...  I have a table: id    col1    col2 ---  -----  ----- 1     A       kk 1     B       jj 1     C       bb 2     D       qq 2     E       ffThe following should be the result: id    col1      col2 ---  -------  -------- 1     A,B,C    kk,jj,bb 2     […]

You rated this post out of 5. Change rating

2004-05-14

Technical Article

Dumb SQL question....

  • Topic

I have the following query that retrieves a list of users that belong to a particular group (in this case groupid 1).SELECT su.sysuser_firstname, su.sysuser_lastname, sug.sysuser_id, sug.sysusergroup_id   FROM sysuser_sysusergroup sug, sysuser su   WHERE sysusergroup_id = '1'   AND sug.sysuser_id = su.sysuser_id   ORDER BY su.sysuser_lastname, su.sysuser_firstnameI need to figure out a query that will return only users that […]

You rated this post out of 5. Change rating

2004-05-13

4 reads

Technical Article

RE: Linked Server

  • Reply

Regarding linked serversLinked servers are the way a SQL Server Instance tracks theOLEDB provider and connection context that it applies to queries containing four part names.  Server.Database.Owner.ObjectRather than using the rowset functions like Openquery(...), Openrowset(...), and OpenDataSource(...) in in-line  tables declarations in the FROM clauseeg. You get this syntax if a linked server is define […]

2004-03-23

Technical Article

RE: What am I missing?

  • Reply

I have never tried what you are trying.  I usually explicitly create temp tables in my sp's because it helps reduce compiles.  What is the point of adding the new field?  Is there another way to reach your final goal?

You rated this post out of 5. Change rating

2004-03-12

Technical Article

RE: SQL Construct

  • Reply

 try:INSERT INTO UNRESOLVED (CaseNbr)SELECT  T3.CaseNbr FROM  Table3 T3  LEFT OUTER JOIN   (Select CaseNbr From Table 1   UNION   Select CaseNbr from Table 2 &nbspQ  ON T3.CaseNbr =Q.CaseNbr WHERE  Q.CaseNbr is Null

You rated this post out of 5. Change rating

2004-03-02

Blogs

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

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

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