Viewing 15 posts - 4,996 through 5,010 (of 13,465 total)
lol i was testing a different forum post and got stopped by this trigger!
that's hilarious for me.
i went ahead and dropped it on my server now 🙂
August 9, 2012 at 9:00 am
Encryption was introduced in 2005, but the methods are still teh same, even for 2012;
I relaly liked this article enough to bookmark it: and keep it and it's code in...
August 9, 2012 at 8:38 am
Scott D. Jacobson (8/9/2012)
do you have to do this in TSQL?
I think Lowell's right here. There are an infinite number of solutions to this problem that don't involve...
August 9, 2012 at 8:19 am
interesting requirement;
i just tested this trigger as both ON DATABASE and ON ALL SERVER, and it worked fine in my brief testing;
i was able to create temp tables without a...
August 9, 2012 at 8:01 am
parameters for a vbs file are limited in size for the command line...4096 chars max length, i think, right?
so while you could send parameters to teh fiel (no spaces allowed...
August 9, 2012 at 7:32 am
i think you can do it like this?
EXECUTE ( 'TRUNCATE TABLE SalesTable' ) AT MyLinkedServer;
that code example is how i can calla CREATE TABLE command at a remote, i...
August 9, 2012 at 7:03 am
a couple of other possibilities;
create lots of global temp tables, with a naming convention like #temp_51 (dynamic SQL = 'CREATE TABLE #tmp_' + CONVERT(varchar,@@spid) )
then in your procs, you'd have...
August 9, 2012 at 6:34 am
database mail is disabled, but xp_cmdShell is enabled?
that is so backward security wise.
did you try the process you outlined here and sent something to yourself? did it work?
let me help...
August 9, 2012 at 6:12 am
OK some fresh thoughts this morning.
you should be able to :
SELECT
@BeginMeasure MIN(BeginMeasure ),
@EndMeasure = MAX(EndMeasure)
FROM #RptParms
then you can use the logic i posted previously; you'll...
August 9, 2012 at 5:38 am
Donalith (8/8/2012)
August 8, 2012 at 1:27 pm
Donalith there would be some performance hit, yes:
if there is an index on APImport.Description, then the LIKE can use the index to find the value(s) that match.
by getting a...
August 8, 2012 at 1:05 pm
if you do that, then all 146K rows in
EDWGEARS...VW_FRED_AADT_HIST will get copied over to tempdb, adn then the join will occur.
I'm thinking that's the best solution: get a...
August 8, 2012 at 12:59 pm
it's syntax;
it's like this:
Warranty1 = (
Case
When APImport.Description like 'Enduro%'
then (DateAdd(year,1,APImport.DateShipped))
ELSE NULL
End)
August 8, 2012 at 12:46 pm
testing testing testing.
that's the key.
here's your updated script; i can insert 'josh' multiple times.
DROP TABLE TestUniqueNulls
CREATE TABLE TestUniqueNulls
(RowID int IDENTITY NOT NULL,
NoDupName varchar(20) NULL)
GO
Create Trigger NoDuplicates
On TestUniqueNulls
After Insert,...
August 8, 2012 at 11:48 am
Viewing 15 posts - 4,996 through 5,010 (of 13,465 total)