Viewing 15 posts - 3,961 through 3,975 (of 7,164 total)
It would help immensely if you were to provide the DDL for the destination table, and a representative sample of the data that would reside in that table using the...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 3:31 pm
SQL Server is unaware of the image format. You could store a Word doc or a PDF in a VARBINARY(MAX) column for all it cares. The bits are stored in...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 3:26 pm
:exclamation: Note: this is a year-old thread.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 3:18 pm
Koen Verbeeck (5/24/2012)
opc.three (5/24/2012)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 3:16 pm
I'll second, third, and fourth that...education, education, education!
If that is a lost cause, I know it was in some shops where I have been, you might look into enabling...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 2:37 pm
It is a function, not a global variable. Try it like this:
return SCOPE_IDENTITY()
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 2:25 pm
A no-cursor option:
DECLARE @sql NVARCHAR(MAX);
SET @sql = N'';
SELECT @sql = @sql + 'EXEC msdb.dbo.sp_send_dbmail
@recipients = ''' + REPLACE(email,'''','''''') + ''',
@subject...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 1:36 pm
This may help:
SELECT TOP 10
DB_NAME(x.dbid) AS db,
OBJECT_SCHEMA_NAME(x.objectid, x.dbid) AS schemaname,
...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 1:16 pm
Drenlin (5/24/2012)
I have enough understanding to play further.
By all means dig in and learn the internals but there is no sense in re-inventing the wheel. May I recommend a solution...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 10:04 am
Koen Verbeeck (5/24/2012)
opc.three (5/23/2012)
MisLead (5/23/2012)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 10:01 am
What bruce provided is exactly what I described. You can use the Split-Path cmdlet to get the directory names as you move thorugh the collection of data and log files....
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 24, 2012 at 7:43 am
sqlfriends (5/23/2012)
Thanks, so when in what situations we should run update usage?
Read the Remarks section here: DBCC UPDATEUSAGE
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 23, 2012 at 3:37 pm
sqlfriends (5/23/2012)
Thanks, does udpateUsage need to be run after I changed the database compatiblity from 2005 to 2008?
No, compat mode is not a concern for udpateUsage.
I see it uses statistics...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 23, 2012 at 2:59 pm
sqlfriends (5/23/2012)
Can we run [index rebuild and checkdb] maybe a week after the server swap?
Sure. If you have to pick and choose then skip running checkdb and skip rebuilding all...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 23, 2012 at 2:24 pm
None are technically required. All three are a good idea. I would do 3 before 2 and would use sp_updatestats or UPDATE STATISTICS WITH COLUMNS on all tables.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 23, 2012 at 1:55 pm
Viewing 15 posts - 3,961 through 3,975 (of 7,164 total)