Viewing 15 posts - 91 through 105 (of 161 total)
Hi,
i use this :-
select @load_source = "'c:\temp\FlexKIDS'"
select @sqlstring = "RESTORE FILELISTONLY FROM DISK=" + @load_source
insert into #list_file exec (@sqlstring)
HTH
Paul
November 11, 2003 at 2:42 am
the error indicates database corruption.
see error 605 in BOL .
HTH
Paul
November 6, 2003 at 10:20 am
hi, glad to be of help, I use things like this quite frequently, well worth remembering.
Paul
October 16, 2003 at 4:49 am
hi,
i think this will do the job :-
create table cust_names
(cust_id int, surname varchar(20), forename varchar(20))
insert into cust_names values(1,"Smith", "Brian")
insert into cust_names values (2, "Smith", "John")
insert into cust_names values (3,...
October 16, 2003 at 3:21 am
hi,
the range for smalldatetime is January 1, 1900 through June 6, 2079. if your dates are out of this range then this may be what is causing...
October 15, 2003 at 10:08 am
i too have tried to re-install and i still have the same problem. there doesn't seem to be a pattern to it at all, and it's very annoying !
October 15, 2003 at 7:20 am
datediff returns and integer , regardless of which datepart selected. This is why avg works. This is much neater than extracting it from a string !
Paul
October 15, 2003 at 1:46 am
hi,
what you need to do is to use substring and charindex to get values for hours, minutes and seconds, and convert the value into a total of seconds,...
October 14, 2003 at 10:19 am
hi,
is that hh:mm:ss ? or something different ?
Paul
October 14, 2003 at 9:52 am
hi,
does the varchar(20) field contain a datetime ? or is the difference measured in seconds or minutes or days etc?
Paul
October 14, 2003 at 9:35 am
thanks for that frank. something i'd missed.
at least I've learned something today, so the day hasn't been wasted 🙂
Paul
October 14, 2003 at 4:53 am
hi,
syslockinfo is not a 'fake' table. see syslockinfo in BOL
Paul
October 14, 2003 at 3:45 am
i think you need to have a time with all datetime fields. the only thing i can think of is to set the time to the same for each row...
October 9, 2003 at 10:38 am
Viewing 15 posts - 91 through 105 (of 161 total)