Viewing 15 posts - 1,531 through 1,545 (of 1,993 total)
last=
select top 1 * from mytable order by myfield desc
first=
select top 1 * from mytable order by myfield asc
??
MVDBA
December 26, 2006 at 3:58 am
C++ is one of the most efficient object orientated languages microsoft offer, however it's also proboably the most difficult of the languages MS offer, which means that developers have...
MVDBA
December 26, 2006 at 3:57 am
i assume you're looking for someting a little more complicated than
select * from family where id_ancestor_m=123456
you're looking for a complete chain of descendants rather than just the children??
are you...
MVDBA
December 15, 2006 at 2:37 am
do you have an identity on the tables ? if so you can't assume the sql will ignore this column
try the following
rather than
insert into tablex select a,b,c...
MVDBA
December 8, 2006 at 9:02 am
hi colin - wonder which company that was??? sounds like the one we've both contracted at ???
MVDBA
December 5, 2006 at 6:09 am
but why ? setting to simple and then back to full acheives nothing other than forcing you to take another backup to start a new LSN chain.
what does setting to...
MVDBA
December 1, 2006 at 1:46 am
i vote for pre-recorded...
the point of attenting one fo these sessions is to listen to the man making the speech.
the point of visual aids is to assiste the man making...
MVDBA
December 1, 2006 at 1:41 am
what on earth are you doing jdixon?
if you set recovery simple you risk breaking the LSN chain so that reverting back to recovery mode full will be useless
you don't need...
MVDBA
November 30, 2006 at 3:33 am
and to find the log file number do the following
use isalog
go
select * from sysfiles
look for the log file and replace the first number of the above command with teh file...
MVDBA
November 28, 2006 at 9:53 am
ok - so just running the following should free ip 14Gb of space
use isalog
go
dbcc shrinkfile (2,1,truncateonly)
assuming that the log file is file number 2
MVDBA
November 28, 2006 at 9:51 am
select convert(datetime,
left(convert(varchar(8),run_date),4)+'-'+substring(convert(varchar(8),run_date),5,2)+'-'+right(convert(varchar(8),run_date),2)+' '+
case len(run_time) when 6 then
left(convert(varchar(6),run_time),2)+':'+substring(convert(varchar(6),run_time) ,3,2)+':'+right(convert(varchar(6),run_time),2)
else
left('0'+convert(varchar(6),run_time) ,2)+':'+substring('0'+convert(varchar(6),run_time) ,3,2)+':'+right('0'+convert(varchar(6),run_time) ,2)
end
)
from sysjobhistory
MVDBA
November 28, 2006 at 8:40 am
i'm not sure why you're not just running dbcc shrinkfile or the shrink commands from enterprise manager.
have you checked the size of your log files - ???
if you can...
MVDBA
November 28, 2006 at 8:14 am
sounds like your sql service account does not have permissions for the file
C:\Arquivos de programas\Microsoft SQL Server\MSSQL\data\varuna70_Data.MDF
MVDBA
November 28, 2006 at 7:41 am
varuna70 if thats what your database is called
MVDBA
November 28, 2006 at 7:28 am
it depends on how the relationship is enforced - but in essence
table a foreign key relates to table b primary key
table a field that relates cannot have any value that...
MVDBA
November 28, 2006 at 6:33 am
Viewing 15 posts - 1,531 through 1,545 (of 1,993 total)