Forum Replies Created

Viewing 15 posts - 106 through 120 (of 137 total)

  • RE: Problem importing AS400 generated text file

    How about specifying EOFCRLF as the row terminator when you BCP in? Then it shouldn't bring the EOF into the field.

    -Dan

  • RE: Calling a function from linked SQL Server

    Antares is right...you must call it like this:

    select * from OPENQUERY(TSTCMDDB1,'select * from master.dbo.usysprocess(51)')

    -Dan

  • RE: Combining Data for ASCI layout

    One trick you may be able to use if the flat file is fixed width or comma/tab delimited is to create 1 large column in a work table, named "text1"...

  • RE: SQL Server is crap!

    Ah, the never-ending debate...I worked on Sybase/UNIX platform for 5 years and now I work with SQL Server, and I can say without a doubt that MS SQL Server 2000...

  • RE: BACK GROUND PROCESS?

    You could use an insert trigger to put a record into a control table that holds those needing the backorder process run on them. Then a SQL server job...

  • RE: wildcard and smalldatetime

    Try:

    SELECT [contact-date], FROM custlog

    WHERE Convert(varchar,[contact-date],101) like '07/01/2002%'

    OR

    -- This will use the index, if there is one...

    SELECT [contact-date], FROM custlog

    where [contact-date] > Convert(smalldatetime,'07/01/2002')

    and [contact-date] <=...

  • RE: linkserver to connect to ODBC strange problem!!

    I think this is a bug with Microsoft. You may have to convert it to a char and pad it with spaces or zeros.

    -Dan

  • RE: St procedure without exception

    Try This:

    IF NOT EXISTS (SELECT * FROM sysobjects WHERE [Name] = 'TAB1' AND Type = 'U')

    BEGIN

    CREATE TABLE TAB1 ...

    END

    -Dan

  • RE: Parallel degree in a query

    Thanks, that's exactly what I needed!

    -Dan

  • RE: Dynamic SQL

    Dynamic SQL is slower due to the fact that the execution plans cannot be re-used. Even with sp_executesql, the execution plan can be re-used if the query stays the...

  • RE: ascending/Descending other than Order By clause?

    Typically data can be returned in the order of the clustered index without the use of ORDER BY, but there are some exceptions:

    1) If the optimizer determines that the cost...

  • RE: Read / Write Contention

    Keep in mind that doing a SELECT inside a transaction still does not put an exclusive lock on that row. You must do something that involves a logged operation...

  • RE: Nocount and Extended Stored Procs

    I find that this does suppress the count messages:

    set nocount on

    exec master..xp_cmdshell 'dir *.txt'

    How are you calling the extended proc? By the way, I'm on SQL 2000.

    -Dan

  • RE: How To: Avoid Deadlocks

    The field that is being updated needs to be checked in the WHERE clause. For example, if you are updating the InUse field, then it must say in the...

  • RE: Auto-Created Replication Stored Procs

    Thanks, I'll give it a shot!

    -Dan

Viewing 15 posts - 106 through 120 (of 137 total)