Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008
all groups > sql server programming > november 2005 > threads for saturday november 26

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Stored Procedures and the GetTime() function
Posted by Grant Smith at 11/26/2005 11:15:27 PM
I want to write a conditional statement in which a timestamp in a database is compared to the current time. Example: If timestamp value is >= (current time - 1 hour) then return 0, else return 1. The purpose of this is to verify that data has been imported in to the table within the last h...more >>


A cursor performance related question
Posted by news.microsoft.com at 11/26/2005 9:13:21 PM
Hi All, I have 800 K records need to be processed one by one in a large table daily using cursor way to update the default columns. The rest of queries are only read information from this table. The records in this table could be very large later on. My question is what's the best way to us...more >>

Need help setting default value of a field
Posted by Sam at 11/26/2005 8:24:01 PM
Hi, I want to set the default value of a field to the value of another field in the same table. Here's exactly what I want to do: I have a table that stores account receivables data. I already have a field for payment due date i.e. PaymentDate. I now want to add a new field called DueDat...more >>

index and query optimization plzzz
Posted by Islamegy® at 11/26/2005 12:56:59 PM
I have Table1, Table2, Table1 Have ID(primary key),Court_ID (clustered index).. Table2 Have Table1_ID,Rule_No(both are clustered primary key), Text (text) Table 2 have 1,000,000 record, I use this query: SELECT t2.[Rule_No], t2.[Text], FROM Table2 AS t2 right join Table1 AS t1 on (t1.ID = t...more >>

Saving New Diagrams
Posted by REK at 11/26/2005 12:40:04 PM
I keep getting this message when attempting to save a new diagram: TITLE: Microsoft SQL Server Management Studio ------------------------------ Cannot insert the value NULL into column 'diagram_id', table 'JobTracker.dbo.sysdiagrams'; column does not allow nulls. INSERT fails. The statemen...more >>

Time Series processing pattern (not data mining)?
Posted by Martin at 11/26/2005 12:33:29 PM
Hi, Is there a pattern for processing data presented as a time series? (Typically, the type of pattern called for when processing financial transactions). My current design is SQL based and looks something like this 1) Have different event types stored in separate tables (with associat...more >>

Execute Stored Procedure option missing from Object Explorer
Posted by Mark at 11/26/2005 12:00:13 PM
The option when you right click on a stored procedure to Execute where it then pops up a nice helper dialog to fill out the parameters is missing in my SQL Server Management Studio console. The funny thing is that it was there at one time when I had upgraded from MSDE to SQL Server Express and ...more >>

Triggers - need suggestion
Posted by vsr at 11/26/2005 9:43:09 AM
I have around 50 tables for which i wanted to write simple triggers(trigger to insert data in some other normalized table) as we dont have database level triggers in SQL Server i am forced to do table level for all these 50 tables.there are around 500 users will be accessing the table on the r...more >>



Stored procedure Or View
Posted by Taha at 11/26/2005 6:53:12 AM
hi all is stored procedure faster then view to retrieve data calculated by function ...more >>

How to return a set of Data ?
Posted by Florent CORNEILLE at 11/26/2005 3:53:01 AM
Hello, I have to make queries on a very big database, bon only part by part. For example : I would like to use a SELECT request and get only the rows 1000 to 1999. With the TOP keywork, I can get the 10 first rows. But what is the command to retrieve the rows between tho numbers ? ...more >>

Can I use the 'IF' clause in a 'WHERE' clause ?
Posted by Matthew Hill at 11/26/2005 12:17:01 AM
Background: I am developing a website using MS Visual Studio 2005 and SQL 2005 Express. I'm using SQL queries (not stored procedures yet). Problem: I have a query that I can't make work. I found the COALESCE function and it solves part of the problem but not all. I have a variable '@f...more >>


DevelopmentNow Blog