Saturday, February 25, 2012
Database Redundancy
We are planning to set up a third database system which polls the other two every minute. It compiles and mantains a deduped, clean, and complete collection of data from the other two database systems. If one of the first two systems goes down or misses a row, the third will automatically get the data from the other system. If this deduped database system goes down, we can rebuild the data from the other two.
Does this seem like the right route to take or is there a simpler or safer route available?Talking about safer is to pay the bill (add $50 administrative fee + 15% of outstanding balance per day past due). It's also simpler to present your data the way it should be presented, - SPAM targets, many of which are email addresses of many participants of this forum that would appreciate this SPAM to stop. Anybody else sees any value in this kind of data?|||Huh? SPAM? Administrative fees? What?|||rdjabarov seems to go ballistic every time RogerWilco posts... I'd write that one off as a lover's quarrel myself.
-PatP|||Well, that's a relief. I thought it was just me...|||Hmmm, interesting observations ;)
I don't go ballistic, I just hate when people like Kurt display that level of immaturity by trying to avoid to pay for the services that were provided.
I went out of my way, thinking that if someone needs help I will go an extra mile just because I am that kind of person.
His case was not disasterous, he is a smart guy, a very good programmer, but definitely lacks maturity and ethics when it comes to business.
He continues showing up here and hopes for a free help while capitalizing on strategy that I presented to him, for which he should pay, right? Or am I the only one thinking that our services (if asked for) are not free? After all, that WAS the initial agreement...|||So you had a business agreement with him? What's the SPAM stuff all about?|||I don't go ballistic, I just hate when people like Kurt display that level of immaturity by trying to avoid to pay for the services that were provided.I'd say that was open to debate. ;)
He continues showing up here and hopes for a free help while capitalizing on strategy that I presented to him, for which he should pay, right? Or am I the only one thinking that our services (if asked for) are not free? After all, that WAS the initial agreement...That might well be another story. I don't have any clue about what private agreements might exist between you two, so I can't comment on them. All I know is that everytime RogerWilco posts, it appears to me that you promptly go off the deep end.
I simply don't respond to RogerWilco's posts anymore. I don't need the aggrivation.
-PatP|||So you had a business agreement with him? What's the SPAM stuff all about?That's what his "company" does, - SPAM. His "valueable" data is millions and millions of people's personal info, including emails and addresses, that they are getting from somewhere. As I said, he is a very good programmer, writes his own parsing and processing engines (C++), and manages to get by with more-or-less decent T-SQL stuff. When he asked for help I spent most of the weekend visiting his site and presenting to him some conceptual changes in his infrastructure that will facilitate more efficient processing of this huge bulk of data. Before and shortly after my visit I received about a dozen of emails from him discussing all that, and after the visit received a "thank you" note from him and his boss, saying that "the payment will be made promptly."
Well, my question to him is "WHERE THE HECK IS IT?"
And Pat, if you can't comment (as you wrote yourself), - then DON'T I definitely didn't ask for your opinion. :cool:|||And Pat, if you can't comment (as you wrote yourself), - then DON'T I definitely didn't ask for your opinion. :cool:I don't believe that I commented on your private arrangements, only on my perception of your public (on this forum) behavior.
-PatP|||I am afraid I didn't ask for your perception either. Making the first post for the guy's question and asking him to pay his bill is not indicative of "public behavior" you're incinuating.|||rdjabarov, i can understand how you feel, i've been stiffed before too
however, this site is not the place for you to raise the issue
anybody else besides me feel that it would be a good idea to purge the whole thread?
somebody, please, click on that little exclamation mark, and it's gone...|||OK, I am all for it, just don't be so eager to answer his questions. He can actually fake his way through whatever problems he has on his own ;)|||Ok, you can call him spammer scum, but DUDE! YOU HELPED HIM!
I can see why you want to get paid. Full-body disinfection can't be cheap. Then there is the truckload of margaritas required to get the bad taste out of your mouth, not to mention paying a monastery full of monks to pray your soul out of purgatory. Cost of business, sure, but it all has to add up...|||Robert!! You have my email and cell phone number and until now you never mentioned payment problems or any dissatisfaction in dealing with me. You really should have mentioned this to me in private rather than like this on a public forum.
I emailed our accountant to arrange payment for 8 hours worth of work (this was all several months ago); if that didn't happen I assure you it was a purely unintentional mistake and it will be corrected PROMPTLY!
I'm going to continue this discussion with you in private as it's really inappropriate here.
I'd like to stress that I really do appreciate the help that I get here. This forum is designed on a free basis but honestly much of the help that I get here is very valuable and would be worth paying for. If I owned the business I would give bounties on every useful answer I got but it's hard to sell those kinds of idead to my boss.
It's not that I'm not willing to pay for help; I work in a technical architect/team lead role. Getting management approval for funds for outside help is difficult even though I am a strong proponent of doing so.
Hmmm, interesting observations ;)
I don't go ballistic, I just hate when people like Kurt display that level of immaturity by trying to avoid to pay for the services that were provided.
I went out of my way, thinking that if someone needs help I will go an extra mile just because I am that kind of person.
His case was not disasterous, he is a smart guy, a very good programmer, but definitely lacks maturity and ethics when it comes to business.
He continues showing up here and hopes for a free help while capitalizing on strategy that I presented to him, for which he should pay, right? Or am I the only one thinking that our services (if asked for) are not free? After all, that WAS the initial agreement...|||I simply don't respond to RogerWilco's posts anymore. I don't need the aggrivation.
-PatP
May I ask why? You certainly don't owe me anything but I very much appreciate the valuable assistance of you, blindman, Robert, Brett, and several others and I hate to lose it.|||OK, all is well, all misunderstanding (and that's what it was) is gone, let's forget about harsh words and inappropriate remarks, and move on. I know how hard it is to do your job AND keep track of things that should have bee a direct responsibility of someone else. But it looks like it has been resolve, so let's...move on, as I said ;)
Going back to the original question, - I would recommend to set up a custom log shipping (fancy word for applying transaction log dumps on a scheduled basis while having a standard edition even if EE is already invested into). Implementing this guarantees simplicity of the architecture and timely consistency of the data.|||I forgive you too, spammer-scum.
Robert, you are hoot! I am literally Rolling On The Floor Laughing My Ass Off right now...|||and the winner is .... RdJabarov by a nose.
and the spammer? well y'all gotta tune in next week just to see what happens.|||I forgive you too, spammer-scum.
Robert, you are hoot! I am literally Rolling On The Floor Laughing My Ass Off right now...Hey, I do give a damn, but I also hope you enjoyed yourself (hopefully translated into one less offensive post from you)|||and he comes back out swinging!
Friday, February 17, 2012
Database permission error
I am new to SQL. It was hard just to figure out how to install it.
I know I am logged in as a Admin. in Windows.
I have the little server box with the round circle on it in the bottom right
corner(toolbar). The SQL Server Service Manager.
I tried to search for the sp_helpsrvrolemember command on my drive. It's
not on the server.
Any ideas?
Do anyone have any suggestions?
Thanks for your help,
T
"Andy Svendsen" <andymcdba1@.NOMORESPAM.yahoo.com> wrote in message
news:#3883ky6DHA.2628@.TK2MSFTNGP10.phx.gbl...
> Are you connecting with a trusted connection or as sa. It sounds like you
> do not have the access required to create a database. Make sure you are
> connecting in as a member of the Administrators group on that machine so
you
> become part of the sysadmin (aka System Administrators) role. At a
minimum
> you need the dbcreator role level access. Running
> sp_helpsrvrolemember 'sysadmin'
> -- or --
> sp_helpsrvrolemember 'dbcreator'
> will tell you who belongs to these roles. Looking at the Query window
title
> bar will tell you who you are logged in as.
> <servername>.<database name>.<loginname> or <DOMAIN>\<username> (for Win
NT
> authentication)
>
> Reboot and sharing the folder will not help. You might want to check the
NT
> permissions though.
> --
> ************************************************** *****************
> Andy S.
> MCSE NT/2000, MCDBA SQL 7/2000
> andymcdba1@.NOMORESPAM.yahoo.com
> Please remove NOMORESPAM before replying.
> Always keep your antivirus and Microsoft software
> up to date with the latest definitions and product updates.
> Be suspicious of every email attachment, I will never send
> or post anything other than the text of a http:// link nor
> post the link directly to a file for downloading.
> This posting is provided "as is" with no warranties
> and confers no rights.
> ************************************************** *****************
> "Taishi" <taishi_bak@.hotmail.com> wrote in message
> news:%23ZocZIy6DHA.2568@.TK2MSFTNGP10.phx.gbl...
> > Windows Pro
> > Receiving the following error:
> > CREATE DATABASE permission denied in database 'master'. Could not attach
> > database 'pubs' to file 'D:\Program Files\Microsoft SQL
> > Server\MSSQL$NETSDK\Data\pubs.mdf'.
> > Here are some things done to try to resolve the problem:
> > Reboot 4-5 times
> > Shared out the folder
> > Web shared the folder
> > Thanks for your help,
> > T.Taishi (taishi_bak@.hotmail.com) writes:
> I tried to search for the sp_helpsrvrolemember command on my drive. It's
> not on the server.
Searching the drive? There you will not find it. This is not a command
you run Explorer or the Command-Line Window.
This is a command that you run in Query Analyzer that comes with SQL Server.
From Query Analyzer you can pass any T-SQL command to SQL Server and
ser the result from it.
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||I am using WIN XP Pro and the SQL is the MSDE.
How can I check my access?
How can I resolve the following error?
CREATE DATABASE permission denied in database 'master'. Could not attach
database 'pubs' to file 'D:\Program Files\Microsoft SQL
Server\MSSQL$NETSDK\Data\pubs.mdf'.
Thanks,
T.
"Erland Sommarskog" <sommar@.algonet.se> wrote in message
news:Xns9486F27E141C6Yazorman@.127.0.0.1...
> Taishi (taishi_bak@.hotmail.com) writes:
> > I tried to search for the sp_helpsrvrolemember command on my drive.
It's
> > not on the server.
> Searching the drive? There you will not find it. This is not a command
> you run Explorer or the Command-Line Window.
> This is a command that you run in Query Analyzer that comes with SQL
Server.
> From Query Analyzer you can pass any T-SQL command to SQL Server and
> ser the result from it.
>
> --
> Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techin.../2000/books.asp|||Taishi (taishi_bak@.hotmail.com) writes:
> I am using WIN XP Pro and the SQL is the MSDE.
> How can I check my access?
> How can I resolve the following error?
> CREATE DATABASE permission denied in database 'master'. Could not attach
> database 'pubs' to file 'D:\Program Files\Microsoft SQL
> Server\MSSQL$NETSDK\Data\pubs.mdf'.
Exactly what command did you run?
How did you log into SQL Server?
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||I haven't ran any commands. I just installed it and tried to access the
dbase from a web form. The error is in my first post. I installed the MSDE
2000 from the following web site:
ww.microsoft.com/downloads
Featured download
Microsoft SQL Server 2000
Desktop Engine(MSDE 2000) Release A
I don't have the SQL server disks.
Any ideas? What commands can I use to check access rights?
Thanks,
T.
"Erland Sommarskog" <sommar@.algonet.se> wrote in message
news:Xns948811073404Yazorman@.127.0.0.1...
> Taishi (taishi_bak@.hotmail.com) writes:
> > I am using WIN XP Pro and the SQL is the MSDE.
> > How can I check my access?
> > How can I resolve the following error?
> > CREATE DATABASE permission denied in database 'master'. Could not attach
> > database 'pubs' to file 'D:\Program Files\Microsoft SQL
> > Server\MSSQL$NETSDK\Data\pubs.mdf'.
> Exactly what command did you run?
> How did you log into SQL Server?
> --
> Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techin.../2000/books.asp|||Taishi (taishi_bak@.hotmail.com) writes:
> I haven't ran any commands. I just installed it and tried to access the
> dbase from a web form. The error is in my first post. I installed the
> MSDE 2000 from the following web site:
> ww.microsoft.com/downloads
> Featured download
> Microsoft SQL Server 2000
> Desktop Engine(MSDE 2000) Release A
> I don't have the SQL server disks.
> Any ideas? What commands can I use to check access rights?
Obviously then that web form tried run some commands. Exactly where
did this web form come from? Did you write it yourself, or was it included
in the download?
Is the web server on the same machine as MSDE? And what rights does the
account that web server is logged in have?
I would assume that the web form logs into MSDE with Windows authentication,
but it does not have sysadmin privileges. If you give the web-server account
administrator privileges in Windows, things might go better. You may have to
restart the web server for the change to have effect.
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||
"Erland Sommarskog" <sommar@.algonet.se> wrote in message
news:Xns948A6458FF29BYazorman@.127.0.0.1...
> Taishi (taishi_bak@.hotmail.com) writes:
> > I haven't ran any commands. I just installed it and tried to access the
> > dbase from a web form. The error is in my first post. I installed the
> > MSDE 2000 from the following web site:
> > ww.microsoft.com/downloads
> > Featured download
> > Microsoft SQL Server 2000
> > Desktop Engine(MSDE 2000) Release A
> > I don't have the SQL server disks.
> > Any ideas? What commands can I use to check access rights?
> Obviously then that web form tried run some commands. Exactly where
> did this web form come from? Did you write it yourself, or was it included
> in the download?
> Is the web server on the same machine as MSDE? And what rights does the
> account that web server is logged in have?
> I would assume that the web form logs into MSDE with Windows
authentication,
> but it does not have sysadmin privileges. If you give the web-server
account
> administrator privileges in Windows, things might go better. You may have
to
> restart the web server for the change to have effect.
> --
> Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techin.../2000/books.asp
I wrote the Web form myself. Everything is on the same machine.
I have to figure out your question about the Web Server account.
I am using IIS and ASP. (i feel dumb)
Is IIS my web server?
Thanks for help,
T.|||Taishi (taishi_bak@.hotmail.com) writes:
> I wrote the Web form myself. Everything is on the same machine.
Ah, but if you wrote the web form, you also included commands for
SQL Server one way or another.
> I have to figure out your question about the Web Server account.
> I am using IIS and ASP. (i feel dumb)
> Is IIS my web server?
I don't know much about IIS (or ASP), but I believe it is a web server.
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||Erland,
Do you know how to use Enterprise Manager?
I was able to find a trial version of the Enterprise Manager.
After reading my error today, I can see there is a problem with 2 dbases
'PUBS' and 'Master'
CREATE DATABASE permission denied in database 'master'. Could not attach
database 'pubs' to file 'D:\Program Files\Microsoft SQL
Server\MSSQL$NETSDK\Data\pubs.mdf'.
I can see the following in the MSDE manager:
sql server(my machine name\??SDK)
after I right click on 'PUBS' the following pops up.
--Users/Roles/Public
--public
--machine_name\aspnet
--guest
guest is the only one with 5 check marks going across from left to right for
the following:
Create Table, Create View, Create SP, Create Default, Create Rule
the following 3 are blank:
Create Function, Backup DB, and Backup Log
public has just 1 check mark on
Create SP
machine_name\aspnet is blank from left to right.
CREATE DBASE right is not displayed.
How can I solve my Permission denied error problem?
Thanks for the help,
Taishi
"Erland Sommarskog" <sommar@.algonet.se> wrote in message
news:Xns948AEF077388EYazorman@.127.0.0.1...
> Taishi (taishi_bak@.hotmail.com) writes:
> > I wrote the Web form myself. Everything is on the same machine.
> Ah, but if you wrote the web form, you also included commands for
> SQL Server one way or another.
> > I have to figure out your question about the Web Server account.
> > I am using IIS and ASP. (i feel dumb)
> > Is IIS my web server?
> I don't know much about IIS (or ASP), but I believe it is a web server.
> --
> Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techin.../2000/books.asp|||Taishi (taishi_bak@.hotmail.com) writes:
> Do you know how to use Enterprise Manager?
Barely. :-) I prefer to carry most of my task by submitting T-SQL
commands from Enterprise Manager.
> I was able to find a trial version of the Enterprise Manager.
> After reading my error today, I can see there is a problem with 2 dbases
> 'PUBS' and 'Master'
> CREATE DATABASE permission denied in database 'master'. Could not attach
> database 'pubs' to file 'D:\Program Files\Microsoft SQL
> Server\MSSQL$NETSDK\Data\pubs.mdf'.
But you still have not told us what that web form is doing! Sorry, I
cannot give much precise help if you don't explain what you are trying
to do.
But for the record, master and pubs are both databases that comes with
SQL Server, but they are very different. pubs is a regular user database,
and is there for demonstration and training purposes. master on the
other hand, is, as the name, indicates the master database. In this
database, SQL Server stores all server-wide information, for instance
which databases there are.
So the permission error applies to the master database, not to pubs.
I can't tell why you get this error, because I don't know what you
are doing (and you refuse to tell me). But since pubs already exist,
you cannot attach it anyway.
Anyway, what I tried to tell you last time, is that the web server
needs to connect to SQL Server with sysadmin privileges to create
databases, and to do that it must either log in as "sa" using SQL
Server authentication, or log using Windows authentication with an
account that has Administrator rights in Windows, or which have been
added to the sysadmin role in SQL Server.
So the rights you should are those that the IIS account has.
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||Erland,
The web form is using a listbox to list items from SQL.
Here is my code:
Dim drStores As SqlClient.SqlDataReader
If Not IsPostBack Then
conPubs.Open()
drStores = cmdStores.ExecuteReader()
ddlStores.DataSource = drStores
ddlStores.DataTextField = "stor_name"
ddlStores.DataBind()
drStores.Close()
conPubs.Close()
End If
I didn't close my conPubs()-->MyConnection. That's one reason why I was
receiving the error before. But now my problem is that the ListBox is not
populating. The form just has a box that is empty. Seems simple for an
experienced programmer but I'm not at the level, yet.
In the Properties for MyConnection I have the following as my Connection
String:
workstation id=MyMachineName;packet size=4096;integrated security=SSPI;data
source="MyMachineName\vsdotnet";attachdbfilename="D:\Program Files\Microsoft
SQL Server\MSSQL$NETSDK\Data\pubs.mdf";persist security info=False;initial
catalog=pubs
In the Properties for MyCommand I have the following as my Connection
String:
workstation id=MyMachineName;packet size=4096;integrated security=SSPI;data
source="MyMachineName\vsdotnet";attachdbfilename="D:\Program Files\Microsoft
SQL Server\MSSQL$NETSDK\Data\pubs.mdf";persist security info=False;initial
catalog=pubs
I'm trying to grasp the concept but it's frustrating.
So, now you should know all about my web form.
Any ideas on how to fix my problem?
I will pay a million dollars for the answer to this problem. :-)
Thanks,
T.
End Sub
"Erland Sommarskog" <sommar@.algonet.se> wrote in message
news:Xns948CEBA55DYazorman@.127.0.0.1...
> Taishi (taishi_bak@.hotmail.com) writes:
> > Do you know how to use Enterprise Manager?
> Barely. :-) I prefer to carry most of my task by submitting T-SQL
> commands from Enterprise Manager.
> > I was able to find a trial version of the Enterprise Manager.
> > After reading my error today, I can see there is a problem with 2 dbases
> > 'PUBS' and 'Master'
> > CREATE DATABASE permission denied in database 'master'. Could not attach
> > database 'pubs' to file 'D:\Program Files\Microsoft SQL
> > Server\MSSQL$NETSDK\Data\pubs.mdf'.
> But you still have not told us what that web form is doing! Sorry, I
> cannot give much precise help if you don't explain what you are trying
> to do.
> But for the record, master and pubs are both databases that comes with
> SQL Server, but they are very different. pubs is a regular user database,
> and is there for demonstration and training purposes. master on the
> other hand, is, as the name, indicates the master database. In this
> database, SQL Server stores all server-wide information, for instance
> which databases there are.
> So the permission error applies to the master database, not to pubs.
> I can't tell why you get this error, because I don't know what you
> are doing (and you refuse to tell me). But since pubs already exist,
> you cannot attach it anyway.
> Anyway, what I tried to tell you last time, is that the web server
> needs to connect to SQL Server with sysadmin privileges to create
> databases, and to do that it must either log in as "sa" using SQL
> Server authentication, or log using Windows authentication with an
> account that has Administrator rights in Windows, or which have been
> added to the sysadmin role in SQL Server.
> So the rights you should are those that the IIS account has.
> --
> Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techin.../2000/books.asp|||Taishi (taishi_bak@.hotmail.com) writes:
> I didn't close my conPubs()-->MyConnection. That's one reason why I was
> receiving the error before. But now my problem is that the ListBox is not
> populating. The form just has a box that is empty. Seems simple for an
> experienced programmer but I'm not at the level, yet.
> In the Properties for MyConnection I have the following as my Connection
> String:
> workstation id=MyMachineName;packet size=4096;integrated
> security=SSPI;data
> source="MyMachineName\vsdotnet";attachdbfilename="D:\Program
> Files\Microsoft SQL Server\MSSQL$NETSDK\Data\pubs.mdf";persist security
> info=False;initial catalog=pubs
> In the Properties for MyCommand I have the following as my Connection
> String:
> workstation id=MyMachineName;packet size=4096;integrated
> security=SSPI;data
> source="MyMachineName\vsdotnet";attachdbfilename="D:\Program
> Files\Microsoft SQL Server\MSSQL$NETSDK\Data\pubs.mdf";persist security
> info=False;initial catalog=pubs
Ah, we're on to something here. Take out that "attachdbfilename" from
your Connection string. I see in MSDN Library, that this property is
actually supported for SqlClient, although I cannot understand the point
with it. Anyway, since pubs is already attached, you have no reason
to meddle with it.
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp