Registered Servers

Technical Article

RE: Cursor V/S query

  • Reply

If you can do it using a single query then why bother with a cursor?SQL Server is optimised for set based operations.  I tend to view cursors as an option of last resort.  You can get locking problems with them because they itterate through recordsets on a row by row basis.If you are worried that […]

You rated this post out of 5. Change rating

2004-11-25

Technical Article

RE: cast varchar as datetime

  • Reply

CREATE FUNCTION MyStrip(@v varchar(50)) RETURNS DateTime AS BEGIN Declare @vv Varchar(50) Set @vv=Right(@v,DataLength(@v)-CharIndex(' ',@v)) RETURN Cast(Left(@vv,DataLength(@vv)-CharIndex(' ',Reverse(@vv))) as DateTime) END Select dbo.MyStrip('Fri, 06 Dec 2002 14:52:26 -0500') Select dbo.MyStrip('Fri, 6 Dec 2002 15:08:59 EST')

You rated this post out of 5. Change rating

2003-05-17

1 reads

Technical Article

RE: Other databases

  • Reply

quote: MySQL has its fans though personally I suspect the MySQL vs other open source databases is the VHS vs Betamax thing again. ...and then there were Picture Discs, and now we have DVD Cheers, Frank

You rated this post out of 5. Change rating

2003-05-15

Blogs

Real-World SQL Mastery: Your Hands-On, Mess-Free Sandbox

By

Are you ready to take your SQL skills from theoretical to tactical? If you've...

Set a Runtime Variable in an Azure DevOps Pipeline

By

Note: I DO NOT recommend this. Any changes to a pipeline should be in...

A New Word: Symptomania

By

symptomania – n. the fantasy that there’s some elaborate diagnosis out there that neatly...

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