Forum Replies Created

Viewing 15 posts - 12,676 through 12,690 (of 13,460 total)

  • RE: Image Manipulation

    Hi Tim can you clarify... Is the question "create a thumbnail image from an image i have so I can either use the thumbnail or save it in the db?"...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: excel

    it looks like you have 12 fields you want to grab from 3 columns, is that right? so this is really ONE record with 12 fields?

    importing from excel , by...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Email broadcast optimization

    i think it might have to do with the table variable;

     SELECT userid, fname, lname, toemail FROM users, @clientstable CT WHERE users.userid = CT.userid

    i would look at the execution plan, but...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Email broadcast optimization

    minor, maybe do to a copy/paste/edit, but i think one variable is not declared, and another is never initailized:

    CREATE PROCEDURE [dbo].[proc_broadcastemailsget]

    AS

    DECLARE @clientstable TABLE (userid INT PRIMARY...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Email broadcast optimization

    i guess what i was suggesting is that when you are looping thru the datagrid, I would have put the userid's that had checkboxes checked in their associated data row,...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Script to get distinct data

    there's several ways...I would suggest a group by:

    SELECT ENO, Fname, Lname, MIN(Dept) as Dept, MIN(Start) as Start, MIN(End) as [End], MIN(Chngdate) as Chngdate FROM sometable

    group by ENO, Fname, Lname

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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)

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 12,676 through 12,690 (of 13,460 total)