Viewing 15 posts - 7,291 through 7,305 (of 9,643 total)
Nowhere in the code do you have a reference in a FROM clause to the KBAdminTemp.dbo.mstStores table so SQL cannot identify it. You either need to put the table...
October 8, 2008 at 8:09 am
Do you have a dataset? Does the query return data at any other time? Have you populated the detail rows with fields from the dataset?
October 8, 2008 at 8:05 am
I don't understand your question. Do you want to insert data from the 2 tables into a 3rd table or are you just selecting from the 2 tables? ...
October 8, 2008 at 8:04 am
Sergiy (10/7/2008)
Now for OP.
This is how your trigger FOR INSERT should look like:
Update ...
October 8, 2008 at 5:53 am
Dave (10/7/2008)
J (10/7/2008)
October 7, 2008 at 6:20 pm
You could try loading the files into a table and replay the trace from the table.
October 7, 2008 at 2:40 pm
User mapping in the database is based on uid not the name so you should not get the same uid on a new server. You can use sp_change_users_login to...
October 7, 2008 at 1:45 pm
Dave (10/7/2008)
Steve Jones - Editor (10/7/2008)
It's as likely that they chose Oracle because of a few golf games as they like it.
It's been my experience that most "strategic" decisions are...
October 7, 2008 at 11:20 am
I think Lynn probably has an answer that works, so I'll just say that I'm glad the trigger will is written to handle sets. That's rare in these forums,...
October 7, 2008 at 11:17 am
Yelena Varshal (10/7/2008)
Since the question explanation is to query sys.trace_events then I think the trace events should be counted
Yelena,
Thanks for the link.
I'm not sure what you mean when you...
October 7, 2008 at 10:35 am
It's part of the SQL Server 2005 install. I can't remember the exact part you need to install, but it is part of Client Tools and Utilities.
October 7, 2008 at 8:53 am
dr_csharp (10/7/2008)
Jeff Moden (10/7/2008)
dr_csharp (10/7/2008)
CREATE TRIGGER test ON CallRecorder
FOR INSERT
AS
DECLARE @RecId INT;
DECLARE @BeginTime NVARCHAR(8);
SELECT @RecId=RecId,@BeginTime=BeginTime FROM Inserted
set @BeginTime=substring(@BeginTime,1,3);
Update CallRecorder
...
October 7, 2008 at 8:34 am
Here is how I think I'd solve the problem, but without some data I can't guarantee accuracy:
[font="Courier New"];WITH cteUserTargets AS
(
SELECT
U.userid,
U.username + ' ' + u.surname AS...
October 7, 2008 at 8:29 am
You cannot select from a stored procedure. If you need to query data from a stored procedure you need to insert the results of the stored procedure into a...
October 7, 2008 at 8:17 am
Viewing 15 posts - 7,291 through 7,305 (of 9,643 total)