Views

Technical Article

RE: Previous date's value

  • Reply

If all the dates are consecutive then join the table to itself with date-1. If the dates are not consecutive then join the table to itself with max(date) < date If the dates are not consecutive and you want an entry for all dates between a range then create a table containing all the required […]

You rated this post out of 5. Change rating

2003-06-11

1 reads

Technical Article

RE: unsigned ints

  • Reply

You could use a BINARY value. Same storage requirements as INT but you can use all the bits. You may find it cumbersome though, depending on your processing needs, but just an option to consider... CREATE TABLE IPAllocations ( IP BINARY(4) PRIMARY KEY, Octet1 AS convert(smallint, substring(ip,1,1)), Octet2 AS convert(smallint, substring(ip,2,1)), Octet3 AS convert(smallint, substring(ip,3,1)), […]

2003-06-06

Technical Article

RE: TOP 5 Projects for Employees

  • Reply

I'm not going to write a query here. Just some ideas. If you need more help, I'm glad to help you out. Your query will look something like SELECT <all your main stuff here> FROM ... OuterFrom1 WHERE ProjNum IN (SELECT TOP 5 ProjNum FROM ... WHERE OuterFrom1.EmpId = SubQuery1.EmpID) Maybe a bit of explanation […]

2003-06-06

Technical Article

RE: 3241 error

  • Reply

Try launching the trace flag 3111 and see. Even though MS KB says it will happen only if the transaction log back size more than 4GB, I’ve seen this on one of the server with T-Log backup around 500MB

You rated this post out of 5. Change rating

2003-06-05

1 reads

Technical Article

RE: DBAs versus SQL Server

  • Reply

I work for a utility company. We have 18 SQL Server servers running 25 instances, 42 Oracle servers running 58 instances, and ADABASE on the mainframe. There are 3 of us. Adequate to keep things running, not good enough to insure no data loss. Not good enough to keep up with Patches and new features […]

2003-06-05

1 reads

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