Viewing 15 posts - 2,476 through 2,490 (of 3,233 total)
Its pretty hard to help you if you don't tell us what you are trying to do. If you need help with the DELETE syntax, either find DELETE in BOL,...
January 15, 2007 at 2:02 pm
Your title of 'deadlock' is a bit misleading. You are getting lock timeout messages due to blocking whick is not the same thing as a deadlock. You need to do...
January 15, 2007 at 1:09 pm
Paul,
Creating a linked server would be the SQL Server equivalent to the Oracle DB link. You can get more info on this from BOL under...
January 15, 2007 at 10:02 am
You may get a bit more help if you could post some sample data as well as a sample result set. Full table DDL couldn't hurt either.
January 12, 2007 at 3:49 pm
If it doesn't matter which one, just throw a MIN/MAX group by on the whole thing:
SELECT t1.ColA,
MIN(t1.ColIDs) as ColIDs,
t1.ColDescription
FROM @tbl t1
INNER JOIN (
SELECT ColA,
MIN(dbo.Occurs(';',ColIDs)) as...
January 12, 2007 at 3:34 pm
You may have to play around with it, but this should work (or at least get you started):
SELECT t1.ColA,
t1.ColIDs,
t1.ColDescription
FROM @tbl t1
INNER JOIN (
SELECT ColA,
MIN(dbo.Occurs(';',ColIDs)) as...
January 12, 2007 at 3:22 pm
Well, what if 2 or more rows have the same number of occurances?
January 12, 2007 at 3:18 pm
So your function returns a scalar value and not a table? If so, can you post your split function.
January 12, 2007 at 2:59 pm
Hi Paul. First of all, SQL Server 7.0 is not SQL Server 2005. It is the version prior to SQL Server 2000. DTS is not just for warehousing data and...
January 12, 2007 at 2:49 pm
This would be handled real easy with a split function. Search SSC for dbo.split. Another option would be to create your own UDF to read through your ColIDs value one...
January 12, 2007 at 2:38 pm
The best solution for replacing Cursors is by using SET based logic. While you may see some performance gains by using temp tables or table variables with while loops, these...
January 11, 2007 at 12:52 am
Well, that's kind of a wide open question. Much of what we need to effectively tweak these queries has been omitted from your post. What does the query plan look...
January 3, 2007 at 4:30 pm
"in dos command there no switch for renaming a worksheet "
A worksheet isn't any different from any other file on the file system. Use REN/RENAME.
From DOS help -
C:\> REN...
January 3, 2007 at 8:55 am
Well, what exactly are you trying to do? I see this has to do with replication, but where are you in the setup? Is this a first attempt between servers...
January 2, 2007 at 3:53 pm
Your description is a bit confusing Tim. Can you post the DDL for both tables, sample data, and an example of your desired results.
January 2, 2007 at 3:50 pm
Viewing 15 posts - 2,476 through 2,490 (of 3,233 total)