Forum Replies Created

Viewing 15 posts - 301 through 315 (of 1,068 total)

  • RE: BULK INSERT

    My recommendation is, test the different approaches in a test servers. Finally select one of them which suits your environment.

  • RE: Re indexing database.

    iamsam.sandeep (3/7/2012)


    .... i ran the Re index on the database how ever the high fragmentation is still there. .

    How big is this table? If the table is too small, defrag...

  • RE: How to allocate memory for a particular DB in a server.

    charipg (3/6/2012)


    ...Can we allocate resources to particular dB’s, if not what is the best part to take care of imp dB’s .

    No, it is not possible to reserve memory...

  • RE: Interpret Showplan Statistics Profile - SQL Profiler

    sqldba_newbie (3/6/2012)


    ...My question is i populated all this data into a table, .... How do i do the same with the second option?

    sys.dm_exec_query_plan DMV gives cached plans in XML format....

  • RE: Transaction log growing very quickly Need to truncate it

    I believe your database is in FULL recovery model.

    Until you take log backup, transactions remain in the log and file keeps growing.

    Short term solution:

    1) Take t-log backup

    2) Shrink the log...

  • RE: Issue In Table or Database

    DBCC INPUTBUFFER(118)

    is the quick and easy way to see the query run by SPID 118

    After that you can run the following for more details:

    SELECT er.session_id ,

    host_name , program_name , original_login_name...

  • RE: SQLCMD - Missing expression after unary operator...

    Try this:

    SQLCMD -S CONTOSOWXP01\SQLEXPRESS -Q "CREATE LOGIN [NewUser] WITH PASSWORD = 'password', DEFAULT_DATABASE=[Mydatabase], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF"

  • RE: Issue In Table or Database

    Is your ALTER TABLE command running from SPID 97?

    It is blocked by SPID 118

    Check what SPID 118 is doing.

  • RE: Issue In Table or Database

    Run this while schema change is going on:

    select session_id, start_time, status, blocking_session_id, wait_type, wait_resource, wait_time

    from sys.dm_exec_requests

    where session_id = <spid>

  • RE: Issue In Table or Database

    Are you doing schema changes using UI (user interface)?

    If yes, I suggest, do the changes using SQL commands. It is much faster because, UI internally drops and recreates the table.

  • RE: add article to replication without snapshotting entire DB.

    1) Run the following (with your database and publication name):

    USE <Database>

    GO

    EXEC sp_changepublication

    @publication = 'MainPub',

    @property = N'allow_anonymous',

    @value = 'false'

    GO

    EXEC sp_changepublication

    @publication = 'MainPub',

    @property = N'immediate_sync',

    @value = 'false'

    GO

    2) Add new article to the...

  • RE: SQL Server 2008 R2 - 256 GB RAM

    arr.nagaraj (2/28/2012)


    Thanks for the response. But I am looking for first hand experience of folks who have had 256 GB RAM SQL Server. The case studies are mostly from microsoft...

  • RE: add article to replication without snapshotting entire DB.

    sqldba_newbie (2/27/2012)


    ...Apart from getting new articles, would it also capture schema changes for an existing article?

    I believe it creates "snapshot" of only the new articles.

    I believe it does NOT consider...

  • RE: SQL 2000-Create Function/Stored Proc rights

    Peter D-251663 (2/5/2012)


    What are my options other than grant dbo and admin roles?

    db_ddladmin database role.

    Peter D-251663 (2/5/2012)


    Can a custom role be made for both requirements?

    Yes

  • RE: Memory management in SQL Server

    Run PerfMon and monitor your server. If the Buffer Catche Hit Ratio is higher, your application is getting the data from memory.

    If it is lower, you have to take steps...

Viewing 15 posts - 301 through 315 (of 1,068 total)