Forum Replies Created

Viewing 15 posts - 256 through 270 (of 346 total)

  • RE: Need fast help creating a counter using loop

    Post your query.  Sounds like a GROUP/COUNT problem.


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Sudden stored proc problem in 2000.

    Does the stored procedure have parameters?  Are you running the stored procedure with the same parameters as the ASP page runs it?


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Table Column as Variable

    So change the select to read:

    SELECT * INTO #d2 FROM deleted

    SELECT @tcolname = ('SELECT '+@colname+' FROM #d2')

    EXEC (@tcolname)

    That will eliminate the error of #deleted already being there


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Network Error

    Can you run that command in a CMD window ON the server?


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Need a fresh approach to something quite simple

    CONVERT(CHAR(10), expression, 21) will convert the date to yyy-mm-dd


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Problem with XP_CMDSHELL ''''DIR .....''''

    Are you deleting files that are older than a certain date?  In my backup jobs I just delete ANY non-zipped backups that are out there, then do my backup.  I also...


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Need a fresh approach to something quite simple

    I guess Daryl beat me to the Post Reply button.


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Need a fresh approach to something quite simple

    Try this:

    SELECT CONVERT(CHAR(8),citrixfarm.SDB_SESSION.SESSIONSTART,101), COUNT(*)

    FROM    citrixfarm.SDB_SESSION

    INNER JOIN

     citrixfarm.LU_APPNAME

    ON

      citrixfarm.SDB_SESSION.FK_APPNAMEID = citrixfarm.LU_APPNAME.PK_APPNAMEID

    WHERE  citrixfarm.LU_APPNAME.APPNAME IN ('DESKTOP', '20 DESKTOP')

    GROUP BY CONVERT(CHAR(8),citrixfarm.SDB_SESSION.SESSIONSTART,101)

     

     


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Problem with XP_CMDSHELL ''''DIR .....''''

    One thing that you could try is to add the /n to the DIR command.  That will display the date as the first column in the results. 

    If the row has...


    Live to Throw
    Throw to Live
    Will Summers

  • RE: inserting in 2 tables simultaneously

    Gotta disagree with your fellow colleague.  When you export the data, just turn off the identity column on the destination table and then turn it back on afterwards.  Make sure...


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Problem with XP_CMDSHELL ''''DIR .....''''

    Can you post the exact code that you are having trouble with?  I have done a lot of work with xp_cmdshell and should be able to help you out.


    Live to Throw
    Throw to Live
    Will Summers

  • RE: hyderabad dba institutes

    I originally opened this post because I thought it was a joke.  (Hyderabad sounds like hire-a-bad)  Where is Hyderbad located?


    Live to Throw
    Throw to Live
    Will Summers

  • RE: I badly need to insert filename along with data in DTS package and am losing on this one

    I think I have a simple solution for you, but I want to be sure that I know what you want.

    Do you want the column name to be the filename, or...


    Live to Throw
    Throw to Live
    Will Summers

  • RE: What version of VB does DTS actually use?

    I had already found that out, I just hadn't had time to post the fix.  Why is there so many examples of using the Set command to assign variables on...


    Live to Throw
    Throw to Live
    Will Summers

  • RE: Can''''t open an existing excel file!

    Excel wasn't installed on the server.  I assumed that it was because DTS had the ability to generate an excel file.  My original code now works.


    Live to Throw
    Throw to Live
    Will Summers

Viewing 15 posts - 256 through 270 (of 346 total)