Viewing 15 posts - 7,501 through 7,515 (of 13,469 total)
huslayer (6/1/2011)
Hi,I'm having the same problem and Ive sybase client installed, so what path variables you're talking about here and how to change it?
Thanks
the %PATH% allows you to do things...
June 1, 2011 at 11:03 am
In SQL Server, they are the same thing...in ORACLE and maybe other DBMS systems an AFTER trigger is different.
The first ingredient in properly employing triggers is to understand the differences...
May 27, 2011 at 12:19 pm
ruff if you only have hours and minutes, how are you going to get a datetime? you need a base/starting point...is that jan 1 of this year, for example?
you could...
May 27, 2011 at 12:13 pm
there's a trick that you can get randomly ordered records by using the NEWID() function...is that what you are after?
select top 10
ColumnList
From SomeTable
order By NEWID()
and this?
in both...
May 27, 2011 at 11:09 am
something like this?
--SandBox_2011-05-27_10-51-42.bak
SELECT db_name()
+'_'
+ REPLACE(
...
May 27, 2011 at 8:52 am
ColdCoffee (5/27/2011)
May 27, 2011 at 8:47 am
what i posted works...whether there's more than one manager or not.
change the query to work on YourTable instead of mySampleData... then tell us what you expected that is different fromt...
May 27, 2011 at 7:53 am
physical file? no...you have to ask the SQL isntance what databases it currently has ...usually via a query, though...for example
SELECT name from master.dbo.sysdatabases
why don't you want to connect to discover...
May 27, 2011 at 7:39 am
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
Viewing 15 posts - 7,501 through 7,515 (of 13,469 total)