Viewing 15 posts - 12,676 through 12,690 (of 13,459 total)
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...
February 21, 2007 at 9:54 am
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...
February 21, 2007 at 9:12 am
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,...
February 21, 2007 at 9:02 am
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
February 21, 2007 at 8:54 am
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...
February 21, 2007 at 8:09 am
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...
February 21, 2007 at 7:59 am
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...
February 21, 2007 at 5:12 am
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...
February 21, 2007 at 4:59 am
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...
February 21, 2007 at 4:46 am
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...
February 21, 2007 at 4:12 am
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)
February 20, 2007 at 3:05 pm
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...
February 20, 2007 at 11:22 am
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...
February 19, 2007 at 1:21 pm
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) ?...
February 19, 2007 at 11:03 am
Viewing 15 posts - 12,676 through 12,690 (of 13,459 total)