Viewing 15 posts - 31 through 45 (of 201 total)
It works ....Thank you so much Sean...I really appreciate your help.
December 14, 2011 at 9:21 am
Here is complete code, I hope this will make the query more clear now...
In words the requirement is to count all the Folders including subfolders in the given root folder,...
December 14, 2011 at 8:22 am
Ohh I stepped out...SET based ..I never tried that ..
What details would you require from me for that....(also do you need a NYQUIL???? :-))
December 13, 2011 at 2:04 pm
yeah the mainId is actually hard coded by me...
I think this is what I have to do but instead of @ChildID I will have to use Cursor to fetch the...
December 13, 2011 at 12:52 pm
Well,There is no MainId column in the SRC table, there is only ChildId and ParentID, I just created that test table as sample data table...
December 13, 2011 at 12:24 pm
Hmm...This will be runnning for a hardcoded child Id (in this case 87)
What if I run like this changing the where caluse to IN ----Where childId in...
December 13, 2011 at 12:16 pm
Thanks but this is not what I am looking for
once i get this fixed for 87 I will use this function to run for other MAINID's
So basically I need count...
December 13, 2011 at 11:50 am
Thanks Lowell...
Your answer is perfect but I cannot use xp_cmdshell
as No permission
Msg 15281, Level 16, State 1, Procedure xp_cmdshell, Line 1
SQL Server blocked access to procedure 'sys.xp_cmdshell' of component...
December 9, 2011 at 12:58 pm
HI,
The query is like this:
Select Name from Mytable
Returns:
ACCOUNT
FINANCE
PURCHASING
PERSONAL
COMPUTER
Now I will set a path as :
C:\test
So All these names folder should be created inside Test.
If already exists then don't...
December 9, 2011 at 12:44 pm
Thanks Scott/Jason
Works fine........
December 21, 2010 at 1:35 pm
Phil Thanks for your suggestion,I really like it and prefer it too, but still I have to develop a script for this, as this is assigned to me.
Is it so...
December 15, 2010 at 7:53 am
Hi all..
here is the solution...
December 14, 2010 at 2:36 pm
Data looks sommthing like this:
Parent Id Child_Id
2 3
2 4
2 5
6 7
6 8...
December 10, 2010 at 10:55 am
Here is the complete code with inserts... to find 3rd highest salary
try it..
CREATE TABLE [SAL](
[name] [varchar](12) NULL,
[salary] [int] NULL
)
select * from SAL
INSERT INTO sal ( name,salary)...
November 15, 2010 at 2:58 pm
Viewing 15 posts - 31 through 45 (of 201 total)