Viewing 15 posts - 8,776 through 8,790 (of 13,469 total)
that only happens if you run the statement in tempdb. those are real object names, but they were dynamically created by SQL;lots of object names in temp start like that:
from...
September 13, 2010 at 4:17 am
charindex returns the starting position of one item.
to find two items, you need two searches;
CHARINDEX ( ' emergency',CommentColumn) > 0 OR CHARINDEX( 'not secure',CommentColumn) > 0
more likely, you...
September 13, 2010 at 4:10 am
another possbility is to bcp the query to disk, then open it up and find/replace the delimiter(tab,comma?) with </td><td> and replace all CrLf with </tr><tr>;
append the leading and trailing table...
September 13, 2010 at 3:54 am
personally, i like queries as attachments;
at one point, i know i wanted all the data in the html of the email, so i build a simple CLR that formatted the...
September 13, 2010 at 3:51 am
Alvin Ramard (9/12/2010)
Alvin Ramard (9/12/2010)
Gail, you might want to bring a certain piece of steel with you if you go revisit that BIT datatype thread.
That OP is now on my...
September 12, 2010 at 5:27 pm
did your cursor just create the file prior to moving it? it's quite possible that the command to create the file was issued, and the disk sub system is still...
September 12, 2010 at 5:10 pm
is this happening directly in a SQl statement run in SSMS, or are you using something else?
for example, if you are using a typed dataset in .net, which includes...
September 12, 2010 at 3:57 am
rbaskett (9/10/2010)
Dynamic sql works, just curious why pos (plain old sql) doesnt
it's the compiler rules...you've probably seen it:
Msg 111, Level 15, State 1, Line 57
'CREATE VIEW' must be the first...
September 10, 2010 at 1:49 pm
data format nazi
no solution for you!
i guess i'm feeling generous;
I didn't even bother looking at the request, as the lack of consumable data was as far as i cared to...
September 10, 2010 at 1:25 pm
syntax...you can fix that....the original trigger i wrote was tested, so it's gotta be a modification.
note i did test on a 2008 server...there may be a difference if this is...
September 10, 2010 at 1:14 pm
Tara-1044200 (9/10/2010)
great thank a lot Lowell.finally can i use triiger for prohibintg INSERT,UPDATE and DELETE also ?
not a server wide trigger No.
triggers for ALL SERVER can only track LOGON...
September 10, 2010 at 12:31 pm
Tara-1044200 (9/10/2010)
from the above script does it mean that users listed in NOT IN cluse can drop the tables.
Actually my goal is to...
September 10, 2010 at 11:37 am
Tara-1044200 (9/10/2010)
I want to prohibit everyone except User1 and User2...
September 10, 2010 at 9:57 am
because of the error "A triggermust be the first command in a batch"
you have to use dynamic SQL after the IF EXISTS test.
that goes the same for procedure/ function/ view...
September 10, 2010 at 9:51 am
Tara-1044200 (9/10/2010)
September 10, 2010 at 9:43 am
Viewing 15 posts - 8,776 through 8,790 (of 13,469 total)