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 > january 2004 > threads for sunday january 11

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 31

Stumped by results
Posted by Stijn Verrept at 1/11/2004 11:46:32 PM
I have a very simple query but it the results just don't seem to match. It seems to go wrong while doing datetime comparison. caldate and IO_DateUntil are smalldatetime's. I made a screenshot and highlighted the strange result and also the line of the query which should be FALSE and thus not...more >>


Update
Posted by Bharat Khemka at 1/11/2004 11:20:55 PM
I have a VB/SQL application. Actually I have a few different queries: 1. filename.ldf (auto log file) becomes very large say upto 200MB sometimes while updating certain transactions and sometimes it gives out of memory error. Please advise how to handle this error? 2. I have used CURSO...more >>

View grouping - cube?
Posted by Bent S. Lund at 1/11/2004 10:37:32 PM
Hello, I'm struggling wit a view here trying to generate som statistics. The table is a log of products stacked on stacker 1, 2 or 3. Described in this table: CREATE TABLE [BUNDLE_LOG] ( [BUNDLE_SEQ_NO] [int] IDENTITY (1, 1) NOT NULL , [BUNDLE_ID] [varchar] (50) NULL , [STACKER_ID] [i...more >>

syntax errors calling one stored procedure from another...
Posted by Brian at 1/11/2004 10:05:01 PM
I'm trying to do something like this inside another stored procedure. set @TotalPrice = @TotalPrice + EXEC mysp_GetPrice @iProductID, @iProductQuantity This is inside a 'while' loop so that it parses a comma seperated list of products, retrieves the price for each and adds the product pric...more >>

comparing sequential data points to one another
Posted by vOID at 1/11/2004 7:16:16 PM
So if this is the correct syntax for comparing 3 sequential periods, what is the correct syntax for comparing 4,5 and more sequential periods? SELECT name FROM a_Name_Symbol AS S WHERE (SELECT COUNT(*) FROM a_Data AS D1 JOIN a_Data AS D2 ON D1.symbol = S.symbol AND D2.sy...more >>

SP - Only select columns which names are in a different recordset
Posted by txlgig at 1/11/2004 6:16:25 PM
I want to select only those columns from table A that are in the result of another select statement (B). I have found a stored proc that seems suitable for what I try to achieve the only problem is that I have no idea how to convert the result recordset of B in a comma seperated list to pass it as a...more >>

Transaction will not roll back
Posted by CSharp ( ILM ) at 1/11/2004 1:14:06 PM
Hello, This is easy for most of you in this group.... I have a Stored Procedure with the following. ....etc.. Declare @saved_error int Begin Tran T1 Insert into table1 -- inserts here no error if @@ERROR <>0 Set @saved_error = @@ERROR insert into table2 -- inserts here no error ...more >>

incorrect syntax near the keyword from
Posted by Matt at 1/11/2004 11:17:43 AM
I am writing a SQL statement to return sum of price divided by number of rows in titles table. I know this is exactly the same as AVG(price) but I just try to implement myself. However, the following SQL statement yields error: "incorrect syntax near the keyword 'FROM'" and no idea why. SEL...more >>



The column prefix 'column name' does not match with a table name
Posted by Matt at 1/11/2004 10:05:10 AM
The following query yields the error in enterprise manager: The column prefix 'ets' does not match with a table name or alias name used in the query SELECT e.EmployeeID, e.FirstName, ets.timeslotid FROM Employee e WHERE e.EmployeeID IN (SELECT ...more >>

@@DBTS and concurrency
Posted by Brian Selzer at 1/11/2004 9:31:47 AM
Can @@DBTS be changed by another connection during execution of a statement. for example: UPDATE Company WITH(ROWLOCK) SET CompanyID = @CompanyID, @Version = @@DBTS + 1 WHERE CompanyKey = @CompanyKey With only one connection active, the output parameter...more >>

improvement on my my t-sql
Posted by mcup8D at 1/11/2004 8:12:39 AM
How can I inprove: One procedure should create the tbl_User_Signup row for the user AND a row in each of the five one to one tables. It should all be wrapped in a transaction with roll-back to ensure it either completes successfully or is rolled back for another try. ---------------------...more >>


DevelopmentNow Blog