Forum Replies Created

Viewing 15 posts - 1,021 through 1,035 (of 1,047 total)

  • RE: EXEC sp_execute

    I've used sp_executesql but not sp_execute. The former provides for safe use of parameter specifiers for building injection-proof dynamic SQL. Maybe the latter is an application specific...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: determine what is hitting a database

    There is no way to find this out from SQL Server. SQL profiler can record this stuff but it has to have been running at the time.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Which is Better ??

    How wide are the rows? (I suppose I should have specifically asked that as well).

    I would try to keep the table as one (logical) table if at all possible. You...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: CLR-based UDF function and Transacion Log

    That's a very good question... one I'd be asking the architect of that design.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Which is Better ??

    What is your definition of "huge"?

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Is xp_cmdshell Security threat???

    It is really only dangerous in the case where appropriate and strict adherence to minimum required permissions and complex password safeguards are lacking or non-existent. Unfortunately this is true in...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Database Mail

    look at the profile you set up for this account... see if you have checked the box: "this server requires a secure sockets connection" (or something like that).

    Your server may...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: create log shipping with tsql

    I've always built my own log shipping mechanisms and they are easier to manage and more robust since they have more intelligence and robustness into the design than the stock...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Need help with a query

    if there were just a relative few you just fix them manually. If not, a cursor working on a set of these duplicates would allow you to consolidate the data...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Need help with a query

    you need to simply delete the ones you don't want. Write a procedure to resolve duplicates. Next you need to modify the business logic of your application and/or the...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Automated Restore

    I just kill any processes in that happen to be in the database before I execute the restore.

    cursor loop through sys.sysprocesses where dbid = {yourdbid} and execute a dynamic kill...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: use of SMO

    SMO is pretty much required if you need to generate scripts of database objects or perform certain other server operations programaticaly.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Truncate/Delete

    GilaMonster (4/13/2009)


    There's a lot more to consider than performance.

    Truncate requires ALTER TABLE permissions, delete requires DELETE permissions

    This is called CONTROL permission, and yes the truncate will fail without it.

    Truncate will...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: How to display number of rows in each table in database

    I always use this:

    select rowcnt from sys.sysobjects O JOIN sys.sysindexes I on O.id = I.id and indid = 1 where type = 'U' and name = 'TABLENAME'

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Pulling my hair out on weird service broker problem

    PROBLEM RESOLVED.

    What was causing this was an addition of a linked server insert... a single row insert to a table on another server, to the activated stored procedure.

    Even though no...

    The probability of survival is inversely proportional to the angle of arrival.

Viewing 15 posts - 1,021 through 1,035 (of 1,047 total)