all groups > sql server programming > october 2007 > threads for monday october 8
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
After Insert trigger failure causes insert to fail
Posted by SWrobel at 10/8/2007 8:31:35 PM
I have a table with an After Insert trigger on it, which I believe
means should only execute the trigger after the row has already been
inserted in the table, however when the trigger fails, the row does
not get inserted in the table. If it helps, the trigger is failing
because it is calling a ... more >>
List format of select result
Posted by webcliff NO[at]SPAM gmail.com at 10/8/2007 7:34:44 PM
Hello,
As a MS SQL newbee, I may be asking stupid questions.
By default, when I run select * from atable, here is the format I get:
column1 column2
---------------------------
value11 value12
value21 value22
If the columns and the rows are too many, it is not easy to know a
... more >>
SQL 2005 Update Statement
Posted by Huy Nguyen at 10/8/2007 4:16:13 PM
Hello all,
I am woking on a project and there is a senario that I have to update
some data at the top row from database. I used the following syntax:
UPDATE TOP (2) MyTable SET Age = Age + 1
I get the following error message :
'Top clause for this query type' suppor... more >>
use compute sum on aggregated column - possible?
Posted by Rich at 10/8/2007 2:40:00 PM
Select coid, sum(copycount) sumcopy from #tmp1
Group By Coid
compute sum(copycount)
Is it possible to do something like this? Or should I stick with
Select Sum(sumCopy) sum2 From
(
Select coid, sum(copycount) sumcopy from #tmp1
Group By Coid
) t1
thanks,
Rich... more >>
Need Help fast... with query can anyone help.....
Posted by Daniel at 10/8/2007 10:07:13 AM
I have been working on this project with one other guy... and it just so
happens he is now on a 2 week vacation and cannot be contacted...
the following is part of a procedure that hires employees into our system,
this part of the procedure validates if they are ex-employees so that we can
... more >>
Is there a difference between LEFT JOIN and LEFT OUTER JOIN?
Posted by Ronald S. Cook at 10/8/2007 10:05:04 AM
Is there a difference between LEFT JOIN and LEFT OUTER JOIN?
thx
... more >>
How can the tempdb log grow to over 300MB?
Posted by lcerni at 10/8/2007 9:19:01 AM
How can the tempdb log grow to over 300MB? It is set to Simple Recovery mode.
Could it be a run away query? A large import. Could it be an open
transaction? I am not sure how to answer my manager on this. He doesn't
appear to like any of my answers.
He made the following statements to... more >>
alias question
Posted by rodchar at 10/8/2007 8:06:00 AM
hey all,
i have strange question that, really, i don't know if i'd like it to be
possible:
DECLARE @test nvarchar(50)
SELECT @test = 'Hello World'
SELECT GETDATE() AS 'Test'
but, anyway, here goes: is there anyway to make an alias be a variable? For
example 'Test' could i prepend somet... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
query question
Posted by claudia.inaciofong NO[at]SPAM googlemail.com at 10/8/2007 7:11:41 AM
Hi,
I got a field in my table that is bit and When I open my table it
shows me only false or true in the bit field
and I have this query below.... is it gonna work?? Because it only
returns an empty row...
select
case keycall
when 1 then 'Manual'
else 'SGV'
... more >>
SQLBulkCopy not inserting data in order.
Posted by Archana at 10/8/2007 7:03:54 AM
Hi all,
I am having one csv file which i want to insert into sql database
table using sqlbulkcopy.
I am facing one problem and that is bulkcopy is not inserting data in
same order as that present in CSV. say like data present in row1 in
csv fill is getting inserted some where in middle in t... more >>
little query help please
Posted by luna at 10/8/2007 12:00:00 AM
i have a query that works how i need it to like this (selects all products
attached to an ID that contain a certain TYPE)
SELECT RecordType.ProductID, RecordType.ID, RecordType.Type,
Finished.Finished
FROM RecordType LEFT OUTER JOIN
Finished ON RecordType.P... more >>
|