Viewing 15 posts - 8,806 through 8,820 (of 13,461 total)
Craig Farrell (9/7/2010)
I think you're looking for something like:CREATE TRIGGER tr_test ON dbo.A FOR INSERT AS
UPDATE inserted
SET col1 = <value>
where col1 = 'm'
UPDATE inserted
SET col2 = <value2>
where col2 = 'n'
END
can...
September 7, 2010 at 3:43 pm
the core of the trigger is going to be something like this, but you didn't provide all the info needed. what values would col1 and col2 actually be assigned?
UPDATE...
September 7, 2010 at 3:01 pm
there's an article on something similar labeled "exotic joins" i think; if you search and read that, it can help you understand some of the less logical reasons to join...
September 7, 2010 at 1:49 pm
looked like the "enhanced" version has an error in it;
this is my slightly edited version of the same script; it runs without errors on both a 2005 and 2008 database:
September 7, 2010 at 1:00 pm
take a look at this wonderful script contribution:
Comprehensive HTML Database Documentation(Revised)[/url]
it produces well formatted, informative html document, which you could then copy and paste into excel, or open with excel.
I've...
September 7, 2010 at 11:38 am
i went to the trouble of creating a stored proc that does this;
as previous posters already identified, the actual statement is never saved...all you can do is script out the...
September 7, 2010 at 7:56 am
i think the 2005 %%LockRes%% row identifier and the 2008's equivalent %%physloc%% only tell you how the data is stored, which is based in the clustered index of the table...
September 6, 2010 at 6:36 pm
i have this saved in my snippets as a DR framework from a post that appeared on SSC fairly recently...I thought simon provided a pretty good list of things to...
September 6, 2010 at 11:28 am
also notehow a DEFAULT constraint is used! default does not mean "replace null with the default value", it means "if not included, use THIS"
if you include a value in your...
September 3, 2010 at 4:15 pm
Mike Byrd (9/3/2010)
This is after a re-enable of the constraint. Now I want to get the constraint back to a is trusted state.
i thought re-enabling the constraint prevents future...
September 3, 2010 at 12:00 pm
if you disable FK's, then insert, then renable, a FK is is_not_trusted = 1 if there is data in the child table that violates the FK constraint right (like inserting...
September 3, 2010 at 11:14 am
another option is that SSIS can migrate data both to-and-from SQL to another data source....all you need is an ODBC connection.
you could set up a package with the import/export wizard...
September 3, 2010 at 11:04 am
run the msi and click next five or six times....
seriously, an "application" server is just another server that is being used for a specific purpose.
you would have to decide if...
September 3, 2010 at 9:25 am
I believe that you can connect as sa(if you know the password), and then add the the right groupsto the sysadmin group.
otherwise as a local administrator, you need to connect...
September 3, 2010 at 9:21 am
Viewing 15 posts - 8,806 through 8,820 (of 13,461 total)