Forum Replies Created

Viewing 15 posts - 5,221 through 5,235 (of 7,191 total)

  • RE: Naming Conventions

    I think the important thing isn't what naming convention you use, but that you choose one and stick to it. There's been a lot of discussion here and elsewhere...

  • RE: Backup Job history shows nothing

    laddu4700 (7/15/2011)


    What are the other regular maintenance tasks you guys recommend? Thanks!

    DBCC CHECKDB and REBUILD INDEX. For the latter, you may prefer to use scripts instead of a maintenance...

  • RE: Backup Job history shows nothing

    How often does the job run? What happens if you create a job to execute a trivial T-SQL statement and run that - can you see the history for...

  • RE: Backup Job history shows nothing

    How do you run your maintenance plan? You will only see anything in the job history if you run the job that was created with the maintenance plan, not...

  • RE: same SSIS package reading source files with different names

    Athar

    You can use an expression to set the connection string for the file connection manager.

    John

  • RE: How to use Cursor to get desired result.

    amitsingh308 (7/15/2011)


    Can Any one tell me how can i get this result

    No. Both outputs look exactly the same to me. Most people don't have the time or patience...

  • RE: Validation

    So that we don't have to guess, please explain exactly what you are trying to do. Phil has already asked one question. What are your source and destination,...

  • RE: Validation

    We don't have all the information we need. If the source and destination were both tables in databases on the same server, then that's exactly how I'd do it....

  • RE: Validation

    If you only ever will have the three account types, then you can do this in the code:

    INSERT INTO MTable (Account_Code, Account-type)

    SELECT Account_Code,

    CASE LEFT(Account_Code,1)

    WHEN '1' THEN 'Asset'

    ...

  • RE: copy database error

    I'm not sure I understand. What difference does it make to the app owner how you get the database to the new server?

    John

  • RE: Update table using 2 other tables

    You should consider using the MERGE statement. The syntax is complicated, but it removes the danger of cardinality errors that can occur (unreported) with the UPDATE...FROM construction. These...

  • RE: Storing multiple result sets from stored porcedure

    I don't know of a way to do it in T-SQL without modifying the definition of the procedure, but I think you can do it in SSIS with an ADO...

  • RE: SSiS package moving data

    In the editor for the OLE DB Source, choose SQL command for your access mode, and simply type in the query that will filter out the rows you don't want.

    John

  • RE: Temp Table and column defination.

    Damn! I always try to remember to read through before posting, but usually fail.

    John

  • RE: Temp Table and column defination.

    Mahesh

    This will provide a starting point for getting the definition of your table:

    SELECT * FROM INFORMATION_SCHEMA.COLUMNS

    WHERE TABLE_NAME = 'MyTable'

    ORDER BY ORDINAL_POSITION ASC

    You should be table to build a CREATE TABLE...

Viewing 15 posts - 5,221 through 5,235 (of 7,191 total)