Forum Replies Created

Viewing 15 posts - 211 through 225 (of 405 total)

  • RE: variable looping

    You are welcome.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: variable looping

    Following link give you example of using foreach loop for ado

    http://www.codeproject.com/Articles/14341/Using-the-Foreach-ADO-Enumerator-in-SSIS

    Create an execute sql task that returns full resultset

    You should first create a variable to hold the output...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Fragmention even after rebuilding the indexes

    If they are small tables, you can ignore them. If they are bigger ones see how frequent these tables are updated. You can also try changeing the fill factor to...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Query Advise...

    For eg if your column name is CreateUser, the below query will give you all the tables wiothout the column

    Select S.name,T.name

    from sys.tables T join Sys.schemas S

    on T.schema_id=S.schema_id

    where T.object_id not...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Query Advise...

    There is not a single statement like that, but it is possible to generate athe alter statement by querying sys.columns and sys.tables.

    Make sure you verify the table and schema name...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Pass SQL Execute task output to target tbl(Data flow).

    If you need multiple rows you chnage result set to full and use an object type variable to hold the ado resultset .

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Is there a way to Identify if a database is no longer in use

    No out of the box solution is there.

    But you can query system catalogue for modified date, to see schema updates.

    You can run a server side trace filtered by the...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Database inrecovery

    Just to add to Gails' points,

    in simple recovery model the inactive log is cleared on check point. So VLFs are affted by the file growth setting/ the your transaction durations/...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Database Restore Problem

    You need o run this query in th eserver you take the backups. ie the original server.

    Make sure you give the correct database name. look at the databasename available in...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: .bak file quadrubles in size with restore

    sean 1516 (10/17/2012)


    I'm a newbie and I'm using using SQL 2008 R2

    I have a 10GB .bak file that when I restore requires 41GB. The restore fails because I currently have...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Proc Cache Question

    simon4132-806507 (10/16/2012)


    Hi,

    I totally agree - I am now at the last resort phase!

    We simply cannot have a database which slows down after 3-10 days.

    I have looked at the statistics, but...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Proc Cache Question

    Freeing procedure cache in production systems should be considered only as last resort.

    Did you look at the statistics. ?

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Database Restore Problem

    You can query msdb to see the backups available for a database.

    I had written a script long back for the same

    http://www.sqlservercentral.com/scripts/Backup+%2f+Restore/67296/

    The data is not synch because you have not applied...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: which is better to user the cross join or while loop ?

    You should test it for your particular requirement and decide. Vary with your table and index structure and the resources available.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Problem with write access for Windows users on SQL 2008 R2

    Did you check wether the mapping is correct for your login?

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 15 posts - 211 through 225 (of 405 total)