Click here to Skip to main content
16,008,954 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralActiveX and RecNavCntrl Pin
john john mackey3-Dec-04 9:00
john john mackey3-Dec-04 9:00 
Generalsupressing a unused variable warning Pin
hyling3-Dec-04 8:43
hyling3-Dec-04 8:43 
GeneralRe: supressing a unused variable warning Pin
PJ Arends3-Dec-04 8:54
professionalPJ Arends3-Dec-04 8:54 
GeneralRe: supressing a unused variable warning Pin
hyling3-Dec-04 9:53
hyling3-Dec-04 9:53 
GeneralRe: supressing a unused variable warning Pin
Gary R. Wheeler3-Dec-04 14:25
Gary R. Wheeler3-Dec-04 14:25 
Generalproblem resoting DB using VC++!! Pin
venadder3-Dec-04 8:08
venadder3-Dec-04 8:08 
GeneralRe: problem resoting DB using VC++!! Pin
David Crow3-Dec-04 9:09
David Crow3-Dec-04 9:09 
GeneralRe: problem resoting DB using VC++!! Pin
venadder3-Dec-04 11:43
venadder3-Dec-04 11:43 
well the database is already backup to a file. So backup datatbase is a no no.
Select Into returns one row of results, again unrelated to my problem.

What I want is to restore my database froma backup file on a remote machine on LAN.

This is doen by stored procedure using Restore Database blah from disk = path

now if path specifies a computer on LAn then it is like \\servername\drivename$\folder\file.dat

here SQL Server gives up since it does not have access to that drive.

So to provide access i create a temporary share on the said folder using sharing api function netshareadd.

It works fine but Server still cannot access cuz only certain people have rights.
So if i manually right click on the folder and go to security tab and add everyone to the list, SQL Server is happy, since it has access not.

The problem is how to do the same step in code.

Any suggestions???
GeneralRe: problem resoting DB using VC++!! Pin
David Crow3-Dec-04 12:11
David Crow3-Dec-04 12:11 
GeneralRe: problem resoting DB using VC++!! Pin
venadder3-Dec-04 12:15
venadder3-Dec-04 12:15 
GeneralRe: problem resoting DB using VC++!! Pin
David Crow6-Dec-04 2:20
David Crow6-Dec-04 2:20 
Generaladding bitmap to a cbutton Pin
prateekkathuria3-Dec-04 5:47
prateekkathuria3-Dec-04 5:47 
GeneralRe: adding bitmap to a cbutton Pin
David Crow3-Dec-04 6:01
David Crow3-Dec-04 6:01 
GeneralRe: adding bitmap to a cbutton Pin
prateekkathuria3-Dec-04 6:08
prateekkathuria3-Dec-04 6:08 
GeneralRe: adding bitmap to a cbutton Pin
Ravi Bhavnani3-Dec-04 6:24
professionalRavi Bhavnani3-Dec-04 6:24 
GeneralRe: adding bitmap to a cbutton Pin
prateekkathuria3-Dec-04 8:53
prateekkathuria3-Dec-04 8:53 
GeneralRe: adding bitmap to a cbutton Pin
prateekkathuria3-Dec-04 9:25
prateekkathuria3-Dec-04 9:25 
Questionmigrating MFC 6.0 app to 7.0; gotchas ? Pin
dvolpe3-Dec-04 5:07
dvolpe3-Dec-04 5:07 
AnswerRe: migrating MFC 6.0 app to 7.0; gotchas ? Pin
Chris Meech3-Dec-04 6:49
Chris Meech3-Dec-04 6:49 
AnswerRe: migrating MFC 6.0 app to 7.0; gotchas ? Pin
john john mackey3-Dec-04 8:44
john john mackey3-Dec-04 8:44 
AnswerRe: migrating MFC 6.0 app to 7.0; gotchas ? Pin
Kevin McFarlane4-Dec-04 4:18
Kevin McFarlane4-Dec-04 4:18 
GeneralMS VC++ & Flash Pin
Serg314163-Dec-04 4:07
Serg314163-Dec-04 4:07 
Generalmaybe a stupid Question,but need help! Pin
josephvan3-Dec-04 3:22
josephvan3-Dec-04 3:22 
GeneralRe: maybe a stupid Question,but need help! Pin
Mike Danberg3-Dec-04 9:32
Mike Danberg3-Dec-04 9:32 
GeneralRe: maybe a stupid Question,but need help! Pin
Mike O'Neill3-Dec-04 14:06
Mike O'Neill3-Dec-04 14:06 

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.