Forum Replies Created

Viewing 15 posts - 58,711 through 58,725 (of 59,048 total)

  • RE: How to move text file in Stored Prcoedure

    The use of xp_CmdShell is considered to be a security risk by most DBA's and, I believe, the default is you must have"SA" (not just "dbo" rights to use it.  You...

  • RE: Recusive Hierachy

    rschaeferhig,

    You were quite right... you didn't change much.  In fact, when I built a test Directory and Employees table and inserted the records you showed in a previous...

  • RE: Recusive Hierachy

    Obviously, the code I posted had to be changed to accomodate your particular requirements.  You are correct... something went drastically wrong.  If you could post the schema of your personnel...

  • RE: Recusive Hierachy

    Sure... with examples... I used temp tables for the example so I don't clutter up my hard drive... you don't have to (in fact, I recommend that you don't)...

    June 3, 2005 at 6:28 pm

    #563039

  • RE: Can this be done without using cursor?

    Bull2000,

    If you use the concatenate method using the TAB character (CHAR(9) in code) instead of a comma as a delimiter, the output might just cut&paste into Excel with no other...

  • RE: Date Conversion

    Cory...

    This works the way you want... leading zeros and mm/dd/yyyy format intact...

    DECLARE @Date VARCHAR(30)

    SET @Date = '2/3/2005'

    SELECT CONVERT(VARCHAR(10),CONVERT(DATETIME,@Date),101)

              

    ----------

    02/03/2005

    (1 row(s) affected)

  • RE: question about shrinkdatabase

    The log file probably grew for a pretty good reason. If you shrink it and it decides to grow again, especially if the growth size is small or is a...

  • RE: Stop SQL2K Rounding

    Try this, instead...

    "select boy + REPLACE(STR(age,7,4),' ','') + ' is years old'

  • RE: Date column Auto Convert on INSERT

    If it truly is a "DateTime" column, it just doesn't matter what format you store it in so long as it is one recognized by SQL.  It will have...

  • RE: CHECK Constraint for date format required

    If it truly is a "DateTime" column, it just doesn't matter what format you store it in so long as it is one recognized by SQL.  It will have the...

  • RE: How to use Left Mid Right and hex-to-dec conversion in SQL

    Not trying to be difficult here... hex doesn't normally work quite the way you described so could you post an example of the hex number and what the expected outcome...

  • RE: update database I don''''t know its name till runtime

    Can't be done.  The purpose of having a username and password is to keep people out unless they know the username and password.  Sorry...

  • RE: T-Sql Beginning !!

    I second the nomination on...

    http://www.w3schools.com/sql/default.asp

  • RE: Identifying NULL Dates

    scking,

    I'm curious... what is your objection to using ISNULL or it's big brother, COALESCE?  Yes, CASE works but it's probably not a fast as ISNULL...  your last CASE example could...

  • RE: Insert Date

    Miller Time,

    Don't define the new column as a TimeStamp datatype... the TimeStamp data type in MS-SQL Server is actually a binary number used for row versioning and has nothing to...

Viewing 15 posts - 58,711 through 58,725 (of 59,048 total)