Viewing 15 posts - 4,951 through 4,965 (of 13,465 total)
ok, inside a DML trigger, here's what is happening in SQL server:
the values someone changed, are already in the table WHATEVER. if you query the table inside the trigger, the...
August 13, 2012 at 3:26 pm
you shouldnt' assume the commands start with your expected keyword..comments, whitespace, lots of other things can prevent you from determining it was insert/update.delete.
i would do it like this, using the...
August 13, 2012 at 3:02 pm
obligatory compatibility nazi post:
sysindexes should be replaced with sys.indexes, as it's going to be dropped in some future version.
August 13, 2012 at 2:28 pm
@Erin my knee jerk reaction was to check if there was something in the extended events to do what you are asking, but i'm just not seeing anything;
to me it...
August 13, 2012 at 12:06 pm
they are recovered , sequentially, master database first.; but each database seems to get it's own spid to startup, and some spids finish before others spids created after it.
if one...
August 13, 2012 at 11:55 am
also you can simply create a DML trace on the database and capture all that information as part of a couple of events i think;SQL:BatchCompleted and RPC:Completed is what...
August 13, 2012 at 11:42 am
Erin Ramsay (8/13/2012)
Is there a way to set that DBCC inputbuffer code on the database level so that when ANY trigger fires you can get the schema name, table...
August 13, 2012 at 11:36 am
LOL John it's feedback like that, knowing I helped someone, that really makes my day!
inside a DML trigger, it's a differnet technique, but you bet I have examples of that...
August 13, 2012 at 10:01 am
joshphillips7145 (8/13/2012)
So the variable @SearchParam goes with the function?
it could, yes; the requirements are still a bit vague;
if this is just "how to create a function( not a stored procedure),...
August 13, 2012 at 9:49 am
well the error implies you used a four part naming convention to reference a table/stored proc/view.
something like
SELECT * FROM SGEXP01.DatabaseName.dbo.TableName.
if SGEXP01 is a database name, then you have a...
August 13, 2012 at 9:21 am
Well lets think it through Josh;
an end user is using some sort of search function, is that the idea?
do you need to search all the columns in your table, or...
August 13, 2012 at 9:17 am
guerillaunit (8/13/2012)
Lowell, what exactly is a "tagname" in XML?
just like html, a tag is just a descriptor that describes or names it's contents.
only in a specific context might it...
August 13, 2012 at 9:02 am
if you were actually building xml strings, the value inside would be a tagname for the XML.
SELECT
name
FROM sys.columns sc
FOR XML PATH('ParentTag')
One of the neat things...
August 13, 2012 at 8:38 am
if you are seeing it in the data values , it could be some process is sending a value for the column with the default; values inserted take precendence over...
August 10, 2012 at 2:00 pm
i couldn't duplicate the behavior yet; the tables i scripted out get teh default value with all zeros, whether in the constraint definition, the scripting of the table or in...
August 10, 2012 at 1:59 pm
Viewing 15 posts - 4,951 through 4,965 (of 13,465 total)