Forum Replies Created

Viewing 15 posts - 12,691 through 12,705 (of 13,469 total)

  • RE: Exporting data to cvcs and txt issues with lengths over 255

    since you said DTS, I'm guessing you are using 2000, right.

    there's two issues I know of:

    the ole driver can have a default limit of 255 chars; see this thread on...

  • RE: Email broadcast optimization

     

    here's my suggestions, and they might be calling  for a design change:

    create a table something like what is below; i  would probably suggest putting their actual emails AND the newsletter...

  • RE: How to import and update a column at the same time?

    man i don't seem to read everything early in the morning:

    here is how to INSERT the new items from the staging table:

    INSERT INTO PriceDumpData(Company,Departure,Country,Destination,DepartureDate,ReturnDate,UpdateDate,DepTime,RetTime,Hotel,Link,Roomtype,Classification,Duration,Price,Currency,Link2)

    SELECT

    PriceDumpStage.Company,

    PriceDumpStage.Departure,

    PriceDumpStage.Country,

    PriceDumpStage.Destination,

    PriceDumpStage.DepartureDate,

    PriceDumpStage.ReturnDate,

    PriceDumpStage.UpdateDate,

    PriceDumpStage.DepTime,

    PriceDumpStage.RetTime,

    PriceDumpStage.Hotel,

    PriceDumpStage.Link,

    PriceDumpStage.Roomtype,

    PriceDumpStage.Classification,

    PriceDumpStage.Duration,

    PriceDumpStage.Price,

    PriceDumpStage.Currency,

    PriceDumpStage.Link2

    FROM

    PriceDumpData

    FULL OUTER JOIN...

  • RE: How to import and update a column at the same time?

    here is the same logic, but with the actual columns you identified: assuming you import  the text file into the staging table PriceDumpStage , this will work:

     

    SELECT

    PriceDumpData.*,

    PriceDumpStage.*

    FROM

    PriceDumpData

    FULL OUTER...

  • RE: How to import and update a column at the same time?

    it's not hard at all, as long as there is something that uniquely identifies each product. My example below only uses two columns, you would need to use all Company,Departure,Country,Destination,DepartureDate,Hotel,Roomtype,Duration

    you...

  • RE: Get Windows user Through web service

    you could also enhance the web application by adding another call to an audit stored proc...so what i'm saying is for every call in the web app that is doing...

  • RE: Date Subtraction

    also the date add function accepts negative numbers, so if you need something like "15 days back from today":

    SELECT DATEADD(day, -14, getdate()) AS TwoWeeksAgo

    results:

    TwoWeeksAgo                                           

    ------------------------------------------------------

    2007-02-06 17:03:39.997

    (1 row(s) affected)

  • RE: Get Windows user Through web service

    can you modify the code and the stored procedures to pass/use a new parameter?  If you can't modify the web service, you'll really be hampered in auditing.

    I'm assuming the web...

  • RE: Code Parser Control

    you can send the query to SQL with the following options:

    SET NOEXEC ON

    SET PARSEONLY ON

    SELECT * FROM SOMETABLE

    SET NOEXEC  OFF

    SET PARSEONLY OFF

    you could then simply return the errors returned from...

  • RE: Bulk insert does nothing

    what is the source of the file...i had an issue before where the source was UNIX based text files, so the terminator is not \n, but another...\r (just Cr) ?...

  • RE: SQL Server 2000, Query Results To Text File question??

    here's an example i had handy: filename is build with a combination of variables and current time/date.

    replace your query  where the query in red is below.

    declare @outfile    varchar(250),

            @strCommand...

  • RE: Updating a field automatically when keying in one field

    hehe... same example, but i beat your post by a whole minute!

    great minds and all that.

  • RE: Updating a field automatically when keying in one field

    in sql server , you can use a calculated column; (not available in oracle...you'd have to create a trigger to do the same thing); note i added logic to watch...

  • RE: DLL''''s function results into SQL server.

    Eddie thanks; you pointed me on the right track; by using the sp_Oa procs, and  a bit of minor modifications to my test dll, i was able to read any...

  • RE: Access 97 and SQL 2000

    could it be something as simple as statistics or something?

    I had a situation where a developer turned off automatic statistics in his test database, and over time his machine...

Viewing 15 posts - 12,691 through 12,705 (of 13,469 total)