Forum Replies Created

Viewing 15 posts - 1,036 through 1,050 (of 1,132 total)

  • RE: scary? - changing sa password on production server

    No reboot or SQL Server/Agent restart is required.

    I am certain because on each of over 100 SQL Servers, a job runs on Wednesdays at 3PM that changes the...

  • RE: removing dt_ stored procedures

    the dt_? stored procedures are not related to replication but are used to integrate with MS Visual Source Safe.

    As Service Patchs might assume that these procedures exists and the installatiuon...

  • RE: Rules, Triggers, Constraints?

    If your schema is:

    create table TBL_Y

    (field1 char(1) not null

    ,field2 char(1) not null

    , constraint TBL_Y_P primary key (field1, field2)

    )

    go

    create table TBL_X

    (field1 char(1) not null

    ,field2 char(1) not null

    , Name1 varchar(255) not null

    ,...

  • RE: Prompt user for Date w/ ActiveX script in DTS package

    There is a work-around for mapping global variables that is at http://www.sqldts.com/default.aspx?234.

    Basically, the steps are:

    1. Have a dummy sql statement that is on one line that has the desired variables....

  • RE: Dynamic SQL Infinite Loop Prevention

    There are two methods of limit the resources used by a SQL statment. From BOL:

    Using SET QUERY_GOVERNOR_COST_LIMIT applies to the current connection only and lasts the duration of the...

  • RE: Password Matching

    When a table column is defined with a case insensitive collation but you want comparisons to use a different collation, the desired collation can be specified within the SQL. ...

  • RE: Top-Top query

    There not enough information to determine exactly what is needed. Can you post the primary key of the table ?

    Assummimg you want the top 10 Sources and then the...

  • RE: Passing Array to Stored Procedure and getting the error "Object must implement IConvertible"

    SQL Server does not support arrays.

    One altenative is to pass XML (see SQL Server Books on Line for parsing XML in stored procedures)

    See also "Arrays and Lists in SQL Server"...

  • RE: Hide Relations into Database

    This is not true for SQL Server but is true for some other RDBMS such as Sybase's SQL Anywhere.

    It is not good practice to ALWAYS create an index on the...

  • RE: User Management

    Alternatively, sp_execresultset is a system procedure that executes the result set of a SQL statement.

    exec dbo.sp_execresultset @cmd =

    'select ''GRANT ALL ON ''

    + QUOTENAME( table_schema) + ''.'' + QUOTENAME...

  • RE: First day and last day of week from week number

    To get Monday's date giving the number of weeks since the beginning of the yearm, try

    Declare@Weeksinteger

    ,@YearStartdatetime

    set@Weeks= 37

    set@YearStart= '2003-01-01'

    selectMondayOfWeek = WeekDate

    +CASE DATEPART(dw, WeekDate)

    WHEN 1 then +1-- Sun

    WHEN 2 then 0-- Mon

    WHEN...

  • RE: Moving Registered server from one SQL client to another.

    If by registered servers, you mean registered with Enterprise Manager, use RegEdit to export from registry key HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Tools\SQLEW\Registered Servers X

    and then import into the other workstation.

  • RE: Insert Child before Parent

    Under SQL Server, integrity constraints are checked when the action is performed not when the commit is performed.

    Some other RDBMS do support an option that some integrity contstraints can be...

  • RE: Matching Debits to Credits

    Joe Celko just this month published a solution for inventory which could be adapted to Payment allocations.

    See http://www.dbazine.com/ofinterest/oi-articles/celko32

  • RE: Stored Procedure and Batch File Problem

    Is the C drive on the database server ? All reference to relative paths are from the point of view of the SQL Server not from where the stored...

Viewing 15 posts - 1,036 through 1,050 (of 1,132 total)