Viewing 15 posts - 9,001 through 9,015 (of 13,469 total)
well, it's pretty straight forward to do in a trigger, but i would just make the [edit] column a calculated field instead and get rid of the trigger idea altogether.
...
July 27, 2010 at 5:41 am
i think there's an issue where if you concatenate a varchar(max) with a varchar(somethingless) it will concat to a varchar(8000)
i think you have to explicitly use all (max) variables, or...
July 26, 2010 at 11:32 am
look at what you pasted from BOL: it is NOT doing EXECUTE @SomeVariable = sp_executesql
that is where your error lies. you want to test the value of the OUTPUT...
July 26, 2010 at 9:43 am
you are both asigning the variable to the true/false results, and expecting it to have a parameters OUTPUT; so for a picosecond the @sendmail has a value returned from the...
July 26, 2010 at 8:40 am
what the original poster calls a "group" is what books on line calls a "role". you typically create a role and add the expected rights tot eh role, then add...
July 25, 2010 at 4:05 pm
Brian I have this saved in my snippets as the solution for getting most of the command(DBCC inputbuffer is limited to 256 chars)
this worked at the end of a long...
July 23, 2010 at 9:23 pm
this seems to work for me...
create table old_table(columnOne varchar(30),existing_col int )
insert into old_table
SELECT '119',119 union all
SELECT '129',129 union all
SELECT '125',125 union all
select '100',100
IF NOT EXISTS ( SELECT * FROM...
July 23, 2010 at 3:39 pm
I think you can also switch to dynamic SQL; in that case the ALTER would be fully committed for the next state,ment.
July 23, 2010 at 3:21 pm
it all comes down to connectivity.
for example, if a server is exposed to the internet, you can connect by IPAddress-comma-port instead of machine name: ie 209.191.122.70,1433 and then use a...
July 23, 2010 at 10:55 am
on any one physical server, you may install as many instances as you want under that license.
the license is really per machine, not per instance.
July 23, 2010 at 6:45 am
i had not seen anyone try that before...getting a file from an url.
I'm awful sure the retrieving of an attachment is a file operation only, and the file must exist...
July 23, 2010 at 4:58 am
i don't think you can have variable names with the dash in them...it's interpreted as trying to minus something from the value @sd
change your variable to @sd adn @sdaux and...
July 23, 2010 at 4:53 am
for whatever reason, reading email and/or attachments was possible in SQL 2000, but deprecated for 2005 and above, i believe.
the code to read a POP3 mailbox in .NET is pretty...
July 22, 2010 at 12:09 pm
sushantkumar1984 (7/22/2010)
So the synonyms A,B and C which i created will be local to database level or server level..?
and how to deallocate those synonyms once the use is over?
thanks
Sushant
Virgin...
July 22, 2010 at 9:32 am
sushantkumar1984 (7/21/2010)
like xyz.dbname.dbo.tablename1 A
xyz.dbname.dbo.tablename2 B
...
July 22, 2010 at 6:36 am
Viewing 15 posts - 9,001 through 9,015 (of 13,469 total)