MAXDOP

Technical Article

RE: ORDER BY varchar data type

  • Reply

This doesn't work if the inserts are not done in order:INSERT INTO #Test Select '2B' as 'Column' INSERT INTO #Test select '2A' as 'Column'SELECT * FROM #Test ORDER BY CONVERT( integer, dbo.RemoveChars( [Column])) ASC Column     ---------- 1 2 2B 2A 3 3A 3B 3C 10 11This is probably one of those things that you either […]

You rated this post out of 5. Change rating

2005-01-06

Technical Article

XML Bulk Load & Truncating Data

  • Topic

I have a table with a number of columns type varchar(70), and a few others of specific sizes taking it up to the maximum row size.The data for the varchar(70) columns occasionally exceeds 70 characters, and I want this simply truncated, however I cannot do this in the application that creates the XML Files because this […]

You rated this post out of 5. Change rating

2004-10-11

Technical Article

RE: Questions to ask a possible DBA

  • Reply

With apologies to Nancy White In Dilbertlandia, Everyone's a bozo        Nobody's got a brain  (oooh!  oooh!)It's a place where being a peon        Does nothing for your self esteem.... 

2004-01-14

1 reads

Technical Article

RE: Stored Procedure

  • Reply

Personally I would consider doing like so. Replace all occurrances of @DateHolder with DATEADD(ss,-1,DATEADD(d,DATEDIFF(d,0,GETDATE()+1),0)) in your query code and get rid of the variable declaration. Replace @tdate with GETDATE() and get rid of variable declaration. Not really sure you need SET DATEFORMAT so say good-bye to it. Then try this. CREATE PROCEDURE GetFrontDeskData;1 @PracticeID bigint, […]

2003-06-17

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