Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 extended stored procedures

Author  Topic 

dejjan
Yak Posting Veteran

99 Posts

Posted - 2005-08-01 : 08:58:21
Hello,
I have share folder: "Share_Folder".
By using extended stored procedures 'xp_getnetname' and 'xp_fileexist'
I can find out if some Share Folder exists on particular computer or not. But I would like to know on which drive this folder is placed (C:, or D:, or ...).
Is there any extended stored procedure with this purpose, or is there some other way to get that information.

kapilarya
Yak Posting Veteran

86 Posts

Posted - 2005-08-01 : 09:10:37
Can You me an example of using these two stored procedures.

Kapil Arya
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-08-01 : 09:16:21
You should handle this in your presentation layer as they are undocumentated sps


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

dejjan
Yak Posting Veteran

99 Posts

Posted - 2005-08-01 : 10:12:07
for Kapil Arya:
I
declare @ComputerName varchar(20)
exec master..xp_getnetname @ComputerName output
print @ComputerName

II
create table #tmp
(
FileExists int,
FileIsADirectory int,
ParentDirectoryExists int
)

insert into #tmp
exec master..xp_fileexist '\\ComputerName\ShareFolder'

select * from #tmp

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-08-01 : 10:21:20
As I told you handle this in your presentation layer
What is your Front End application?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

dejjan
Yak Posting Veteran

99 Posts

Posted - 2005-08-02 : 05:08:07
I don't have Front End application. I want to write stored procedure and to make scheduled job. Only T-Sql. So I am interesting is there any way to find name of drive if I know folder name or file name.
Go to Top of Page
   

- Advertisement -