Forum Replies Created

Viewing 15 posts - 76 through 90 (of 137 total)

  • RE: datetime function

    Try this. Replace '11/12/01' with your date.

    select CONVERT(SMALLDATETIME, '11/12/01 12:00AM', 1) from TableName

    Darren

  • RE: Executing Dynamic Stored Procedure Comma

    What kind of error do you get? Can you run this with a hard-coded database name and it works fine?

    Darren

  • RE: Needing help with a query

    I think instead of doing a max() function in your "not exists" function you need to use a top 1 possibly. I think the Max is always returning 1...

  • RE: Query to list duplicates in table

    I'd do an outer join on the table itself.

    Example:

    select a.* from Customer a

    inner join Customer b

    where a.Id <> b.Id --Use whatever keys are in this table

    and a.firstnm =...

  • RE: connection broken

    Check the event application log on the SQL server and look for MSSQL fatal errors. Also, run DBCC CHECKDB to see if the database has any errors. (This...

  • RE: DTS Copy db from prod to test SSPI Error

    The only time I've seen the "Cannot generate SSPI context" error is when a user lost their connection to the database and had to relogon to her PC. I...

  • RE: what is the fastest insert process?

    Also, you may find some additional help in BOL under topic "using OPENXML" or "Retrieving and Writing XML Data"

    Darren

  • RE: what is the fastest insert process?

    CREATE PROCEDURE dbo.spCustomerXMLIM01

    @XmlDoc text

    AS

    DECLARE @docID int

    EXEC sp_xml_preparedocument @docID OUTPUT, @XmlDoc

    INSERT INTO tCustomer

    SELECT *...

  • RE: what is the fastest insert process?

    We use XML inserts for this type of mass insert. We format an xml document in chunks of about 1000-5000 records, then call one single XML insert statement. ...

  • RE: English Query

    Did you try the Suggestion Wizard to see if it had any ideas? Maybe try a question like "What servers are like Microsoft?"

    Darren

  • RE: Top 10 lists and/or surveys

    You could make it the first page they see before entering for the day. As long as it's quick they will probably fill it out but give them the...

  • RE: Executing DTS package

    This script is in the transormation section correct? If you have a msg box at the very beginning and it doesn't show up, then it must not even be...

  • RE: locks

    sp_lock will give you the locks. Try sp_who2 for deadlocks.

    Darren

  • RE: URGENT!!!!! TimeOut Error

    To see the lock first run the query, then from a different connection type sp_who2. This will show any blocked transactions. If a query is blocking that you...

  • RE: Log Shipping Copy Just Stops

    The only other suggestion is to run system monitor while this is running next time and look for any outliers. Like CPU and memory usage on SQL Server.

    Darren

Viewing 15 posts - 76 through 90 (of 137 total)