Forum Replies Created

Viewing 15 posts - 91 through 105 (of 161 total)

  • RE: retrieving out of a SQL command into variables.

    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

  • RE: Object Confusion

    the error indicates database corruption.

    see error 605 in BOL .

    HTH

    Paul

  • RE: QOD 10-30

    fooled me too !

  • RE: Re-Post and Apologies

    hi, glad to be of help, I use things like this quite frequently, well worth remembering.

    Paul

  • RE: Re-Post and Apologies

    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,...

  • RE: From DATETIME to SMALLDATETIME

    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...

  • RE: Problem with Books on line

    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 !

  • RE: Average Date time

    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

  • RE: Average Date time

    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,...

  • RE: Average Date time

    hi,

    is that hh:mm:ss ? or something different ?

    Paul

  • RE: Average Date time

    hi,

    does the varchar(20) field contain a datetime ? or is the difference measured in seconds or minutes or days etc?

    Paul

  • RE: Using (nolock) hint on a system table

    thanks for that frank. something i'd missed.

    at least I've learned something today, so the day hasn't been wasted 🙂

    Paul

  • RE: Using (nolock) hint on a system table

    hi,

    syslockinfo is not a 'fake' table. see syslockinfo in BOL

    Paul

  • RE: Table Permissions

    hi,

    are there any triggers on the table ?

    Paul

  • RE: getdate() function SQL SVR 7

    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...

Viewing 15 posts - 91 through 105 (of 161 total)