Viewing 15 posts - 151 through 165 (of 182 total)
If you set it up as a linked server, I beleive you can do a simple
INSERT INTO [fully qualified name]
FROM vw_Table --format fields and such
February 20, 2006 at 10:51 am
Is this the same phenomenon as when doing a select and filter on a linked server table? I used to have the problem of SQL Server downloading the entire...
February 20, 2006 at 9:36 am
you have any openings at $100 an hour? ha!
February 20, 2006 at 9:29 am
if the default is 0, then myFlag will never be set to 1 with your query. It is dependent on at least one barcode containing a 1 to start....
February 20, 2006 at 8:23 am
Vishal,
if no rows match, how many rows do you want returned? IF you wish only one row, I'd do it like so...
Select FormID from Tablename
Where Action in (1,2,3,4)
And Status...
February 20, 2006 at 8:17 am
"on..and t2.myflag = 1"
at what point does myFlag = 1?
February 20, 2006 at 7:23 am
I recommend the INSTEAD OF TRIGGER
CREATE TRIGGER [dbo].[trg_upd_positions] ON [dbo].[positions]
INSTEAD OF UPDATE
SELECT *
FROM INSERTED [fields]
INNER JOIN [dbo].[positions] p
ON i.fld1 = p.fld1
WHERE i.fld2 p.fld2
UPDATE [dbo].[positions]
SET fld2 = i.fld2
FROM...
February 19, 2006 at 12:34 pm
Two functions....
Use them in your select and group statements. You can hard code the shifts or make a table for shift, start hour, end hour. I'd put an...
February 19, 2006 at 12:20 pm
thanks y'all..I can take it from here
February 17, 2006 at 12:44 pm
awesome! Is there any way to view the definition of the trigger?
February 17, 2006 at 11:50 am
It's the same reason I indent and use extra sapces when I code. It pops out at you and says, "HEY! I'm a stored procedure!" There's no...
February 17, 2006 at 10:55 am
this still splits the day up into time sections. Here's the scenerio...
swipe at 11:58 -> myFlag = 1
12:00 -> 6 hour period elapses.
swipe at 12:01
My original post flags both...
February 17, 2006 at 8:11 am
Can you use a view instead of a stored proc for spu_Test_A?
CREATE VIEW vw_Test_01 AS SELECT col0, col1 FROM Test_01
February 17, 2006 at 7:48 am
Viewing 15 posts - 151 through 165 (of 182 total)