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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|