Viewing 15 posts - 8,986 through 9,000 (of 13,461 total)
i believe when you google as instructed above,you'll finds posts referencing how when you connect via the Dedicated Admin Connection(DAC), everything is decrypted for you, so you could script...
July 28, 2010 at 9:25 am
your table dbo.deleted_table, has an identity column in it, don't stick a value in it .
actually name each and every column that SHOULD receive a value from the insert instead.
INSERT...
July 28, 2010 at 7:35 am
well, obviously it would be betrter to redesign the proc so it can run concurrently, but that's a future enhancement.
I think you are right, you'll have to use some sort...
July 28, 2010 at 7:22 am
ipconfig will return information about the SERVER's NIC card...it would not have any information about the connecting users. that code might seem to work if your SQL server is also...
July 28, 2010 at 6:45 am
you have to use the EXECUTE AT [LinkedServerName] syntax to do that; 4 part names are DML only, so you cna insert/update/delete to a 4 part named object like MyLinkedServer.DatabaseName.Schema.Table,...
July 27, 2010 at 10:02 am
this will give you the trigger name and the definition for everything in a given database:
--SQL 2000:
select
sysobjects.name,
syscomments.text
from syscomments
inner join sysobjects on...
July 27, 2010 at 7:53 am
probably the easiest way is to to set it to single_user:
alter database emptyexample set single_user with rollback immediate
drop database emptyexample
July 27, 2010 at 6:04 am
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
Viewing 15 posts - 8,986 through 9,000 (of 13,461 total)