Viewing 15 posts - 5,641 through 5,655 (of 13,468 total)
here's an example i put together for a different post;
it's getting inserted items, putting them into a comma delimited string(because of course the trigger could have multiple rows!)
for your trigger,...
April 6, 2012 at 12:57 pm
capn.hector (4/6/2012)
April 6, 2012 at 7:57 am
are you storing just the xml in the database, or processing the xml?
if you are processing the xml, don't you stick the data into a Product Sold Table somewhere? then...
April 6, 2012 at 6:06 am
also, save the script as a txt / sql file, not a word doc; depending on your settings for autocorrect, some words could get changed from the actual script in...
April 6, 2012 at 4:58 am
Welsh Corgi (4/5/2012)
Lowell,Hey yeah your right, thanks.
Whatever happened to your Dog Avatar? I liked it. What model is that Gas:-) Mask? I did not see that one before.
yeah my dog...
April 5, 2012 at 2:44 pm
sure, something like this will give you all the spids that are coming from a given hostname...
if i have 8 SSMS windows open, i will have 8 spids, so it's...
April 5, 2012 at 2:17 pm
looks like you already have it there, Welsh Corgi;
you are using the object_schema_name() function, so just add it to your WHERE staetment :
AND OBJECT_SCHEMA_NAME(ep.major_id) = 'CTL'
April 5, 2012 at 1:04 pm
adb2303 (4/5/2012)
I execute the stored procedure and I get 5 rows back
great...working as expected
I disable the 'testsqlacc' in AD and get 5 rows back when exec'ing stored proc
disabling a user...
April 5, 2012 at 10:03 am
jshahan (4/5/2012)
April 5, 2012 at 9:02 am
just my two cents:
if you've created a CLR assemby on one of your servers, it is trivial to script the assembly as a binary string, which can then be executed...
April 5, 2012 at 8:42 am
small world, i'm playing with the exact same thing, and it is working beautifully.
YAddress has posted a nice CLR on codeplex for US addresses , and it hits a free...
April 5, 2012 at 7:33 am
ok...help us help you;
what would you like to do to the data? for example, if you KNOW the datetime string is always at the front, and always has the GMT...
April 5, 2012 at 5:59 am
then just change the join condition to
ON (target.ITEM = source.ITEM)
AND (target.DESCRIPTION= source.DESCRIPTION)
April 4, 2012 at 1:13 pm
something like this passes the syntax check:
MERGE INTO dbo.tableA AS Target
USING(
SELECT ITEM, DESCRIPTION FROM dbo.tableB
) AS source
ON (target.ITEM...
April 4, 2012 at 1:02 pm
just a basic logic error;
a trigger uses the virtual INSERTED and DELETED tables, not the whole table itself.
using the INSERTED table will update only the items that were affected, and...
April 4, 2012 at 8:34 am
Viewing 15 posts - 5,641 through 5,655 (of 13,468 total)