This is the connection string: <add name="umbracoDbDSN" connectionString="server=####;database=####;user id=####;password=####" providerName="System.Data.SqlClient" />
I've done some initial investigation and can't seem to replicate your issue. I will invest some more time later in the week. I'll be cleaning up the comments and putting the source code online sometime in the near future which may also allow others to have a look and see if there's a obvious issue I've missed.
I've now uploaded the source code for the UserControl. As mentioned in the project blurb, it was a rather hastily hacked together package so I'd be really keen to hear feedback on improvements or bug fixes which can be included for future releases.
I still can't replicate the error you guys are getting so have a look and see if there's a glaring mistake I've made ;-)
I am happy to provide personal email to anyone who wishes to communicate.
Error thrown by SQLBackUp package
Hello,
I installed the packaged on Umbraco 7.1.8. When I try to create a backup I get the following exception:
I can't post the connection string of course, but it's to our development database server. Any extra info you need?
Jeroen
Hi Jeroen,
Hello,
The version is SQL Server 2008 R2 10.50.1600.1
This is the connection string: <add name="umbracoDbDSN" connectionString="server=####;database=####;user id=####;password=####" providerName="System.Data.SqlClient" />
Jeroen
Hi Jeroen,
I've done some initial investigation and can't seem to replicate your issue. I will invest some more time later in the week. I'll be cleaning up the comments and putting the source code online sometime in the near future which may also allow others to have a look and see if there's a obvious issue I've missed.
I will keep you posted.
Regards
Adam
Thanks. I'll try to debug it myself once I have the source code.
Jeroen
I got the same issue
And im running umbraco 7.1.8 and MSSQL 2012
Hi,
Are either of you using a dot-convention in your connection string at all?
eg: server=.\INSTANCENAME
No it's just a url in my situation.
Jeroen
I tryed changing it, but nothing semes to work for me
Hi,
I've now uploaded the source code for the UserControl. As mentioned in the project blurb, it was a rather hastily hacked together package so I'd be really keen to hear feedback on improvements or bug fixes which can be included for future releases.
I still can't replicate the error you guys are getting so have a look and see if there's a glaring mistake I've made ;-)
I am happy to provide personal email to anyone who wishes to communicate.
Many thanks
Adam
Found the error :)
Its becouse of the name of my db.
Its called xxx.umbraco
so line 125 should be :
sqlcmd = new SqlCommand("BACKUP DATABASE [" + sqlcon.Database + "] TO DISK = '" + destdir + filename + "'", sqlcon);
instead of
sqlcmd = new SqlCommand("BACKUP DATABASE " + sqlcon.Database + " TO DISK = '" + destdir + filename + "'", sqlcon);
:)
Excellent. How obvious. I'll update the package to 1.1 and reupload.
Thanks Kim.
is working on a reply...