Forum Replies Created

Viewing 15 posts - 3,526 through 3,540 (of 13,462 total)

  • RE: How to track SP

    you cannot find past events if they were not captured by some sort of auditing that YOU added...If You don't have a previous auditing setup like Adi Cohn mentioned,...

  • RE: ? on running a sp in dbmail

    sp_send_dbmail runs in the msdb database...so either your query needs to explicitly state teh database name, or the @execute_query_database must be supplied.

    example :

    @query = 'select FName as first,

    LName as...

  • RE: How to Insert/Upadte data based on exist in mathcin table, in single query

    here is a very basic MERGE exampel that might help, and of course you should read up on it in your books and in SQL Books Online:

    MERGE INTO dbo.tableA AS...

  • RE: How to Insert/Upadte data based on exist in mathcin table, in single query

    Asita, the question itself seems a lot like homework; Also, to get intelligent answers, you really need to provide DDL and sample data, to avoid a lot of assumptions, and...

  • RE: Single User Mode

    no need to stop the instance, i'd think.

    you can force the database offline, and take it back with a couple of commands, i'd think:

    ALTER DATABASE Test SET OFFLINE WITH ROLLBACK...

  • RE: Sorting Records Going Into New Table.

    Neeraj Dwivedi (5/6/2013)


    If you create Clustered Index on RECORD column of new table. It sorts and stores data in the clustered index key.

    the clustered index, just because it is sorted,...

  • RE: Database stuck in single user mode

    note you replied to a thread more than two years old.

  • RE: Get windows user..

    nope not from SQL;

    you can have the application do it,and pass the user to SQL in the CONTEXTINFO, but once connected via a SQL user, no domain info can be...

  • RE: Upload directory in Stored Procedure

    almost certainly permissions, because the call to disk is not going to use the account you are expecting it to.

    when you access any resource OUTSIDE of SQL server, like network...

  • RE: Full server documentation

    yeah you'll need to go thru the script and tweak it;

    for example @ line 151 there's one section here that fails if you have longer database names than 20 characters:

    CREATE...

  • RE: syntax needed

    the FROM property for bulk insert must be a static string...it cannot be created from appended variables.

    BULK INSERT BULKACT FROM 'c:\Export_o.txt'

    to do what you want, you need everything to be...

  • RE: Extract string between two special characters upto 4 sublevels

    here's one solution using a scalar function. I don't wnat to hog the thread, so I'll leave it to others to post a nice ITVF function featuring cross apply, which...

  • RE: Import without SSIS

    Sorrry kev i might have bben too brief on the explanation.

    The sheet nin the excel needs to have column names in the first row and data in the subsequent rows.

    I...

  • RE: Memory Poke

    i was thinking the same as opc.three;

    it's a false cause-effect i bet;

    i'm thinking that procedures started sucking-performance-wise because of stale statistics, and the clearing of the proc cache, which occurs...

  • RE: Full server documentation

    the problem is this case statement in the query:

    CASE f.maxsize

    WHEN -1

    THEN -1

    WHEN 0

    THEN...

Viewing 15 posts - 3,526 through 3,540 (of 13,462 total)