Viewing 15 posts - 4,741 through 4,755 (of 4,820 total)
First, I tried just looking at the execution plan, which I had never seen before because I so rarely encounter a query that runs for any significant amount of time,...
July 8, 2008 at 6:40 am
First, I suspect the following code will run VERY POORLY, but here goes anyway, and if EmployeeId is not the Primary Key field in the Employee table, replace that in...
July 2, 2008 at 1:23 pm
You'll have to look at the Orders table to ensure that Title is a field within it. If it's supposed to come from Employees instead, then I'll have to...
July 2, 2008 at 12:53 pm
Matt,
I by no means advocate a loop solution, but was just trying to get the OP to come clean on the whole deal instead of feeding it in piecemeal. ...
July 2, 2008 at 8:18 am
Really? Perhaps you need to restate the problem. What it appears you are asking for is a solution to a general class of problem: Using...
July 2, 2008 at 7:51 am
Come to think of it, I realized this wasn't all that hard if a table variable is ok...
Try this on for size - I have no NORTHWIND available, so I...
July 2, 2008 at 7:07 am
I'm of the opinion that this is the old "TRICK QUESTION". I don't happen to have NORTHWIND available to me, nor have I ever done anything with it,...
July 2, 2008 at 6:52 am
Try looking up CONTAINS in BOL. FREETEXT may not always recognize a shorter version of a name, and I don't think it works with wildcards.
Steve
(aka smunson)
:):):)
July 2, 2008 at 6:40 am
Unless there's some reason to avoid using the LIKE operator, I think a rather minor recoding of the original will work just fine:
Declare @Ccode varchar(20)
set @Ccode='C022,C007,C044,C050,C020'
print @Ccode
select * from ReconciledSites...
July 1, 2008 at 3:13 pm
Try this:
DECLARE @OLD_TABLE TABLE (CLNT_ACCESS varchar(3))
INSERT INTO @OLD_TABLE
SELECT 'Yes' UNION ALL
SELECT 'No' UNION ALL
SELECT 'Yes' UNION ALL
SELECT 'Yes' UNION ALL
SELECT 'No' UNION ALL
SELECT 'Yes' UNION ALL
SELECT 'Yes' UNION ALL
SELECT 'No'...
July 1, 2008 at 7:09 am
This solution is imperfect in that it doesn't identify a zero allocation, but it was fairly quickly developed, and perhaps someone with more skills can make it better:
DECLARE @RECEIPTSTABLE TABLE...
June 30, 2008 at 9:44 am
While openrowset may give you some data access, there may be other limitations that will cause problems. Most ODBC drivers for older database formats such as dBase or...
June 27, 2008 at 7:01 am
Well, Ivanna, that makes a total of three RELATIONAL verses in T-SQL Haiku... How database is that ???? :D:D:D
And as long as we're using a RELATIONAL language,...
June 27, 2008 at 6:39 am
OOPS !!! Wasn't familiar with the specifics on that... here's a fix:
BEGIN TO COMMIT
WHEN RECEIVE CONTAINS DUMP THEN
END CONVERSATION
Turns out I did have 5 on line 1,...
June 26, 2008 at 9:59 am
I think what's desired just needs a slightly different way to go about it. Start by having 4 parameters. One for the year, one for the...
June 26, 2008 at 8:15 am
Viewing 15 posts - 4,741 through 4,755 (of 4,820 total)