Sql Backup And FTP

Welcome Guest Search | Active Topics | Log In | Register
2 Pages 12>
New Topic Post Reply
Primary keys Options · View
Ivan
#1 Posted : Thursday, April 29, 2010 10:09:07 AM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
Hi!
At first: congratulations for this wonderful tool!

I made a script to create the database using th tool, when make the SQL creation of tables, the tool did not put together the primarys keys, and then gave error when creating foreign keys. What could I have done wrong?
Thanks

alex
#2 Posted : Thursday, April 29, 2010 10:56:02 AM Quote
Rank: Administration

Groups: Registered

Joined: 8/10/2009
Posts: 143
Please send us your sql script to support [at] sqlbackupandftp.com
Guest
#3 Posted : Thursday, April 29, 2010 12:11:51 PM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
Sorry, but I have the free version
How can I send the script ?
thanks !
Guest
#4 Posted : Friday, April 30, 2010 6:44:43 AM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
I did another test with another database and in SQL script, not the party came to PK.
For example:
- This is the script of the original table:
/****** Object: Table [dbo].[tbl_par_municipio] Script Date: 04/30/2010 08:42:26 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tbl_par_municipio](
[sgestado] [nvarchar](2) NOT NULL,
[cdmunic] [int] NOT NULL,
[nmmunic] [nvarchar](80) NULL,
CONSTRAINT [PK_tbl_par_municipio] PRIMARY KEY CLUSTERED
(
[sgestado] ASC,
[cdmunic] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]


-This is the script generated by the backup

--Create table and its columns
CREATE TABLE [dbo].[tbl_par_municipio] (
[sgestado] [nvarchar](2) NOT NULL,
[cdmunic] [int] NOT NULL,
[nmmunic] [nvarchar](80) NULL);
GO

Thanks
alex
#5 Posted : Friday, April 30, 2010 6:55:56 AM Quote
Rank: Administration

Groups: Registered

Joined: 8/10/2009
Posts: 143
You can pack your database to the zip archive and then upload on any free file hosting. Please use a password to protect the archive. Then please send us an email with the URL and the password.
Guest
#6 Posted : Friday, April 30, 2010 7:58:35 AM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
Ok, no problem!

link: http://www.megaupload.com/?d=IDDIEX10

zip password: backup

thanks
alex
#7 Posted : Friday, April 30, 2010 9:31:11 AM Quote
Rank: Administration

Groups: Registered

Joined: 8/10/2009
Posts: 143
Can you upload the original database?

BTW, what version of program do you use?
Guest
#8 Posted : Friday, April 30, 2010 11:37:10 AM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
ok,
http://www.megaupload.com/?d=ARDAP194
password: backup

I´m using SQL Server 2008 and SQLBACKUPANDFTP 4.4.1

Thanks
Ivan
#9 Posted : Tuesday, May 04, 2010 7:59:42 AM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
Hi again !
Did you find any kind of problem in my database?
It could be a parameter in my database that is wrong? Or a problem when I create the PK?
Thanks
alex
#10 Posted : Tuesday, May 04, 2010 8:00:48 AM Quote
Rank: Administration

Groups: Registered

Joined: 8/10/2009
Posts: 143
We've reproduce the issue. I will post message here if we have any progress regarding this issue.
alex
#11 Posted : Thursday, May 06, 2010 2:08:12 PM Quote
Rank: Administration

Groups: Registered

Joined: 8/10/2009
Posts: 143
We will include a fix of the issue in the next version of the application. Keep updated
Ivan
#12 Posted : Sunday, May 09, 2010 10:13:52 PM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
Hi again!
I have installed the version 4.5.1.31357 to test the remote backup and, the creation script created was not generated the primaries keys. This is the last version?

Att,
alex
#13 Posted : Monday, May 10, 2010 2:53:29 AM Quote
Rank: Administration

Groups: Registered

Joined: 8/10/2009
Posts: 143
This fix isn't included in this version
Ivan
#14 Posted : Tuesday, May 11, 2010 7:08:15 AM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
Hello!
I installed the 4.5.2.17440 version but the fix was not yet present. I will await the next update. I'm sorry, but I'm anxious to see this version working. Thanks!
alex
#15 Posted : Tuesday, May 11, 2010 12:48:37 PM Quote
Rank: Administration

Groups: Registered

Joined: 8/10/2009
Posts: 143
This bug was fixed in version 4.5.3
Ivan
#16 Posted : Tuesday, May 11, 2010 5:54:57 PM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
Good Night!
It worked! Now, I have the script with the Primary keys! Excellent!
One last doubt: There's a way to change the order of the script to create the PK before the FK? Or create the PK along with the tables?
Thank you!
alex
#17 Posted : Wednesday, May 12, 2010 7:48:01 AM Quote
Rank: Administration

Groups: Registered

Joined: 8/10/2009
Posts: 143
You cannot change this behavior
Ivan
#18 Posted : Wednesday, May 12, 2010 1:31:07 PM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
Yes I can, but if I need to do a restore and create a script to run the sqlcmd command I will need to find and change the script order manually between the various files generated by the tool.

Is There a way to you reverse the order in the tool?

Thanks
Ivan
#19 Posted : Friday, May 28, 2010 10:07:50 AM Quote
Rank: Guest

Groups: Registered

Joined: 8/10/2009
Posts: 725
Hi again!
The tool is working fine!, But you can not be a way to reverse the order and create the PK before the FK?
Thanks !!!
lupker
#20 Posted : Monday, February 14, 2011 11:14:59 AM Quote
Rank: Newbie

Groups: Registered

Joined: 2/14/2011
Posts: 2
Guest wrote:
Hi again!
The tool is working fine!, But you can not be a way to reverse the order and create the PK before the FK?
Thanks !!!


Hi there! I like this program, but during some testing (restoring databases), we also encoutered some problems with this order... The PK should be restored first and then the FK.

Now we need to modify a lot of files to make a succesful restore. Is there a way / update in the future which we reverse this ?

Thanks a lot !!!
gr,
Mark


Quick Reply Show Quick Reply
2 Pages 12>
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You can create polls in this forum.
You can vote in polls in this forum.