Viewing 8 posts - 1 through 8 (of 8 total)
Hello Erin
I would like to use same technique while inserting records into existing table. Is it possible by any way?
As per my knowledge IDENTITY function can be used only...
January 13, 2015 at 4:16 am
Actually i have hard-coded value for @Rec but it gets calculated for each record being inserted from source table into destination.
For this purpose I cannot directly insert values from source...
January 12, 2015 at 7:40 am
Below is just a part of code
-------------------------------------------
DECLARE @Rec int
DECLARE @FieldType2 int
DECLARE @FieldLabel2 VARCHAR(50)
DECLARE @Ctr int
DECLARE ExtraAux CURSOR FOR
SELECT FieldType, FieldLabel FROM Tab2Field WHERE BlockType = @BlockType AND FieldNumber NOT IN...
January 12, 2015 at 7:26 am
If you are using SQL Server 2008 then you can directly debug it using green triangle button available in toolbar.
In Query Analyzer window, write the line - EXECUTE <ProcName> <Param1,Param2.....>...
January 12, 2015 at 7:02 am
I think solution given by you as well as GilaMonster has solved the issue. I separated case statement for each of 4 columns and it worked.
Thanks all
January 9, 2015 at 2:40 am
This code gives error on line 1 as:
None of the result expressions in a CASE specification can be NULL.
I have replaced [CASE...] with proper cases but still ....
January 9, 2015 at 2:30 am
Thanks for that. But, do you mean to say that to insert values into textvalue, datevalue, numbervalue, memovalue columns, I need to repeat the case statement 4 times?
Actually,my requirement is,...
January 9, 2015 at 2:10 am
Issue is resolved... in a bit strange way.
Problem seemed to be due to permission issue. I was executing a Setup by double clicking on its EXE. This script...
December 18, 2014 at 3:06 am
Viewing 8 posts - 1 through 8 (of 8 total)