List Info

Thread: <<< I couldnt backup my SQL Databases >>> !!!!!!!!!!!!!!!!




<<< I couldnt backup my SQL Databases >>> !!!!!!!!!!!!!!!!
user name
2006-04-06 10:09:30

The path is not supported because it’s not valid.  You are trying to connect to a share called C:, which is not a valid share name.  The share name might be C$, which is a system share, sometimes disabled for security reasons.  The path would be (let’;s leave out the text box just to get it working) \\servername\c$\Program Files\ Microsoft SQL Server\MSSQL\Data\\MYDATABASE_Data.Mdf&#8221;.  You would do better to share out the folder that contains the MDF file directly.

 

Please let me know how you get on.  I’m not convinced that replying to emails from the news group works.

 

David Bridge

 


From: CSDevelopersgooglegroups.com [mailto:CSDevelopersgooglegroups.com] On Behalf Of Kadir GÜNDÜZ
Sent: 06 April 2006 11:02
To: CSDevelopersgooglegroups.com
Subject: Re: <<&lt; I couldnt backup my SQL Databases >>&gt; !!!!!!!!!!!!!!!!

 

 

i applied your advice

FileInfo SourceFile1 =

new FileInfo("\\&quot; + textBox1.Text + "\c:\Program Files\Microsoft SQL Server\MSSQL\Data\\MYDATABASE_Data.Mdf&quot;);

but this time...

there is an Error Message like..

The given path's format is not supported

WHAT MUST I DO NOW ?????

 

 



 

On 4/6/06, Bradley, Peter <uwic.ac.uk">pbradleyuwic.ac.uk> wrote:


Shouldn't that be "c:\&quot; and not "c\&quot;???

Also it's much nicer to use escaped strings for readability. ; Something
like:

FileInfo SourceFile1 = new FileInfo("\\&quot; + textBox1.Text +
"\c:\Program Files\Microsoft SQL
Server\MSSQL\Data\MYDATABASE_Data.Mdf&quot;);

HTH


Peter

-----Original Message-----
From: googlegroups.com">CSDevelopersgooglegroups.com
[mailto:googlegroups.com">CSDevelopersgooglegroups.com] On Behalf Of gmail.com">gndzkdrgmail.com
Sent: 06 April 2006 10:01
To: C# Developers
Subject: <<&lt; I couldnt backup my SQL Databases >>&gt; !!!!!!!!!!!!!!!!


here is Codes

////////////////// textBox1.Text = ADEMTEKEREK &nbsp; &nbsp;   ; (server
computer's name)

FileInfo SourceFile1=new FileInfo(&quot;\\\\&quot; + textBox1.Text +
"\\c\\Program  ;Files\\Microsoft SQL
Server\\MSSQL\\Data\\MYDATABASE_Data.Mdf");

FileInfo SourceFile2=new FileInfo(&quot;\\\\&quot; + textBox1.Text +
"\\c\\Program Files\\Microsoft SQL
Server\\MSSQL\\Data\\MYDATABASE_Log.Ldf");

SourceFile1.CopyTo(&quot;D:\\&quot;,true);
SourceFile2.CopyTo(&quot;D:\\&quot;,true);

....and when i start my form, there is this Error Message

Could not find file"\\ADEMTEKEREK\c\Program &nbsp;Files\Microsoft SQL
Server\MSSQL\Data\MYDATABASE_Data.Mdf&quot;


WHAT CAN I DO...???????

thnks for now.....









**********************************************************************
Please visit the official ITV website at www.itv.com
for the latest company news.

This email and any files transmitted are confidential and intended
solely for the use of the individual or entity to which they are
addressed. If you have received this email in error, please notify
postmasteritv.com

Thank you.
**********************************************************************

**********************************************************************
Please visit the official ITV website at www.itv.com
for the latest company news.

This email and any files transmitted are confidential and intended
solely for the use of the individual or entity to which they are
addressed. If you have received this email in error, please notify
postmasteritv.com

Thank you.
**********************************************************************
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C# Developers" group.
To post to this group, send email to CSDevelopersgooglegroups.com
To unsubscribe from this group, send email to CSDevelopers-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/CSDevelopers
-~----------~----~----~----~------~----~------~--~---
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )