Forum Replies Created

Viewing 15 posts - 121 through 135 (of 137 total)

  • RE: RE:DTS csv

    hello, I have tried to create your 'test' table it works!!.

    when edit DTS you need to close your spreadsheet otherwise you get weird error.

     

     

  • RE: "Not Exists" problem in Select Statement-- Help Please!

    you can rewrite as:

    --assume that country_id and client_id are not text/image type.

     

    select a.* from TABLE1 a

    where not exists (select 1 from TABLE2 b

        where b.country_id = 61

          and b.client_id = a.client_id)

    and a.country_id =61

  • RE: Stored Procedure runs faster in a transaction

    That's weird!!

    The only thing that I can think of is data may still sit in cache when you re run the proc will run in  seconds.

     

     

  • RE: Unusal Rounding when importing data from csv with OpenRowset

    DAB, have you tried expanding the cell in csv file to 6 decimal places?

  • RE: Unable to enlist in the transaction

    Manop,

    The problem lies here 'Microsoft OLE DB Provider for SQL Server Copy' . It is not a recognised provider.

    can you connection source to 'Microsoft OLE DB Provider for SQL...

  • RE: Task is now failing - it worked yesterday

    Will, how about schedude your task on the server???

  • RE: Stored PRocedure: @@ERROR problem

    I wondering if you can give a sql sample where you can capture an error??

    I still believe that it will never print your error message.

     

     

     

     

  • RE: Stored PRocedure: @@ERROR problem

    I just want to let everybody know that errorhandlings in sql server 2000 do not work!!!.

    Eg.

       UPDATE permanent_tbl2

       SET    ...

       FROM   #temp ....

       SELECT @err = @@error

    IF @err...

  • RE: calling an UDF

    select * from @fnTableFunction -- I don't think this is a function? more like a table variable.

  • RE: Out as Excel File

    have you considered using osql or isql commands??

    Basically write your query (what/how you want it to output) to a file.

    something like this (not sure syntax is correct!):

    isql -Sserver_name -Ddbname...

  • RE: Strange Query Optimization

    Not sure if this will help....

     

    why don't you remove "ORDER BY tDocArchive.doa_batchorder" from the original query?

  • RE: Select statement using two (or more) databases

    Austin, Looking at the given query below this won't work. You will get error like invalid object name on legalhotline.call

    /*

    select member.member_number, member.last_name, legalhotline.call.member_number, legalhotline.calldate

    from member, legalhotline.call

    where member.member_number=legalhotline.dbo.call.member_number

    */

     

    assuming your 2 databases...

  • RE: Compare column data between databases

    Cory, the examples above assume that you have already linked the servers.

    If your databases sit on different servers and are SQL server one way you can do:

    - in EM go...

  • RE: BCP

    If both servers are SQL use linked server??

  • RE: Export to Excel

    In DTS package,

    create a database connection and a Excel connection

    create data pump between 2 connections.

    put your query in the source tab.

     

    I hope this what you after...

Viewing 15 posts - 121 through 135 (of 137 total)