Viewing 15 posts - 226 through 240 (of 441 total)
steven (8/4/2009)
I have a situation where I have bunch of 7-digit Encoded text in database like 0304182, now here
First two characters represent Product i.e. 03
Next two character represent Class...
August 4, 2009 at 1:32 pm
Are you guys working together, or against?
http://www.sqlservercentral.com/Forums/Topic764816-1291-1.aspx?Update=1
You have practically the same code, and you ask the same questions, what's going on?
By the way, I answered to your friend there, see...
August 4, 2009 at 11:05 am
Try This :
SELECT DISTINCT CASE
WHEN DonorCompanyID -1
THEN d.OrderID
+ d.DonorCompanyID
ELSE d.ID
END REFERENCE,
CASE
WHEN DonorCompanyID -1
THEN d.OrderID
...
August 4, 2009 at 9:50 am
GSquared (8/4/2009)
Why use Case for that? Why not IsNull or Coalesce?
Thanks for the correction Gus, that's the difference between someone who takes the time to answer the problem, and...
August 4, 2009 at 9:33 am
How's that?
Select case when CTTitle is null
...
August 4, 2009 at 9:19 am
I say you should look into an SSIS package for all your backup moving, and schedule it within SQL Agent.
August 3, 2009 at 2:13 pm
If you execute the procedure in SSMS, do you see the raiserror output in red? If not, maybe the message was not registered. You could try to send a custom...
July 30, 2009 at 9:58 am
Using Try/Catch with raiserror should get you the error message you want into VB. It will get you a message number of over 50 000 which means it's a user...
July 30, 2009 at 8:21 am
Elliott W (7/29/2009)
J-F Bergeron (7/29/2009)
July 29, 2009 at 12:48 pm
Or append it in a single variable using FOR XML PATH('') with semicolumns as separators. But everything will be run in the same batch, don't know if that is an...
July 29, 2009 at 12:37 pm
Thanks for the feedback Pat,
Have a nice day,;-)
July 29, 2009 at 7:09 am
Hi, I built this procedure for you, hope that it helps you understand how you can easily nullify the results, or return everything, based on the parameters.
USE TEMPDB
GO
CREATE TABLE ProductTAble...
July 27, 2009 at 1:40 pm
Hi,
I will not say it's the best way for your needs, but let me explain how we work here:
We use 2 fields in every table that's possible to lock:
CREATE TABLE...
July 23, 2009 at 8:51 am
Hey, by the way, I don't see why you use Dynamic SQL for that operation, all you do is a select/case statement, you should be able to include this in...
July 20, 2009 at 2:41 pm
July 20, 2009 at 2:38 pm
Viewing 15 posts - 226 through 240 (of 441 total)