Viewing 15 posts - 14,341 through 14,355 (of 15,381 total)
Yes in this case it is comparing the value from one table to another. So you get what is happening now?
August 1, 2011 at 12:32 pm
sqlfriends (8/1/2011)
select Cast(Case BusCalItemID
when BusCalItemID then 0
else 1
End as bit) as linked
from dbo.businessCalendarItem.....
The BusCalItemID field is a PK and int field.
My...
August 1, 2011 at 12:27 pm
Yes I would agree that would make the problem even more difficult. 😛
I am totally unclear on the rules for the "groups". Can you provide what the desired output would...
July 29, 2011 at 3:14 pm
Your query will return the count of table a for each group. BTW, you really don't need a distinct when you also have a group by. The group by will...
July 29, 2011 at 1:28 pm
Then you will have to use a trigger. There just is no way to conditionally fire a trigger based on a 3rd party application. You could your own nasty kludged...
July 29, 2011 at 1:15 pm
In all honesty I think the biggest challenge you are facing here is poorly designed tables. How are you going to handle adding new foods? You have to add more...
July 29, 2011 at 1:11 pm
This is WAY off topic for a sql forum.
The easiest way would be to add a keypress event handler to your textbox that will run some javascript. In your script...
July 29, 2011 at 12:55 pm
There is no reason you can't delete a backup file after you have restored from it (unless you want to keep it for archive). It is not being used by...
July 29, 2011 at 12:51 pm
Business logic:
sequence should be first according to col1
Banana>Blueberry>Apple>Strawberry
then according to col2 depending on col1
for banana col2 order = NY>LA>SF
for Blueberry, order = LA>SF>NY
and so on...
How about order by col1, col2?
July 29, 2011 at 12:49 pm
I don't think there is anyway for sql to know when another application is done sending update statements. Conceptually it just doesn't work. You could have the other application call...
July 29, 2011 at 12:46 pm
PaulB-TheOneAndOnly (7/29/2011)
Sean Lange (7/27/2011)
July 29, 2011 at 12:42 pm
I have to say that the correct answer is not worded in such a way as to make much sense. It says "Install fails because SQL 2005 can't be installed...
July 29, 2011 at 7:35 am
Cool glad you figured out a way to solve it.
July 28, 2011 at 2:27 pm
See if this helps.
declare @MakeDirVal varchar(500)
begin
set @MakeDirVal = LEFT(@Copy, 26)
SET @SQLQUERY1 =
'xp_cmdshell ''mkdir "d:\copy test\destination"' + @MakeDirVal + ''''
EXEC (@SQLQUERY1)
SET @SQLQUERY2 =
'xp_cmdshell ''XCOPY /S "d:\copy test\source"'+@Copy+' "D:\copy test\destination"'+@Copy+'"\"'''
EXEC (@SQLQUERY2)
That should...
July 28, 2011 at 1:59 pm
If you want a little dynamic solution instead of hardcoding 20 characters take a look at this. I wasn't sure if you were trying to parse the file name or...
July 28, 2011 at 1:53 pm
Viewing 15 posts - 14,341 through 14,355 (of 15,381 total)