Truncate Table

Technical Article

RE: Identity field as a key

  • Reply

Use Int Identities where you can. Make them a primary key, and build a proper relational database with enforced foreign keys and then you wont have data integrity issues. If your entity has an attribute that is unique: create a Natural Key. Using ISBN as the key wouldn't be a good idea if its repeated […]

You rated this post out of 5. Change rating

2005-01-18

Technical Article

RE: HELP!!!! Problem with finding overlapping timeframes ...

  • Reply

Peter,Thank you very much for your quick reply. Your solution is close I think, but I will need to do some testing on it to see if it can be adapted. Your solution gives the number of overlaps per day. I need to find the number of overlaps for any given time period during that […]

You rated this post out of 5. Change rating

2004-07-20

Technical Article

RE: How to FileCopy LAN to DMZ using SQL?

  • Reply

Yikes, glad I'm not working in that environment! I would hate to have to do this but... you could write a simple VB app to put/save a file into a blob field in the database. Then put the VB app on the server and client. When you need to copy files put them in using […]

You rated this post out of 5. Change rating

2004-01-28

2 reads

Technical Article

RE: Linked Server Problem

  • Reply

"Everything is fine apart from the fact that i get an error message when creating a linked server from another SQL 7 cluster server to one of the nodes in the SQL 2000 cluster."What do you mean creating linked server to one of nodes? I assume you try to create linked server to one of the […]

You rated this post out of 5. Change rating

2004-01-14

Technical Article

RE: #Temp object curiosity

  • Reply

Temporary stored procedures with # are local and are visible only to the connection. Therefore, when you create the temp sproc, the connection can access it, even though you're using dynamic SQL, which creates the sproc in a totally different batch. Temporary tables using # are local in scope, but that's not to the connection, […]

You rated this post out of 5. Change rating

2003-12-19

1 reads

Technical Article

RE: Use of Cursors

  • Reply

That's what I really hated when I was professionally developing. Commonly you don't have the time to implement an efficient solution, but rather an effective one. It's was one of the reasons why I quit my job. Now I have much more time to develop what I want to (don't know if my solution got […]

You rated this post out of 5. Change rating

2003-12-16

Technical Article

RE: can u Alter a table (add a field)

  • Reply

quote: I was mistaken. We use this process for two main reasons: 1. If we have to change NULL to NOT NULL 2. For SQL Server 6.5 Boxes. I overlooked the "ADD" part... CREATE TABLE #Test( Id int NULL) INSERT #Test DEFAULT VALUES UPDATE #Test SET Id = 0 WHERE Id IS NULL ALTER TABLE […]

2003-11-18

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