Viewing 15 posts - 7,501 through 7,515 (of 13,460 total)
you can do it with a subselect of something featuring row_number(), or simply with a GROUP BY:
With MySampleData ([Record#],ManagerID)
AS
(
SELECT 370868,1427894 UNION ALL
SELECT 274658,1428292 UNION ALL
SELECT 274658,1428293 UNION ALL
SELECT 349883,1430095 UNION...
May 27, 2011 at 7:20 am
i'm very weak on the reason why i had to do that trustowrthy thing;
can you turn off trustowrthy, change the proc to WITH EXECUTE AS SELF, and...
May 26, 2011 at 8:21 pm
Tom Van Harpen (5/26/2011)
this is the command I was playing around with:
EXECUTE master.sys.sp_MSforeachdb 'USE [?]; exec sp_addrolemember ''db_datareader'',''Domain\MyNTGroup'' '
Tom the way i've done it is like this: you'd just have...
May 26, 2011 at 3:48 pm
hxkresl (5/26/2011)
Kindly show me the edit that would include stored procedures in the result set:unsure:
it's right at the end: remove the last AND to see ALL dependancies, ro make it...
May 26, 2011 at 3:07 pm
not an easy way...
every Login would need a user in each databaser, and each user would need to be added to a role that gives them read access and...
May 26, 2011 at 3:02 pm
glad I could help!
Thansk for the feedback!
May 26, 2011 at 2:57 pm
here you go...look at the WHERE statement at the end..specific column name, and must be a view...you can change that to fit your needs if needed:
/*
obj_nmcol_nmdep_obj_nmdep_obj_typedep_col_nm
GMAACCPACTTBLKEYVW_GMBENEFViewNULL
GMAACCPACTTBLKEYVW_CDBGACCOMPViewNULL
*/
DECLARE @ColumnName VARCHAR(100)
SET @ColumnName =...
May 26, 2011 at 2:09 pm
asm1212 (5/26/2011)
May 26, 2011 at 2:03 pm
asm1212 (5/26/2011)
I have done that however, he doesnt want to copy over the sp's and other objects, he just wants the data...also our backups are only on tape...
sounds like the...
May 26, 2011 at 1:06 pm
Gopal Singh (5/26/2011)
When I create table as per code data is inserted in first successfully as ENG_REF value Engg0000000000 but when i insert in second row it showing an error...
May 26, 2011 at 11:11 am
Gopal Singh (5/26/2011)
May 26, 2011 at 9:35 am
based on what David showed, i'd just make the column calculated based on the identity instead of using a trigger:
I don't know if you want preceedig zeros, or if Engg4592...
May 26, 2011 at 9:21 am
kr.nithin (5/26/2011)
I have an issue . The issue is that I need to retrieve data such that Travel Date should be greater than the current date. But my problem is...
May 26, 2011 at 7:24 am
sqlzealot-81 (5/26/2011)
Not many organizations support picassa...Sorry...
blocked at my job too....
May 26, 2011 at 6:33 am
Sumanta Roy (5/26/2011)
Please restart your sql server and check if it works.
uhh..no.
intellisense as well as syntax highlighting are contained in a DLL called from the client app of...
May 26, 2011 at 5:10 am
Viewing 15 posts - 7,501 through 7,515 (of 13,460 total)