Viewing 15 posts - 601 through 615 (of 1,253 total)
Grant Fritchey (9/19/2008)
Chirag (9/19/2008)
GilaMonster (9/18/2008)
Chirag (9/18/2008)
"Keep Trying"
September 23, 2008 at 12:31 am
Hey i thought the answer is "They are the same".
"Keep Trying"
September 23, 2008 at 12:18 am
Hi
I have'nt gone thru your post in detail.. sorry for that 🙂
You could take a look at CTE 's for fetching hierarchial data.
That way you wont have to worry abt...
"Keep Trying"
September 22, 2008 at 11:34 pm
GilaMonster (9/18/2008)
Chirag (9/18/2008)
"Keep Trying"
September 19, 2008 at 12:55 am
Are you sure that there is a table or index named VBMOD.
You need to pass a table name to sp_autostats.
"Keep Trying"
September 18, 2008 at 6:51 am
another way is to right click on the proc in SSMS and select view dependencies. It will show all objects that depend on the proc and also all objects...
"Keep Trying"
September 18, 2008 at 1:16 am
what are u passing to @WhereString ?
"Why do people point to their wrists when asking for the time, but don't point to their crotch when they ask where the bathroom...
"Keep Trying"
September 16, 2008 at 11:27 pm
I think it shud be..
WITH temp (Id, ParentId, iteration)
AS
(
SELECT Id, ParentId, 0 AS iteration
FROM OrgTable WHERE ParentId IS Null
UNION ALL
SELECT a.Id, b.ParentId, a.iteration + 1
FROM temp a
...
"Keep Trying"
September 16, 2008 at 2:46 am
u hv to use dynamic queries for this.
Declare @sql varchar(1000)
SET @sql = 'SELECT *
FROM Person.Address where AddressLine2 '...
"Keep Trying"
September 16, 2008 at 12:55 am
What happened to op?
"Keep Trying"
September 16, 2008 at 12:45 am
"declare @@TheKey int". should'nt it be declare @TheKey int.
selecting top 1 may not be very random.
"Keep Trying"
September 16, 2008 at 12:36 am
If this is the scenario...you want execute a procedure named proc1 and the db that you want to execute the proc is dynamic, keep the proc in all the...
"Keep Trying"
September 16, 2008 at 12:26 am
select ParentTable.ParentID, ParentTable.SomeDataCol,
CASE WHEN A.Parent > 0 THEN 1 ELSE 0 END AS Bitcolumn
FROM ParentTable
LEFT OUTER JOIN (select parentid as parent from ChildTable where bitcol...
"Keep Trying"
September 4, 2008 at 3:34 am
Viewing 15 posts - 601 through 615 (of 1,253 total)