Viewing 15 posts - 13,561 through 13,575 (of 15,381 total)
You can't do that directly like that. You could insert the results of your proc to a table variable first though.
declare @MyTable table
(
ValueColumn varchar(20),
...
November 7, 2011 at 1:37 pm
I assume you are trying to figure out your data structures for this type of thing? Why not take a stab at it yourself and then post your table create...
November 7, 2011 at 11:34 am
Try CAST(s.productId AS VARCHAR(10)). The way you had it made it think that CAST is a column in s. Your convert would work the same way.
November 7, 2011 at 11:20 am
solomon.yakobson (11/7/2011)
Sean Lange (11/7/2011)
OH this is a ddl trigger.Well, database trigger is DDL trigger. Anyway, thanks for the link.
SY.
Yeah just me being dense. 😛 Hope that helps explain it.
November 7, 2011 at 11:15 am
OH this is a ddl trigger. You can't add a signature to DDL triggers. http://social.msdn.microsoft.com/Forums/en/sqlsecurity/thread/1333eecd-4c66-43d4-ab8f-03511cad4174
November 7, 2011 at 9:41 am
Not exactly sure what you need but either dateadd or datediff functions should get you what you need. check them out on BOL.
November 7, 2011 at 9:26 am
Your syntax looks right. I am guessing that since you are still uncertain about the ability of adding this signature to a trigger that you didn't look at the article...
November 7, 2011 at 8:54 am
That sounds like a permission issue. You can add a signature to a trigger. http://msdn.microsoft.com/en-us/library/ms181700.aspx
November 7, 2011 at 8:09 am
Sounds like a running total problem. Check out this article from Jeff Moden. http://www.sqlservercentral.com/articles/T-SQL/68467/%5B/url%5D Make sure you read all the way and pay close attention to the quirky update method....
November 7, 2011 at 7:50 am
Brandie Tarvin (11/7/2011)
Sean Lange (11/4/2011)
November 7, 2011 at 7:38 am
Take a look at this article from Jeff Moden. http://www.sqlservercentral.com/articles/T-SQL/74118/%5B/url%5D
I realize you are not counting but your join is the same concept. It explains why performance gets awful as the...
November 7, 2011 at 7:36 am
Cool. Glad you figured it out and thanks for letting us know and welcome!!!
November 4, 2011 at 2:37 pm
Sounds like you need the cascading delete and an insert trigger on the master. In your trigger just insert into the peer review table the new metric. No need to...
November 4, 2011 at 2:23 pm
klc0000 (11/4/2011)
Ok so I have 3 tables:
- a table of employee info (tblEmployee), like ID, firstname, lastname, department, etc.
- a table...
November 4, 2011 at 1:53 pm
You bored Tom? You keep answering and commenting on qotd from 4 years ago. 😛
November 4, 2011 at 12:57 pm
Viewing 15 posts - 13,561 through 13,575 (of 15,381 total)