Forum Replies Created

Viewing 15 posts - 736 through 750 (of 921 total)

  • RE: BuiltIn\Administrators

    You should remove the login entirely. Seldom should all network admins also be SQL admins. Even if you're not clustered, the instructions here are relevant:

    http://support.microsoft.com/?id=263712

    --Jonathan

  • RE: GLOBAL FUNCTION

    Must be in master, prefaced with "fn_" and added to system schema, e.g.:

    
    
    USE master
    go
    CREATE FUNCTION fn_Pad(@i bigint, @p tinyint)
    RETURNS varchar(20)
    AS
    BEGIN
    RETURN RIGHT(REPLICATE('0',@p) + CAST(@i AS...
  • RE: VIEW vs Another Table

    If you're "saving" the local data every half-hour, don't you already have it locally and therefore do not need to "return" it from the server?

    I wouldn't use a view or...

  • RE: Composite Keys

    Seems like a good candidate for an artificial key: a four byte integer (or perhaps a two byte smallinteger) rather than a 16 byte key of concatenated char columns. ...

  • RE: Dealing with multiple units of measure

    I don't have enough information to give you a definitive suggestion, but perhaps create a units table and a conversions table and then have columns for both measurement and unit...

  • RE: getdate() function SQL SVR 7

    quote:


    I appreciate the conversion statement but I really need to know how to autoatically populate that field date_entered without supplying the date...

  • RE: how to tell if data is an int value?

    Frank--

    Yes, we seem to have interpreted the question differently.

    Couldn't your loop be replaced by just a set-based solution?

    
    
    WHERE @sz1 LIKE '%[0-9]%'

    Or, more to the point of...

  • RE: how to tell if data is an int value?

    
    
    WHERE ISNUMERIC(STUFF(ColName,1,CHARINDEX('-',ColName),'')) = 1

    --Jonathan

  • RE: Using Temp Table Identity to Rank

    The methods oulined here:

    http://support.microsoft.com/?kbid=186133

    will give you "golf tournament" types of ranking, where ties get the same rank and then skip the next rank number. Test the performance vs. your...

  • RE: Max Memory recommendation?

    quote:


    If you set SQL Server memory to be dynamically allocated, shouldn't it automatically leave memory for the O/S, etc.?


  • RE: Book Online problem

    You've chosen an "Active Subset" in the upper listbox of BOL's Index pane. Simply choose the first entry (Entire Collection) in the listbox. This setting is saved in...

  • RE: NOT IN clause

    quote:


    I need the row except when both NOTs are true. As it stands I don't get the row if either NOT is...

  • RE: Convert Unix Timestamp

    My extra-sensory perception tells me you are in the Mountain time zone of North America.

    UNIX time is Universal (nee GMT, AKA Zulu) time, so you do need to adjust to...

  • RE: Date Constraint

    If by "the current date" you mean including the current time, then just:

    
    
    CHECK (ColumnName BETWEEN GETDATE() AND DATEADD(yy,2,GETDATE()))

    Otherwise, perhaps something like this:

    
    
    CHECK...

Viewing 15 posts - 736 through 750 (of 921 total)