data

Technical Article

RE: Nested cursors

  • Reply

I presume that LSeries can be any value or is it as per your example limited to 999?But why a nested cursor!One cursor to get distinct LSeries and do a set based update to update target table. Unfortunately this would involve using dynamic sql ( yes I know to be avoided at all costs but... […]

You rated this post out of 5. Change rating

2005-01-19

Technical Article

RE: Finding Stored procedures being used

  • Reply

Don't forget the thing about change control. It's better to work on that as well, so it is ready when you're done with the mapping. If not, it may be too tempting to go around it while waiting for it to become real, and before you know it, you might have to do the work […]

You rated this post out of 5. Change rating

2005-01-19

Technical Article

RE: altering column from datetime to varchar eliminates seconds and milliseconds part

  • Reply

or you could use this:select convert(varchar(12),getdate()) + right(convert(varchar,getdate(),126),len(convert(varchar,getdate(),126))-charindex('T',convert(varchar,getdate(),126)))result = Jan 19 2005 08:48:19.397 depending on your preferencing for displaying the date to your users.   regards, Mark Baekdal http://www.dbghost.com+44 (0)208 241 1762 Database change management for SQL Server   

You rated this post out of 5. Change rating

2005-01-19

Technical Article

RE: DTS and "Flags"

  • Reply

Hi, Happy New Year There are two very basic options. The first is to generate a DTS package that performs all the tasks you need, alternatively, you could split the tasks into smaller DTS packages and schedule them as ‘Jobs’ (under management folder (if using 2000)). In both options you have a precedence order so […]

You rated this post out of 5. Change rating

2005-01-05

Technical Article

RE: Date Ranges

  • Reply

From reading your post it looks like you want to know guests who will be in the hotel for at least one day between 8/1/05 and 8/10/05.  It also looks like it doesn't matter when they will be checking out.  Try the following query:Select <ColumnList> From <Table> Where ArrDate Between '08/01/05' and '08/10/05'

You rated this post out of 5. Change rating

2005-01-04

Technical Article

RE: Copy SP

  • Reply

I have INSERT tbl2 SELECT id,fname,lname from tbl1 WHERE ref# = '123' This works fine but what if I just wanted to insert fname and leave lname out (which would insert NULLS in that column).

You rated this post out of 5. Change rating

2004-12-16

Technical Article

RE: Four of a Kind - Backup Software Shootout

  • Reply

Very impressed with this test. Thanks, Wes. I am in the market for one of these products and was liking the results of MiniSQLBackup shown in your test. I am, however, confused as to why it took 500% longer to backup with MiniSQLBackup compared to the standard SQL Server backup. Isn't one of the features […]

You rated this post out of 5. Change rating

2004-12-07

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