Viewing 15 posts - 13,306 through 13,320 (of 13,849 total)
16 duplicates - on insert and on delete?
Is it a coincidence that you are inserting exactly 16 fields? (I hope so!)
Have you got other triggers that may be causing some...
September 19, 2005 at 2:57 am
Are there always two transaction IDs for each StockID, or is the number variable (in which case, you want a variable number of columns)?
September 18, 2005 at 12:17 pm
I haven't analysed your code, but my suggestion is to that you run Profiler and check out what SQL is being sent from the ASP.NET app. and troubleshoot from there.
September 18, 2005 at 12:14 pm
Have you tried this? If you import a text file using DTS there is a field called 'Text Qualifier' - set this to be " (the default) and DTS will...
September 16, 2005 at 12:06 pm
First of all - if you have a long message, I suggest that you type it in Notepad or Word first, to avoid the time-out that you experienced (we've all...
September 16, 2005 at 2:15 am
Getting weirder. Have you tried backing up the db and restoring it as another db, then running the query on that? If that fails, try restoring onto a different SQL...
September 15, 2005 at 10:43 am
So the sad face wasn't part of the plan then? ![]()
When things like this start happening, you start suspecting the integrity and consistency of...
September 15, 2005 at 10:07 am
"How would I get the next to last date from the Dates Table? (Would the Top Function work?) "
select max(date) from dates where date < (select max(d1.date) from dates d1)
September 15, 2005 at 8:06 am
It will be something to do with the structure of the tables and the way that you have joined them - there will probably be a many-to-many relationship somewhere that...
September 15, 2005 at 8:03 am
This grim-looking piece of code should get you heading in the right direction!
select id, col1, col2, col3, rtrim(left(col4, charindex('Departure',Col4)-1)) [Desc]
from table
union
select id, '', '', '', ltrim(right(col4, len(col4) - charindex('Departure',Col4)+2))
from table
order...
September 15, 2005 at 7:40 am
I can think of a query that will give you this, but it would depend on the display of the primary key in the table (for sorting - to keep the...
September 15, 2005 at 6:02 am
Aah! So you are trying to detect series of consecutive numbers that do not contain gaps?
So you want output like this:
Min Max Count
107 112 6
?
September 15, 2005 at 5:54 am
So you want the min, max and count, subject to a filter on the data that is being analysed? Like this?
select count(field), min(field), max(field) from table where field between 107...
September 15, 2005 at 5:03 am
If you always know the first few letters, you could try left(column,2) = 'aa' instead of like 'aa%'. An index on the column that you are searching will also help...
September 15, 2005 at 4:59 am
I suggest that you use a reporting tool (Access, Crystal etc) to achieve this sort of formatting. What are you going to do with the output?
Regards
September 15, 2005 at 4:11 am
Viewing 15 posts - 13,306 through 13,320 (of 13,849 total)