Forum Replies Created

Viewing 15 posts - 2,641 through 2,655 (of 7,429 total)

  • RE: DATETIME: just date and concate time

    Lots of ways to strip the time. Here is how I would do

    DATEADD(hh,5,DATEADD(d,DATEDIFF(d,0,GETDATE()),0))

  • RE: waitresource field in master..sysprocesses table

    Sorry the short name looks odd but found

    quote:


    DB:db_id[BULK-OP-LOG], which identifies the lock taken by the backup log for that particular database....

  • RE: How do you use UDFs?

    Ah, I understand. However if the columns datatype to begin with is a datetime type you will not have to worry about corruption. Only if you are storing in a...

  • RE: How do you use UDFs?

    Can you give me an example of how the query is structured? And exactly how you are working it.

  • RE: waitresource field in master..sysprocesses table

    quote:


    DB: 17 [BULK-OP-LOG]


    DB = Database

    17 = is the database id which you can find out...

  • RE: Update

    Or alternately

    
    
    UPDATE Table1
    SET Table1.NumOfImages = SubQ.Cnt
    FROM Table1
    INNER JOIN
    (SELECT
    COUNT(IQ.KeywordID) Cnt,
    IQ.KeywordID
    FROM
    Table2 IQ
    GROUP BY
    IQ.KeywordID
    ) SubQ
    WHERE Table1.KeywordID = SubQ.KeywordID
  • RE: How to Break a While ?????

    In this situation either BREAK or GOTO will work.

    BREAK will simple stop the LOOP it is in and continue processing beyond that loop so it is inline processing.

    GOTO however...

  • RE: UDF in 7.0

    Has he provided a specific reason for not wanting to upgrade? There is no way to get UDF's in SQL 7 you either write the logic in the client or...

  • RE: How do you use UDFs?

    I generally use UDFs but only in the capacity of the columns output for the select statement. So

    SELECT col, col, udf(col) as x, col... FROM tbl

    I tend to avoid them...

  • RE: delta processing: alternative to cursor

    quote:


    Is the following statement a valid example of the checksum-statement ? I've read about the * on msdn (-which does not...

  • RE: xp_servicecontrol

    quote:


    If MSSQLSERVER is running under an admin account you certainly can.

    Reminds me of the time I used it (for security...

  • RE: Setting Up SQL Server

    Ared you getting an error?

    Also you state for Northwind but you conenction has pubs as the initial catalog.

  • RE: xp_servicecontrol

    No secret there. I just ran it on my testbox here to see what happens when. The only thing that is confusing is that it gives the following error

     
  • RE: xp_servicecontrol

    Here you go.

    Parameter 1 can be any of the following.

    start

    stop

    pause

    continue

    querystate (Almost forgot that one as noted in previous posters post).

    Parameter 2 is the Service Name.

    For example "FTP Publishing Service"...

  • RE: QOD 30/07/2003 - Another Documentation Error???

    I just answered wrong myself. But looked up afterwards in BOL.

    In the topic "Hardware and Software Requirements for Installing SQL Server 2000" under "Installing SQL Server" you will find the...

Viewing 15 posts - 2,641 through 2,655 (of 7,429 total)