Viewing 14 posts - 1 through 14 (of 14 total)
The same thing was running fine before.So i doubt its got anything to do with the code
Anyways here's the code
declare @mail_recepients varchar(max)
set @mail_recepients = 'vihitha.koyott@geodesic.com'
declare @profile sysname
set @profile =...
April 8, 2010 at 6:03 am
Hi,
Thanks a lot for the reply.
I tried using the above solution given by you.
But still not working 🙁
April 8, 2010 at 5:44 am
Phew !!! pls provide a sample code..can't help u much w/o that.
Btw the above code will work even if the number of columns are not equal.
What i meant was :
Eg...
November 19, 2009 at 5:57 am
The above code will work for that.
only u'll have to declare the temporary table variable with number of columns = maximum number of columns returned by ur three tables.
You'll get...
November 19, 2009 at 4:40 am
Hi,
Is you second procedure returning same number of columns for all the three tables ?
I have provided an example over here assuming that Storedprocedure B returns equal number of columns...
November 19, 2009 at 3:54 am
Hi,
1. In your procedure @p1 is not assigned any value so no matter what function you call,it'll always return a null...
(set @p1 = dbo.AddFltAmount(@p1,@Flt_Amount))
2.There is a better way than using...
November 18, 2009 at 3:00 am
You are not moving the cursor ahead.
WHILE (@@FETCH_STATUS=0)
BEGIN
if @TransCode='TR001'
BEGIN
SET @p1 = dbo.AddFltAmount(@p1,@Flt_Amount) --here where i am getting error
END
FETCH NEXT FROM Cur_Flt_Amt INTO @TransCode,...
November 18, 2009 at 2:42 am
Hi,
Do you mean that your query should work(give the same result) even if the string contains white spaces in it ??
If so then you can do this :
declare @order_branchcode varchar(50)
set...
November 17, 2009 at 10:53 pm
Hi,
Do you want a query output in the above format or you want to populate your table(3rd column) ?
I created a table ABC with 2 columns .
col1 col2
abc1
abc2
abc3
fgh1
dft1
fgh2
abc4
Executed the...
November 17, 2009 at 12:20 am
Had your table been normalised ,u wouldn't have run into this problem.
One way that i can think of is by using a cursor on your table.
Create a cursor on your...
November 13, 2009 at 6:19 am
Hi,
How can u insert a NULL value in a NOT NULL column {BILL_ZIP} ??
If the NULL constraint was removed on the last column,is this the solution u require ?
select [ORD_NBR]...
November 9, 2009 at 6:32 am
Hi ,
You may synchronize the the two databases using any synchronizing tools.
I use the xSQL compare tool for data synchronization between two similar database.
Dunno any query as such for doing...
November 9, 2009 at 5:26 am
You may try using the openrowset() function .
http://technet.microsoft.com/en-us/library/ms190312.aspx
An example is provided in the blog below:
November 9, 2009 at 5:16 am
Viewing 14 posts - 1 through 14 (of 14 total)