Forum Replies Created

Viewing 15 posts - 1,111 through 1,125 (of 1,536 total)

  • RE: BRING BACK TABLE NAME IN QUERY

    sp_msforeachtable is undocumented by Microsoft, but one of the best procs out there....as is it's companion sp_msforeachdb

  • RE: Restoring Backup and applying Transaction logs

    The failure to execute of your full backup should not have affected your logshipping in any way. Are you recreating logshipping on a nightly basis?

  • RE: Storage Area Network (SAN)

    EMC SAN huh?

  • RE: BRING BACK TABLE NAME IN QUERY

    SP_MSFOREACHTABLE "select '?', count(column_name) from ?"

  • RE: linked server 2 oracle, inserting a row

    You can prevent this by using the openquery functionality...

    First you tell it to insert, then the openquery, actually provide a query (one that will return a single row is best),...

  • RE: Increasing a column size fails on a specific table

    You should execute an alter table alter column statement through query analyser rather than go through enterprise manager. When you run an alter table through EM it creates a temporary table...

  • RE: how do I access SQL server database from another computer?

    Is this a server maintained by yourself? Or do you have a dba for general SQL administration?

    If you are tasked with creating the login you would need to be at...

  • RE: Find Replace

    You're missing the quotes around the first BALLOONS, and need to change the second column name from COLUMN_A, also make sure to set the quoted identifier off..should be

     

    SET QUOTED_IDENTIFIER OFF

    update...

  • RE: casting a varchar as datetime

    If you look up CAST AND CONVERT in BOL they have a list of the possible date formats. The date format that you run defines the order of the entries...

  • RE: casting a varchar as datetime

    If your strings are always 6 chars and the same format you could use

     

    declare @date varchar(10), @day char(2), @mnth char(2), @yr char(2)

    set @date = '101004'

    select @mnth = substring(@date, 1, 2)

    select...

  • RE: Find Replace

    What you do is search on the wildcard string and replace the literal string...thus...

    SET QUOTED_IDENTIFIER OFF

     update TABLE set COLUMN_A =REPLACE(COLUMN_A,"BALLOONS","BALLOON")

       where COLUMN_A like "%BALLOONS%"

     

    Run it in a transaction and check the results...

  • RE: Log Shipping Configuration Question

    There is no chance for collision between the filenames as they are prefixed with the database name.

    You don't have to use a seperate share for each, I use a single...

  • RE: Deleteing a disk file

    exec master..xp_cmdshell 'del c:\whateverthefilenameis'

     

    xp_cmdshell is locked down by default (for good reason), be extremely wary doing this, all kinds of bad things can happen

  • RE: Storage Area Network (SAN)

    As you are not clustering I really don't see the need for a SAN. I'd stick with external arrays, you'd save yourself more than 50%, and then you could persuade...

  • RE: Storage Area Network (SAN)

    Are your SQL server clustered and all production?

Viewing 15 posts - 1,111 through 1,125 (of 1,536 total)