Viewing 15 posts - 6,646 through 6,660 (of 8,761 total)
Quick suggestion, instead of nesting IIF's use the Switch statement
😎
=Switch(
Fields!Currency.Value = "USD" ,"'$' #,0;('$' #,0)"
,Fields!Currency.Value = "AUD" ,"'AUD' #,0;('AUD' #,0)"
,Fields!Currency.Value = "EUR" ,"'€' #,0;('€' #,0)"
,Fields!Currency.Value = "GBP" ,"'£' #,0;('£'...
November 6, 2014 at 2:09 am
Quick crosstab as an alternative to the pivot
😎
USE tempdb;
GO
SET NOCOUNT ON;
Declare @detail table
(
grn_no varchar(55),
po_no varchar(50),
vendor_no numeric(10,2),
...
November 6, 2014 at 1:59 am
Quick suggestion, add WITH NOWAIT to the RAISERROR
😎
BEGIN
BEGIN TRAN;
RAISERROR ('Sorry!You have entered more discount',16,1) WITH NOWAIT;
ROLLBACK;
END
November 6, 2014 at 1:06 am
Quick suggestion, change the primary key, something like this:
😎
IF OBJECT_ID('') IS NOT NULL DROP TABLE BasicData;
CREATE TABLE BasicData
(
BasicData INT IDENTITY(1,1) NOT NULL PRIMARY KEY CLUSTERED
...
November 5, 2014 at 1:10 am
Quick question, an you post the ddl (create script) for the destination table?
😎
November 5, 2014 at 12:16 am
Jeff Moden (11/4/2014)
Eirikur Eiriksson (11/4/2014)
Just dawned on me, kind of a deja vu, here is around six years old thread on the same subject.😎
Heh... after 6 years, we might finally...
November 4, 2014 at 8:18 pm
pietlinden (11/4/2014)
(I must be learning! I was close!)
Almost there;-)
😎
November 4, 2014 at 1:26 pm
Ed Wagner (11/4/2014)
November 4, 2014 at 10:26 am
Steve Jones - SSC Editor (11/4/2014)
We made a few forum changes today. If you notice something, let us know.
No time outs or errors yet, fingers crossed, knock on wood, salt...
November 4, 2014 at 10:22 am
Just dawned on me, kind of a deja vu, here is around six years old thread on the same subject.
😎
November 4, 2014 at 10:18 am
Quick thought, is it this you are looking for?
😎
SELECT DATEADD(HOUR,735510.40461,'1900-01-01 00:00:00.000')
Result
1983-11-28 06:00:00.000
The time element
SELECT CONVERT(TIME,DATEADD(HOUR,735510.40461,'1900-01-01 00:00:00.000'),0)
Result
06:00:00.0000000
November 4, 2014 at 10:12 am
Looks good to me, you might want to construct the filename in the same procedure, i.e.
DB_NAME() + NCHAR(44) + OBJECT_SCHEMA_NAME(ASM.object_id) + NCHAR(44) + OBJECT_NAME(ASM.object_id) + N'.sql'
😎
November 4, 2014 at 9:59 am
Quick question, any functions or operators used in the code? Many do have 8K limits. Also look out for implicit casts.
😎
November 4, 2014 at 1:43 am
Quick thought, Task Manager is lying.
😎
November 4, 2014 at 1:39 am
Chipping in my 2 Cents, it is close to impossible to validate a phone number without a geographical reference, with it, it can still cause an headache.
On the OP,...
November 4, 2014 at 1:04 am
Viewing 15 posts - 6,646 through 6,660 (of 8,761 total)