Viewing 15 posts - 3,601 through 3,615 (of 10,144 total)
pdanes (2/25/2014)
February 25, 2014 at 7:11 am
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...
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,
'#' '#', --...
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...
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...
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] =...
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?
February 24, 2014 at 6:54 am
FETCH NEXT FROM DBName_Cursor INTO @dbname
.
.
.
.
declare @dbname varchar(200)
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 🙂
February 24, 2014 at 6:30 am
pharmkittie (2/24/2014)
No worries. No solution yet...
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...
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?
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 >...
February 24, 2014 at 1:54 am
GilaMonster (2/21/2014)
ChrisM@Work (2/21/2014)
GilaMonster (2/20/2014)
February 21, 2014 at 9:26 am
Viewing 15 posts - 3,601 through 3,615 (of 10,144 total)