Viewing 15 posts - 13,246 through 13,260 (of 13,841 total)
Or the simple version:
declare @strSQL nvarchar(4000)
DECLARE @EmpName varchar(100)
Set @EmpName = '"Frank Smith", "John Doe"'
set @strSQL = 'SELECT * FROM Employees WHERE EmpName IN (' + @EmpName + ')'
exec sp_executesql @strSQL
Note:...
October 20, 2005 at 2:13 pm
Remi - is this your favourite function? It seems to keep popping up. Must read it one day and work out what's going on
October 20, 2005 at 7:52 am
There are third-party tools that will do this for you. Here's a link to just one of them:
http://www.apexsql.com/sql_tools_diff.asp
And no, I do not work for this company!
Phil
October 20, 2005 at 7:49 am
No enough info. Please post the code for your trigger. There are some clever people on this site and the cursor may not be necessary after all.
To disable a trigger,...
October 12, 2005 at 11:26 am
OK - getting there. I think you want something like this:
SELECT t1.dest_bol_no,
t1.rev_no,
t1.comm_code,
t1.quantity,
t1.bol_no,
t1.trailer_id,
t1.pup_trailer_id, t2.order_no
FROM BL_TRUCK_BOL_DEST_COMM t1 join BL_TRUCK_BOL_DEST_COMM_ORDER t2 on t1.dest_bol_no = t2.dest_bol_no and
t1.rev_no =...
October 12, 2005 at 10:33 am
Yes, this doesn't really sound to me like a UNION query after all.
Can you provide some sample data - just the relevant fields - and show also your desired output? ...
October 12, 2005 at 10:09 am
OK - but there must be some circumstances under which you want the rows from TABLE_b, otherwise why bother with the UNION in the first place?
October 12, 2005 at 9:51 am
I can't see any catastrophes on the horizon, but you should of course write the appropriate script and run it on a backup copy of the db just to make...
October 12, 2005 at 9:47 am
The first UNION that you did filtered out the second row because it was identical to the first. Your second UNION has rows which are not identical - so they...
October 12, 2005 at 9:39 am
Me neither - can't you just give them a longer description? This is building complexity that seems over the top. Are your users particularly (hmmm, what's a nice way of...
October 12, 2005 at 7:34 am
I don't think it's as simple as just clicking a 'process all files in folder' check box - unfortunately.
Here's an article that might be of use to you though -...
October 12, 2005 at 2:26 am
OK - I think I was on the right track except for the JOIN:
CREATE PROCEDURE sproc_getTestRequest
AS SELECT tr.[TestRequestNo],
tr.[TestFolderNo],
tr.[TestRequestObjective],
tr.[TestRequestDescription],
tr.[RequestType],
tr.[TestRequestSentDate],
tr.[TestRequestReceivedDate],
tr.[ExpectedPartsReceivedDate],
tr.[RequestedStartDate],
tr.[RequestedCompletionDate], p.*
FROM TestRequest tr...
October 10, 2005 at 12:00 pm
IsNumeric is available in SQL Server:
select IsNumeric('Hello'), IsNumeric(42)
October 10, 2005 at 9:12 am
Viewing 15 posts - 13,246 through 13,260 (of 13,841 total)