Viewing 15 posts - 3,541 through 3,555 (of 15,381 total)
Luis Cazares (11/21/2014)
Sean Lange (11/21/2014)
ZZartin (11/21/2014)
Sean Lange (11/21/2014)
ZZartin (11/21/2014)
Just out of curiousity but how do you use a cursor without using a while loop?
Under the hood a cursor is a...
November 21, 2014 at 1:40 pm
ZZartin (11/21/2014)
Sean Lange (11/21/2014)
ZZartin (11/21/2014)
Just out of curiousity but how do you use a cursor without using a while loop?
Under the hood a cursor is a just a while loop...
November 21, 2014 at 1:23 pm
muthyala_51 (11/21/2014)
Here is the requirement:
...
This update i am doing for all 12 newsletters , in a loop through the Tbl_sample_data for each logon user using cursor or temptable one...
November 21, 2014 at 1:16 pm
ZZartin (11/21/2014)
Just out of curiousity but how do you use a cursor without using a while loop?
Under the hood a cursor is a just a while loop on steroids that...
November 21, 2014 at 12:53 pm
g.britton (11/21/2014)
Luis Cazares (11/21/2014)
Damian-167372 (11/21/2014)
Luis Cazares (11/21/2014)
Damian-167372 (11/21/2014)
yes your absolutely right I agree table variable is a overhead for this query,
but for any other large queries I can...
November 21, 2014 at 12:46 pm
muthyala_51 (11/21/2014)
Sean Lange (11/21/2014)
November 21, 2014 at 12:35 pm
Luis Cazares (11/21/2014)
Damian-167372 (11/21/2014)
yes your absolutely right I agree table variable is a overhead for this query,
but for any other large queries I can use this method slightly...
November 21, 2014 at 10:43 am
Wayne West (11/21/2014)
Sean Lange (11/21/2014)
Wayne West (11/21/2014)
November 21, 2014 at 10:41 am
Wayne West (11/21/2014)
Phil Parkin (11/21/2014)
Why would you avoid going for...
November 21, 2014 at 10:12 am
Damian-167372 (11/21/2014)
DECLARE @tbl_var TABLE( servername varchar (100 ), ...
November 21, 2014 at 10:09 am
Your question is not very clear. You did a great job posting ddl and sample data for the sample data table. However, your query has the table main_table in it...
November 21, 2014 at 9:50 am
Damian-167372 (11/21/2014)
Sean Lange (11/21/2014)
Damian-167372 (11/21/2014)
Did you read the very first post from Koen? This is one of those rare times when a cursor really is the best approach.
Thanks, ...
November 21, 2014 at 8:41 am
Stewart "Arturius" Campbell (11/21/2014)
Sean Lange (11/21/2014)
November 21, 2014 at 8:32 am
marcia.j.wilson (11/20/2014)
Sean Lange (11/20/2014)
...
Suddenly I am singing Sesame Street "One of these things is not like the other, one of these things is kind of the same". 😛
Oh, great....
November 21, 2014 at 8:30 am
Damian-167372 (11/21/2014)
DECLARE @server_namevarchar(200)
Declare cr cursor for
SELECT server_name FROM dbo.Tbl_ServerList
Open cr
Fetch cr into @server_name
WHILE @@FETCH_STATUS = 0
begin
SET @cmd = 'select...
November 21, 2014 at 8:29 am
Viewing 15 posts - 3,541 through 3,555 (of 15,381 total)