Viewing 15 posts - 5,101 through 5,115 (of 7,502 total)
Maybe.
If you add columns not null with an actual default value, rows will be rewritten, so in that case, yes , then the old columns will be gone.
Otherwise no because...
March 10, 2008 at 2:06 pm
if you just want to kick everybody out user alter database
alter database xyz set single_user with rollback immediate;
restore database xyz
...
keep in mind NOT to place a "go" in between...
March 10, 2008 at 2:04 pm
can you provide some more specific info ?
OS ? (+ sp)
SQL version + sp
exec sp_configure 'show advanced options' , 1
exec sp_configure -- information (extended info activated please)
This mainly to...
March 10, 2008 at 8:49 am
did you grant all sqlservers service accounts the needed folder authorities for the new location ?
March 10, 2008 at 8:37 am
Looking good.
Indeed the delete statement does not need the "*" :blush:
Think DRP: start with a full db backup for this operation !
Since this proc only has this single while loop...
March 10, 2008 at 8:27 am
DBA (3/10/2008)
March 10, 2008 at 7:52 am
- that may be a good option if 2M is the majority or rows in your table.
- If not, you may want to use a while loop to just delete...
March 10, 2008 at 6:59 am
I'm sorry I've forgotten to mention just to put my code
right before the housekeeping section (last line) of Jeffs.
:blush:
-- put my code overhere
--===== Housekeeping
DROP TABLE #Tally
March 10, 2008 at 6:44 am
you could start with the using the new sql2005 except join
then unpivot the resultset
and then check for the differences.
remarks: datatypes will get converted to varchar(max)
(I did put max...
March 10, 2008 at 3:31 am
Sergiy (3/9/2008)
SELECT @SaleAmount = @SaleAmount * (1-Amount)FROM dbo.Temp_Discount
ORDER BY OrderID
There is a very nice must read article bij Jeff Moden regarding this construct.
http://www.sqlservercentral.com/articles/Advanced+Querying/61716/
March 10, 2008 at 2:08 am
Like Chad Slagle explained, if you can, contact a sysadmin / serveradmin to run SQLUA for you, so SQLUA can provide you the most possible info.
March 10, 2008 at 2:01 am
And the example Jeff provided only handles a variable a couple of times.
I've added this bit, to get the data actualy in a couple of tables and
the effect only...
March 10, 2008 at 1:33 am
there is also a doc (cannot recall right now) wich describes the 8060 pagelimit (fixed datatypes)
it states that if the rowlength for the fixed datatypes + varchar datatypes exceeds 8060...
March 7, 2008 at 10:52 am
- if only hardware is your concern, maybe you should opt for a number of named instances of sqlserver.
With WSRM you can "guarantee" a percentage of processor(s) to any single...
March 7, 2008 at 7:50 am
with SSIS you can use the script component !
that one supports vbs.
March 7, 2008 at 4:56 am
Viewing 15 posts - 5,101 through 5,115 (of 7,502 total)