Forum Replies Created

Viewing 15 posts - 23,371 through 23,385 (of 26,490 total)

  • RE: Command line to unzip file using winzip32

    You need to put double quotes around the filename, like this: "C:\Information technology\Dral\Dral_ENC.zip"

  • RE: Problems with CASE in WHERE

    Just so you know, this is a MS SQL Server site. There may not be many people here who will be able to help you with PL/SQL. Most...

  • RE: Deleting a few million rows

    Here is some code you can work with. If you have a test environment, test it there first. You do need to make some adjustments to the code...

  • RE: VERY SLOW query

    Andrew.Buis (12/4/2008)


    Also, I couldn't figure out why it wouldn't allow me to DECLARE a variable in a tvf, else that would be much more readable.

    Because you are working with an...

  • RE: VERY SLOW query

    What is your fiscal year for reporting? For instance Fiscal Year 2009 (our current fiscal year) is July 1, 2008 through June 30, 2009.

  • RE: UPDATE SET =NULL running over an hour

    May I ask another dumb question? If you are going to update these fields using another procedure, why are you trying to set them to null, why not just...

  • RE: UPDATE SET =NULL running over an hour

    Here is another idea. The first update will take about 49 minutes (as seen earlier), but the second should actually run faster!

    declare @BatchSize int;

    set @BatchSize = 10000;

    while exists(select 1...

  • RE: UPDATE SET =NULL running over an hour

    Never mind my post above, it won't work. I am having a brain dead day here at work and it is seeping over to here. You'd still need...

  • RE: UPDATE SET =NULL running over an hour

    [font="Arial Black"]IGNORE THIS POST, but I still want people to see it.[/font]

    My original code:

    declare @BatchSize int;

    set @BatchSize = 10000;

    while exists(select 1 from dbo.Claims where admission_date is not null

    begin

    ...

  • RE: UPDATE SET =NULL running over an hour

    Doug (12/3/2008)


    Thanks Lynn for your input, but it's not helping me much. I ran the script you posted and the 1st statement had 213 batches and took 49 minutes....

  • RE: UPDATE SET =NULL running over an hour

    If your database is using the simple recovery model, t-log backups aren't needed. I put that comment in for two reasons; one, you didn't mention the recovery model the...

  • RE: Date function to jump from last day of month to last day of month+n

    Or this:

    declare @InputDate datetime,

    @Increment int;

    set @InputDate = getdate();

    set @Increment = 0; -- Find EOM for current month

    select dateadd(mm, datediff(mm, 0, @InputDate) +...

  • RE: Date function to jump from last day of month to last day of month+n

    Here is some more code for you to review:

    declare @InputDate datetime,

    @Increment int;

    set @InputDate = getdate();

    set @Increment = 0; -- Find EOM for...

  • RE: VERY SLOW query

    What I would suggest is using the TVF to load properly indexes temporary tables with the appropriate data, then use the temporary table in your master query for reporting.

  • RE: Database Restore Bingo

    Should not be an issue either. I would start looking a permissions, on the directories you are attempting to restore the databases, as well as that of the user...

Viewing 15 posts - 23,371 through 23,385 (of 26,490 total)