Viewing 15 posts - 3,031 through 3,045 (of 13,461 total)
take a look at teh script mister magoo built in this similar barcode 128b thread:
http://www.sqlservercentral.com/Forums/Topic1470917-392-1.aspx
with that and a bar code font, i think you would have everything you need
July 30, 2013 at 6:57 am
your trigger is very close;
inside a trigger, isntead of using @@identity, you wnat to use the virtual tables INSERTED (or DELETED, where approriate);
that virtual table allows oyu to handle multiple...
July 30, 2013 at 6:28 am
i would disagree that restoring system databases is going to save you any work.
I personally prefer to script out things like certificates, master keys, linked servers and logins, and jobs...
July 30, 2013 at 6:09 am
i have a big proof of concept CLR project that is filled with items i either create myself, or find here on SSC.
I just keep adding to it as I...
July 30, 2013 at 5:05 am
best_yunus (7/29/2013)
Thanks a ton man.I modify this script according to me and it worked smoothely..
🙂
Superb..
glad i could help; it's so much easier to take an example and adapt!
enjoy!
July 29, 2013 at 2:28 pm
there are dozens of scripts here on SSC for scripting out jobs:
http://www.sqlservercentral.com/search/?q=script+jobs&t=s
so from there you could then add a WHERE filter to any of those to limit to a...
July 29, 2013 at 12:37 pm
i know i could do it via TSQL, with two separate queries.
you could use a FOR XML to generate an html compatible BODY and a separate query for the sp_send_dbmail's...
July 29, 2013 at 12:19 pm
um, no.
your if statement makes the trigger no longer support multiple rows.
if i have, say five rows being updated, what row is this supposed to test?
IF INSERTED.review = 0
a great...
July 29, 2013 at 8:57 am
margrests example returns a lot of false matches, becasue'ca' appears in a large number of values int hat string. searching for comma-space-CA was really the oinly way to do it...
July 29, 2013 at 8:38 am
performance typically has a lot more to do with
1. the sarg-ability of the queries hitting the database,
2. the accuracy of the statistics on the data and
3. the...
July 29, 2013 at 6:29 am
for individualized emails, i think you'll need two things:
a cursor to go thru the list of email recipients, and which builds the custom subject/body
sp_send_dbmail to actually send the email.
do you...
July 29, 2013 at 6:09 am
Thomas no sense reinventing the wheel; it sounds like you want to search for "free work order system" or "free support ticket system" and maybe include "sql" in it to...
July 26, 2013 at 3:08 pm
dwilliscp (7/26/2013)
July 26, 2013 at 1:14 pm
that extra requirement is easy;
we have to compare the INSERTED row to the DELETED row, and compare in a WHERE statement:
WHERE INSERTED.[Comments] <> DELETED.[Comments]
here's the trigger model again with...
July 26, 2013 at 12:46 pm
yep, that was because of the construction of your trigger:
the [Document] = (select [Document] FROM INSERTED) would make the old trigger fail if more than one row was updated.
my trigger...
July 26, 2013 at 12:27 pm
Viewing 15 posts - 3,031 through 3,045 (of 13,461 total)