Forum Replies Created

Viewing 15 posts - 406 through 420 (of 1,583 total)

  • RE: How to shrink log in 2008 r2? URGENT!!!!!!

    Where "X" is the new drive?

    USE [master]

    GO

    ALTER DATABASE [YOURDB] ADD FILE ( NAME = N'tmpLog', FILENAME = N'X:\TempLog.ldf' , SIZE = 3072KB , FILEGROWTH = 1024KB ) TO FILEGROUP [PRIMARY]

    GO

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: How to shrink log in 2008 r2? URGENT!!!!!!

    Can you create a "temporary" log file for the database on another drive to get around the log file issue?

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: How to shrink log in 2008 r2? URGENT!!!!!!

    I don't believe there's much you can do until the process(es) completes. Your log file is being written to and it won't allow the space in the file to be...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Time of Day Trigger

    I thought the same thing Jeff, but figured it was probably because either they didn't have permissions to create an Agent job or because they have hundreds of them and...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Time of Day Trigger

    Create a *.bat file and use sql command to execute it - then create a scheduled task to execute it @Echo Off

    set ServerName=YOURSERVER

    set DBName=YOURDATABASE

    set sql_login=USERNAME

    set sql_passwd=PASSWORD

    if...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: random records

    Would this work? DECLARE @Rand INT

    SET @Rand = (RAND() * 20) + 10

    SELECT TOP @Rand FROM MYTable WHERE SomeIntColumn > @Rand

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: How to update a Table using Loop?

    @OP - What you can take from this is everyone's answer is showing you a better way of doing to UPDATE so you can AVOID the loop 🙂

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: SQLServer 2005 to Oracle 10g migration

    How much data are you talking about and what process do you already have in the works? It could very well be you have a good process going and shouldn't...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Issue in peer-to-peer replication

    How much data are you talking about? A couple million rows or hundreds of millions? If the lesser you could create an ancillary table to hold the "proper set of...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: SQLServer 2005 to Oracle 10g migration

    Not 100% certain about the Oracle SQLDeveloper tool but if the data is straightforward, I would simply use SSIS or bulk import of sorts

    This link may help you out (it...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Issue with sp_prepare

    Is the use of sp_prepare and sp_unprepare required by the driver?

    In my past experience with this, doing this in separate steps typically increases the total time involved because you are...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Problem with date variables

    What's the execution plan look like? It'd be great if you could post that and your index script.

    My guess is you have an index scan on the date index and...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Not able to access database - but what object is being sought?

    Sounds like the front end web application is using a specific user account that does not have access (or no longer has access) to the database it's trying to reach....

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Not able to access database - but what object is being sought?

    Has the user been mapped to the database? If not, that's most likely the cause of your error. If you're concerned about granting permissions. If the user...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: send to email based on output?

    Throw the results into a parameter table, then loop through the table and send the email to each recipient - this is a very rough example but should get you...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

Viewing 15 posts - 406 through 420 (of 1,583 total)