Viewing 15 posts - 631 through 645 (of 1,347 total)
If you are INSERTing 2 or more records, then @@Identity is not a workable solution, and you'll need to use set-based operations.
This will typically require identifying the natural, unique identifiers...
February 6, 2006 at 4:22 pm
CommerceCenter.dbo.p21_view_oe_hdr_salesrep.rep_id
QVN='Y',
Missing a comma ? After CommerceCenter.dbo.p21_view_oe_hdr_salesrep.rep_id ?
February 6, 2006 at 4:08 pm
>>I will be dropping my membership to this list now
Your loss.
Speaking of "lists", here's another SQL server "list".
Here's what they have to say about the matter. And look closely at...
February 6, 2006 at 2:42 pm
A temp table, like any other SQL table, is an unordered set of rows.
Putting rows into a temp table with an ORDER BY does not guarantee anything about the physical...
February 6, 2006 at 2:26 pm
>>SQL will not compile the script if the select into #temp
And why should it ?
SQL is parsed. Then it is executed.
The parser has no way of knowing what will...
February 6, 2006 at 2:04 pm
>>Why does it throw this error, and how can I get around it?
SQL is parsed, an execution plan is generated, then it is executed.
The parser is throwing the error because...
February 3, 2006 at 4:23 pm
I took your code, unmodified & created the function. This SELECT statement worked fine with no errors:
Select dbo.ReFormatDate('9999 Manual', getdate())
Are you certain you are executing the correct version of the...
February 3, 2006 at 1:03 pm
Select from a derived table, where the derived table contains BOTH columns. In the derived table resultset, name the columns differently.
Then when you select out of the derived table, select...
February 3, 2006 at 11:57 am
The developer doesn't seem to be arguing about IDENTITY datatypes, but instead seems to be arguing based on the notion that s/he has to SELECT MAX(ID) + 1 As NextID.
Has...
February 3, 2006 at 11:21 am
Oh boy. Where to start. That is wrong on so many levels.
This is essentially the body of your Delete trigger. Just fill in the column names:
-- Update...
February 2, 2006 at 11:19 pm
1. Embedding a "Select Count(*) " as a sub-SELECT within a SELECT will yield horrible performance. It's essentially a cursor-like operation.
2. Overloading the meaning of a data element is always...
February 2, 2006 at 2:22 pm
>> for future reference
How far in the future ? If you'll have upgraded to SQL 2005 by then, you'll be able to use...
February 2, 2006 at 1:58 pm
>>Yes, I want to update the OrderReceived table from the OrderDetail table.
Update ?
Or Insert ?
Or both, inserting where not already there and updating existing records ?
February 2, 2006 at 1:08 pm
>>I know what field a particular string of data exists in
So you know the column name ?
Select object_name(id)
From syscolumns
Where name = 'YourColumnNameHere'
February 2, 2006 at 1:07 pm
It started with SP4 and is due to modified reporting on latch waits:
http://groups.google.com/group/microsoft.public.sqlserver.server/msg/b86e343e513ab281?hl=en
February 2, 2006 at 12:03 pm
Viewing 15 posts - 631 through 645 (of 1,347 total)