Viewing 15 posts - 6,046 through 6,060 (of 8,416 total)
joshhhhhh
Yes , you will have to shrink the data files in order to release that space from that database. (Shrink might require considerable downtime)
It is generally unwise to shrink a...
February 19, 2010 at 11:18 pm
See Creating Compressed Tables and Indexes in Books Online.
See this blog entry by the SQL Server Storage Engine Team for more information.
SQL Server provides a facility to estimate the space...
February 19, 2010 at 11:08 pm
The CLR solution is faster than T-SQL solution in all but a very few cases - and even then there's not much in it.
Full code, by Adam Machanic, is available...
February 19, 2010 at 10:54 pm
DECLARE @Header
TABLE (
header_id INTEGER IDENTITY PRIMARY KEY,
data ...
February 19, 2010 at 10:43 pm
DECLARE @ProductMaster
TABLE (part_code VARCHAR(50) NOT NULL);
INSERT @ProductMaster VALUES ('S001:Sprocket');
INSERT @ProductMaster VALUES ('W562:Widget');
INSERT @ProductMaster VALUES ('Gearbox');
INSERT @ProductMaster VALUES ('B498:Banana');
INSERT @ProductMaster VALUES ('Q992:Petunia');
INSERT @ProductMaster...
February 19, 2010 at 10:10 pm
TheSQLGuru (2/19/2010)
But in order to do things that are done in many XPs one has to have 'unsafe' CLR, which gets you back square 1.2. 🙂
Even CLR assemblies marked with...
February 19, 2010 at 3:35 pm
Right-click on the database name in Object Explorer, choose Tasks, then Generate Scripts...follow the instructions and be sure to tick the option marked Script Data.
If the tables are large, you...
February 19, 2010 at 3:21 pm
barry.hostead (2/19/2010)
Thanks again for your help, I have got to the point now where I don't want to let this beat me!!
I feel your pain! It is an interesting...
February 19, 2010 at 6:56 am
Thanks for the great feedback there Jon. CLR is definitely a superior option to extended stored procedures!
Paul
February 19, 2010 at 6:54 am
Almost certainly a DDL Trigger. Event Notifications are asynchronous. If you want to be able to roll back the action, you have to be part of the transaction.
February 19, 2010 at 6:49 am
...and here is the link to that section of Books Online:
http://msdn.microsoft.com/en-us/library/ms191250.aspx
Click and enjoy.
Paul
February 19, 2010 at 6:40 am
barry.hostead (2/19/2010)
Thanks for your efforts on this one.
The reason for wanting to return the Contraint Name and Definition in the catch block is because there are multiple...
February 19, 2010 at 6:37 am
oageng_e_baruti (2/19/2010)
It gave me the exact definition that I had used.
The RIGHT CLICK --->DRAG doesn't work. It didn't work. I think may be...
February 19, 2010 at 6:34 am
luckysql.kinda (2/19/2010)
Can't we make the threshold change using GUI? Do I need to run sp_change_log_shipping_primary_database and sp_change_log_shipping_secondary_database?
You can. The details are in the same main section of Books Online.
February 19, 2010 at 6:33 am
This might give you some ideas too:
-- Test table
CREATE TABLE #Test (row_id INTEGER PRIMARY KEY, data VARCHAR(50) COLLATE LATIN1_GENERAL_BIN NOT NULL);
-- Sample data
INSERT #Test (row_id, data) VALUES (1, '1234567890');
INSERT...
February 19, 2010 at 6:23 am
Viewing 15 posts - 6,046 through 6,060 (of 8,416 total)