Viewing 15 posts - 6,421 through 6,435 (of 13,460 total)
i think the issue is related to teh name not being #tbl_temptable, but actually [#tbl_temptable[100underscores]0000000000F0]
for example. if you do this after you know your table exists :
SELECT table_name,
column_name 'Column...
Lowell
November 11, 2011 at 11:32 am
the INTO belongs outside of the openquery:
CODE
SELECT *
into #tlb_testfile
FROM OPENQUERY(test_TERADATA,
'select *
from databse.file
where
datacode=''49548''
;')
Lowell
November 11, 2011 at 10:33 am
if you have a datetime column for WHEN the data was actually entered, you could compare that to a TallyCalendar table(which you wanted to avoid) and get the DST offset.(ie...
Lowell
November 11, 2011 at 10:31 am
sp_changeobjectowner 'wrongschema.procname','dbo'
Lowell
November 11, 2011 at 10:19 am
a lot of the work around examples so far would return false positives if the values are two or more digits, thought right? 2|5|21|23|55 for example
redesign, or split the data...
Lowell
November 11, 2011 at 10:10 am
Ninja's_RGR'us (11/11/2011)
SQL takes memory because it needs it and lives happily ever after. Period, end of story.
there. fixed it for you. 😛
Lowell
November 11, 2011 at 9:52 am
ok peers: poke holes in this: this seems to do what the oldstype autfox would do, right?
well...this just generates the statements...i'd have to execute them:
SELECT CASE
...
Lowell
November 11, 2011 at 9:48 am
daveriya (11/11/2011)
but i know i have selected correct database on...
Lowell
November 11, 2011 at 9:35 am
in theory, we should start using the ALTER USER xxx WITH LOGIN =xxx syntax for fixing orphaned users now, right?
what do you typically do if a USER exists in a...
Lowell
November 11, 2011 at 9:32 am
make sure you didn't create it in the master database by mistake.
it's possible that it is in the "System Stored Procedures" folder if someone ran EXECUTE sp_ms_marksystemobject 'YourProcName' on the...
Lowell
November 11, 2011 at 9:25 am
kick yourself:
EXECUTE @sqlstmt looks for a stored procedure.
EXECUTE (@sqlstmt) executed they dynamic query.
Lowell
November 11, 2011 at 8:31 am
dammit...tricked into doing homework again, is that what you are saying, my friend? 😀
Lowell
November 11, 2011 at 8:16 am
is the server witht eh memory problem one of many on the same virtual server? could it be that instances are eating up 100% of the available memory, and #20...
Lowell
November 11, 2011 at 8:14 am
there's no need to test an EXISTS either...if you are in the trigger, of course there are rows.
this will be what you are after i think:
CREATE TRIGGER Trgr_Update_LastModifiedOn
ON SERVERINFO
AFTER UPDATE
AS
...
Lowell
November 11, 2011 at 8:06 am
NO.
your error is a logical one:
look at your trigger, it says this:
UPDATE SERVERINFO
SET LASTMODIFIEDON = GETDATE()
that...
Lowell
November 11, 2011 at 8:04 am
Viewing 15 posts - 6,421 through 6,435 (of 13,460 total)