Viewing 15 posts - 3,601 through 3,615 (of 10,143 total)
Right-click on the view and select 'Script view as...', see if it's what you are execting.
Why would you want to convert this into a view?
Why does it have an ORDER...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 25, 2014 at 7:01 am
This should help you on your way. Post back if you are unsure of how to convert it into an update.
SELECT
po.[user_id], po.gen_userlevel, po.gen_supervisor, po.gen_approvelimit, po.gen_email, po.company_id,
'#' '#', --...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 25, 2014 at 2:03 am
mike 57299 (2/24/2014)
Luis Cazares (2/24/2014)
You can't chage that code to make it set based. You need to change the code from usp_make_record to accept several rows at a time.
Other than...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 9:35 am
ramyours2003 (2/24/2014)
help me to resolve in sql 2005
Identify the simplest component of your problem and tackle it. Try running this:
CREATE TABLE #DBROLES
(
DBName SYSNAME NOT NULL ,
UserName SYSNAME NOT NULL ,
db_owner...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 7:27 am
WITH cte AS (
SELECT userid, parentid
FROM user_detail
WHERE userid = '100002'
UNION ALL
SELECT t.userid, t.parentid
FROM user_detail t
INNER JOIN cte on cte.userid = t.parentid
)
SELECT
d.userid,
[DUE] =...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 7:04 am
ramyours2003 (2/24/2014)
thanks for the replies can pls resend the script by modifing
Posters are always encouraged to participate. Have you tried moving the variable declaration?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 6:54 am
FETCH NEXT FROM DBName_Cursor INTO @dbname
.
.
.
.
declare @dbname varchar(200)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 6:33 am
You're welcome - and it's great to hear that you are benefiting so much from visiting ssc 🙂
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 6:30 am
pharmkittie (2/24/2014)
No worries. No solution yet...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 4:45 am
-- Please use table aliases so folks can tell which columns are from which tables.
-- why do you have brackets around some of the columns? e.g. ([1_1]),([1_2]),...
-- Are all those...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 4:21 am
mike 57299 (2/23/2014)
Ok all,...a cursor of data that I want to write out...
Could you be a little more specific e.g. how many rows? What's the client?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 2:03 am
wendy elizabeth (2/23/2014)
The sql looks like the folloiwng:
select numberofcases
from inventory
where inventory_cnt >...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2014 at 1:54 am
GilaMonster (2/21/2014)
ChrisM@Work (2/21/2014)
GilaMonster (2/20/2014)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 21, 2014 at 9:26 am
Try EXEC (@QUERY)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 21, 2014 at 7:24 am
Replace EXEC @QUERY with PRINT @QUERY and post the resulting message here.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 21, 2014 at 6:50 am
Viewing 15 posts - 3,601 through 3,615 (of 10,143 total)