Indexing

Technical Article

RE: Manipulating And Using DateTime Data

  • Reply

One of the habits that I have developed, especially while developing date driven reports is to add this code to every stored procedure that I create: --Include the entire End Date (Set time to 11:59)  Select @EndDate = DateAdd(d, 1,@EndDate)  Select @Enddate = cast(convert(varchar, @EndDate,101) as datetime)   Select @EndDate = DateAdd(s,-1,@EndDate) --This is usually done […]

You rated this post out of 5. Change rating

2004-10-27

Technical Article

RE: Exporting to Excel Script

  • Reply

The code you posted is the same piece of code that I am trying to get work with only one modification.  You removed the credits!/* Version: SQL Server 7.0/2000 Created by: Alexander Chigrik http://www.MSSQLCity.com/ - all about MS SQL (SQL Server Articles, FAQ, Scripts, Tips and Test Exams).This stored procedure can be used to insert the […]

2004-10-14

Technical Article

RE: Auto-incrementing within a PK

  • Reply

Hi yaip, I discovered a minor flaw in the previous code when new records contain sequence numbers that are greater than the existsing numbers (if a gap in the DisplaySeq values is considered a gap). The following code fixes this: create table test_tab (RoleID int ,MenuID int ,DisplaySeq int ,primary key (RoleID, MenuID) ) go […]

You rated this post out of 5. Change rating

2004-10-11

Technical Article

Using fully qualified names

  • Topic

Hello Everyone,I am trying to find out if it is necessary to use fully qualified names for adhoc sql statements to improve performance. Say for example I am running the query below on Query Analyzer on database dbname. Would it be necessary for me to use SELECT * FROM dbname.dbo.tableOr will it be the same as […]

You rated this post out of 5. Change rating

2004-10-04

73 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