Viewing 15 posts - 4,996 through 5,010 (of 13,460 total)
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...
Lowell
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...
Lowell
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...
Lowell
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...
Lowell
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...
Lowell
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...
Lowell
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...
Lowell
August 9, 2012 at 5:38 am
Donalith (8/8/2012)
Lowell
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...
Lowell
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...
Lowell
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)
Lowell
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,...
Lowell
August 8, 2012 at 11:48 am
much easier to just reset teh password, i think
Lowell
August 8, 2012 at 10:25 am
ok, i corrected your alias problems, but not the logic.
here's the test code; try it, and see the error you get when inserting the second row:
CREATE TABLE TestUniqueNulls
(RowID int IDENTITY...
Lowell
August 8, 2012 at 9:40 am
i'm pretty sure you have to to drop and recreate the linked server;
i'd script the linked server out and change the script.
I'm not much of a GUI kind of...
Lowell
August 8, 2012 at 9:05 am
Viewing 15 posts - 4,996 through 5,010 (of 13,460 total)