Click here to Skip to main content
15,888,527 members
Home / Discussions / Database
   

Database

 
QuestionAssigning values in an array... Pin
new_phoenix25-May-09 3:55
new_phoenix25-May-09 3:55 
AnswerRe: Assigning values in an array... Pin
riced25-May-09 7:03
riced25-May-09 7:03 
QuestionArticle Status Pin
specialdreamsin25-May-09 2:27
specialdreamsin25-May-09 2:27 
AnswerRe: Article Status Pin
Henry Minute25-May-09 4:23
Henry Minute25-May-09 4:23 
QuestionFolder Permissions Pin
jonhbt25-May-09 1:25
jonhbt25-May-09 1:25 
AnswerRe: Folder Permissions [modified] Pin
Eddy Vluggen25-May-09 7:03
professionalEddy Vluggen25-May-09 7:03 
QuestionRe: Folder Permissions Pin
jonhbt25-May-09 19:30
jonhbt25-May-09 19:30 
AnswerRe: Folder Permissions Pin
Eddy Vluggen26-May-09 0:28
professionalEddy Vluggen26-May-09 0:28 
You can encapsulate the commands in a stored procedure like this;
CREATE PROCEDURE ExecCmd 
	@PATH AS VARCHAR(1024)
AS
BEGIN
	DECLARE @Command AS VARCHAR(1024)
	SET @Command = REPLACE('attrib "<path>"', '<path>', @PATH)
	EXEC xp_cmdshell @Command
END
Calling the stored procedure with a parameter is done like this;
EXEC ExecCmd 'C:\Program Files'
Good luck Smile | :)

I are troll Smile | :)

QuestionRe: Folder Permissions Pin
jonhbt26-May-09 1:46
jonhbt26-May-09 1:46 
AnswerRe: Folder Permissions Pin
Eddy Vluggen26-May-09 6:15
professionalEddy Vluggen26-May-09 6:15 
GeneralRe: Folder Permissions Pin
jonhbt26-May-09 19:54
jonhbt26-May-09 19:54 
GeneralRe: Folder Permissions Pin
Eddy Vluggen26-May-09 20:42
professionalEddy Vluggen26-May-09 20:42 
GeneralRe: Folder Permissions Pin
jonhbt26-May-09 20:50
jonhbt26-May-09 20:50 
Questionstring comparision Pin
Hemant Thaker24-May-09 22:54
Hemant Thaker24-May-09 22:54 
AnswerRe: string comparision Pin
Luc Pattyn25-May-09 0:20
sitebuilderLuc Pattyn25-May-09 0:20 
Questionhow to get shell&gt; in mysql from mysql&gt; prompt in windows Pin
ranjithgoud24-May-09 18:50
ranjithgoud24-May-09 18:50 
QuestionHiring home based workers (2482) Pin
affan qazi23-May-09 22:34
affan qazi23-May-09 22:34 
AnswerSpam Pin
Eddy Vluggen23-May-09 22:40
professionalEddy Vluggen23-May-09 22:40 
QuestionHow i can know who the users connected in my application? Pin
VisualLive23-May-09 7:08
VisualLive23-May-09 7:08 
AnswerRe: How i can know who the users connected in my application? Pin
Eddy Vluggen23-May-09 8:16
professionalEddy Vluggen23-May-09 8:16 
AnswerRe: How i can know who the users connected in my application? Pin
ISoftwareDev23-May-09 10:26
ISoftwareDev23-May-09 10:26 
GeneralRe: How i can know who the users connected in my application? Pin
VisualLive24-May-09 16:54
VisualLive24-May-09 16:54 
Questionsyncronization of databse Pin
ranjithgoud23-May-09 1:54
ranjithgoud23-May-09 1:54 
QuestionSQL Server 2005 Instance [modified] Pin
εїзεїзεїз22-May-09 21:14
εїзεїзεїз22-May-09 21:14 
AnswerRe: SQL Server 2005 Instance Pin
Mycroft Holmes22-May-09 22:07
professionalMycroft Holmes22-May-09 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.