all groups > sql server programming > july 2005 > threads for sunday july 3
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
Can somebody give me the number of rows in each table
Posted by Tony Johansson at 7/3/2005 11:22:24 AM
Hello Experts!
The question that I want to have an answer to is how many rows does the
Person table have and how many rows does table Car have.
NOTE!!! I don't have the database so I can't check by using these select
statements.
select count(*) from Person and select count(*) from Car.
It s... more >>
Enable Identity
Posted by scott at 7/3/2005 10:53:42 AM
Below is sample code to create a table within DTS. Every time I use such
code, I have to manually edit each table created and set the primary key
field to be an identity type.
Can I change the code below on the causeID field to make it an identity type
with code?
CODE:
CREATE TABL... more >>
Variables in custom functions
Posted by Mark Rae at 7/3/2005 10:39:14 AM
Hi,
I'm sure this is a very easy question, but I'm having a bit of "senior
moment" this morning and would be grateful for some assistance.
Basically, I have a custom function which returns a table of timesheet data
and, within the SELECT statement, I need to return different values
accor... more >>
Insert,update,delete trigger
Posted by Tod at 7/3/2005 12:00:00 AM
Hi,
I have a trigger which fires in insert, update and delete
("CREATE TRIGGER MY_TRIGGER ON [dbo].[MY_TABLE] FOR INSERT, UPDATE, DELETE
AS...")
In this trigger, how I can I know this trigger fired because insert, update
or delete?
Thanks...
... more >>
counter/sequence in database
Posted by eXavier at 7/3/2005 12:00:00 AM
Hi all,
I'm looking for some common patterns on counters (or sequences) implemented
in database.
I need several sequences with definable range. It should be function -
something like GetNext(SequenceType). I need to call it from within
potentially concurrently running transactions so that tra... more >>
|