Sunday, March 25, 2012
Database for internet applications
have a fairly low number of web requests and have this site capture data in
a database. His heart is set upon Access as the back-end database.
Now, I'm happy to accept that Access is a great product, but I know very
little about it - I've always used SQL Server. My gut reaction is to
suggest that he uses SQL Server Express in preference to Access, but
unfortunately I don't know enough about Access to argue why it shouldn't be
used as a database behind a web application. I don't even know much about
the licensing model.
Could someone provide the details here (or persuade me otherwise)?
Thanks everyoneGriff
SQL Server 2005 Express Edition is free but limited to 4GB db size.If I
remeber well Access is limited to 2GB db size.
"Griff" <griffithsj_520@.hotmail.com> wrote in message
news:uqkH79VEIHA.4748@.TK2MSFTNGP06.phx.gbl...
>I have a colleague who wants to build a web application that is expected to
>have a fairly low number of web requests and have this site capture data in
>a database. His heart is set upon Access as the back-end database.
> Now, I'm happy to accept that Access is a great product, but I know very
> little about it - I've always used SQL Server. My gut reaction is to
> suggest that he uses SQL Server Express in preference to Access, but
> unfortunately I don't know enough about Access to argue why it shouldn't
> be used as a database behind a web application. I don't even know much
> about the licensing model.
> Could someone provide the details here (or persuade me otherwise)?
> Thanks everyone
>|||On Oct 18, 6:18 pm, "Griff" <griffithsj_...@.hotmail.com> wrote:
> I have a colleague who wants to build a web application that is expected to
> have a fairly low number of web requests and have this site capture data in
> a database. His heart is set upon Access as the back-end database.
> Now, I'm happy to accept that Access is a great product, but I know very
> little about it - I've always used SQL Server. My gut reaction is to
> suggest that he uses SQL Server Express in preference to Access, but
> unfortunately I don't know enough about Access to argue why it shouldn't be
> used as a database behind a web application. I don't even know much about
> the licensing model.
Some notes here:
http://members.optushome.com.au/anandasim/asp.htm
You don't have to worry about licensing. Because when you use
Access .mdb as a back end database, you are not using an Access
license - you are using IIS + ADO/ADO.NET + mdb - Access does not even
need to be installed on the webserver.
One concern is .mdb is not 24x7 - you need to take it offline from
time to time to pack the database and back it up - on the other hand,
if you get the time slot and scheduled batch jobs running, you can
just grab the .mdb and put it in your pocket.
One thing to consider is if you are using a development IDE against
the Access .mdb will there be design time issues with controls and
connections working properly - I used to have those years ago. And Jet
is single threaded - when I had SQL that was half baked during
development, the whole web server would be unresponsive.
HTH
Ananda|||The salomic decission
Use SQL server as the datastore & msAccess as a FrontEnd for maintenance,
reports etc
For the solution you describe the only drawbacks of using Access as a
Back-end is that it has no built in maintenance plan,
must be "offline" for backup, can get corrupted.
Pieter
"Griff" <griffithsj_520@.hotmail.com> wrote in message
news:uqkH79VEIHA.4748@.TK2MSFTNGP06.phx.gbl...
>I have a colleague who wants to build a web application that is expected to
>have a fairly low number of web requests and have this site capture data in
>a database. His heart is set upon Access as the back-end database.
> Now, I'm happy to accept that Access is a great product, but I know very
> little about it - I've always used SQL Server. My gut reaction is to
> suggest that he uses SQL Server Express in preference to Access, but
> unfortunately I don't know enough about Access to argue why it shouldn't
> be used as a database behind a web application. I don't even know much
> about the licensing model.
> Could someone provide the details here (or persuade me otherwise)?
> Thanks everyone
>|||There are no licensing issues with supplying data from an Access database
file to a web page.
There is some advantage in using an Access file to store the data, if you
need to enter, query, and report on the data from within Access.
It is not difficult for someone with experience in something like ASP or PHP
to design a web page where data is read from and/or written to an Access
database.
Access data is not really secure, so you need to ensure you handle the
security at another level. For example, last year I was able to download the
entire MDB from a computer hardware vendor because the database went
corrupt, and the error message showed the name and location of the file. In
this case, the db contained only information that was on the web (i.e. parts
and prices, not customers and orders) so no harm was done (though I did
notify them.)
If you just need to export the data from an Access table to a web page (e.g.
a product listing that needs to be re-exported whenever products or prices
change), you can also do that easily. Here's an example:
http://allenbrowne.com/AppOutputHtml.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Griff" <griffithsj_520@.hotmail.com> wrote in message
news:uqkH79VEIHA.4748@.TK2MSFTNGP06.phx.gbl...
>I have a colleague who wants to build a web application that is expected to
>have a fairly low number of web requests and have this site capture data in
>a database. His heart is set upon Access as the back-end database.
> Now, I'm happy to accept that Access is a great product, but I know very
> little about it - I've always used SQL Server. My gut reaction is to
> suggest that he uses SQL Server Express in preference to Access, but
> unfortunately I don't know enough about Access to argue why it shouldn't
> be used as a database behind a web application. I don't even know much
> about the licensing model.
> Could someone provide the details here (or persuade me otherwise)?
> Thanks everyone|||One thing about Access as far as web applications are concerned is that it
is still a file. If I happen to know the physical path where the Access
database file is stored (a vulnerability exposed can do this), I can
download the database file from the site ;-)
"Griff" <griffithsj_520@.hotmail.com> wrote in message
news:uqkH79VEIHA.4748@.TK2MSFTNGP06.phx.gbl...
>I have a colleague who wants to build a web application that is expected to
>have a fairly low number of web requests and have this site capture data in
>a database. His heart is set upon Access as the back-end database.
> Now, I'm happy to accept that Access is a great product, but I know very
> little about it - I've always used SQL Server. My gut reaction is to
> suggest that he uses SQL Server Express in preference to Access, but
> unfortunately I don't know enough about Access to argue why it shouldn't
> be used as a database behind a web application. I don't even know much
> about the licensing model.
> Could someone provide the details here (or persuade me otherwise)?
> Thanks everyone
>|||Wow - thanks for all the feed-back everyone.
Another thing I've just thought of... Access didn't have the concept of
stored procedures - I don't know if the latest version now does. If not,
then it's of course more vulnerable to SQL Injection attacks.|||You can emulate stored procedures in Access but only in version 2002 and
higher altough a few claim that Access 2000 can do it too. There are some
limitations though such as no temp tables, output parameters cannot be used,
does not use the @. character
"Griff" <griffithsj_520@.hotmail.com> wrote in message
news:e%231tviXEIHA.1208@.TK2MSFTNGP03.phx.gbl...
> Wow - thanks for all the feed-back everyone.
> Another thing I've just thought of... Access didn't have the concept of
> stored procedures - I don't know if the latest version now does. If not,
> then it's of course more vulnerable to SQL Injection attacks.
>|||In article <uqkH79VEIHA.4748@.TK2MSFTNGP06.phx.gbl>, griffithsj_520
@.hotmail.com says...
> I'm happy to accept that Access is a great product
Access is only good for single user database tasks, it's always been
unstable for more than one user at at time.
Use one of the MSDE SQL versions or other versions for your solution and
you'll be a lot happier than using Access.
If you need reports you can use MS Access to pull them, but don't use
Access for a database.
--
Leythos
- Igitur qui desiderat pacem, praeparet bellum.
- Calling an illegal alien an "undocumented worker" is like calling a
drug dealer an "unlicensed pharmacist"
spam999free@.rrohio.com (remove 999 for proper email address)|||Leythos wrote:
> In article <uqkH79VEIHA.4748@.TK2MSFTNGP06.phx.gbl>, griffithsj_520
> @.hotmail.com says...
>> I'm happy to accept that Access is a great product
> Access is only good for single user database tasks, it's always been
> unstable for more than one user at at time.
> Use one of the MSDE SQL versions or other versions for your solution and
> you'll be a lot happier than using Access.
> If you need reports you can use MS Access to pull them, but don't use
> Access for a database.
You probably missed the fact that this thread is crossposted to an
Access NG, or do you really believe what you wrote about Access?
--
Roy-Vidar|||Allen,
I took a look at your link with some interest, do you know how I can go
about doing the reverse; importing data Into Access 2007 from a webpage;
specifically Googlemaps. Here's what I want to do:
I want to click on an address filed in my Access form and take that address
to googlemaps and have it return a Latitude, longtitude. Before I continue,
let me explain that I already have a fully functioning database with a form
that does the first part succesffuly, namely sending the address (in the
correct google friendly format) to googlemaps, and the browser succesfully
finds the address, and using a combination of a single line Javascript (not
authored by me, I don't understand Java) and some cumbersome Access Sendkeys
I am able to get the Lat/Long and pasted it back into the field. This
approach has it's drawbacks, it involves Alt-tabbing two application windows
and when the net connection is busy, then the timing of the Senkeys gets out
of sequence and the whole process fails, If I increase the timings, then the
process becomes to slow. In summary, it is a bit of a Heath-Robinson setup.
So I was wondering if you could give me some pointers and an understanding
on how to go about automating the process properly. I can understand VBA to a
certain extent, but really don't know where to start. What do you think, can
it be done?
"Allen Browne" wrote:
> There are no licensing issues with supplying data from an Access database
> file to a web page.
> There is some advantage in using an Access file to store the data, if you
> need to enter, query, and report on the data from within Access.
> It is not difficult for someone with experience in something like ASP or PHP
> to design a web page where data is read from and/or written to an Access
> database.
> Access data is not really secure, so you need to ensure you handle the
> security at another level. For example, last year I was able to download the
> entire MDB from a computer hardware vendor because the database went
> corrupt, and the error message showed the name and location of the file. In
> this case, the db contained only information that was on the web (i.e. parts
> and prices, not customers and orders) so no harm was done (though I did
> notify them.)
> If you just need to export the data from an Access table to a web page (e.g.
> a product listing that needs to be re-exported whenever products or prices
> change), you can also do that easily. Here's an example:
> http://allenbrowne.com/AppOutputHtml.html
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
> "Griff" <griffithsj_520@.hotmail.com> wrote in message
> news:uqkH79VEIHA.4748@.TK2MSFTNGP06.phx.gbl...
> >I have a colleague who wants to build a web application that is expected to
> >have a fairly low number of web requests and have this site capture data in
> >a database. His heart is set upon Access as the back-end database.
> >
> > Now, I'm happy to accept that Access is a great product, but I know very
> > little about it - I've always used SQL Server. My gut reaction is to
> > suggest that he uses SQL Server Express in preference to Access, but
> > unfortunately I don't know enough about Access to argue why it shouldn't
> > be used as a database behind a web application. I don't even know much
> > about the licensing model.
> >
> > Could someone provide the details here (or persuade me otherwise)?
> >
> > Thanks everyone
>
Sunday, March 11, 2012
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy
|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy
|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy
|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy
|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Database Diagrams - SQL Server 2005 Express
I have installed Visual Basic 2005 Express and SQL server 2005 Express.
I am reading the ebook: "Microsoft Visual Basic 2005 Express Edition - Build a Program Now" that you download when you register the products (it is a PDF file named 6-2213-2.pdf)
Page 139 of the book (or 151 in the file) is about "To Create Relationships between Tables". So I follow the instruction and get stuck on Step 1. When I right click on the Database Diagrams folder under CarTracker.mdf database and choose Add New Diagram I get the following message:
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming?
Yes No Help
So I click Yes and get the following error
Microsoft Visual Basic 2005 Express Edition
This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account.
OK Help
I am logged in with an account that is a Domain Admin whilst the laptop is not connected to the network. However, I believe this account is like a Local Administraor (from my NT4 days). In other words, I believe it has all the permissions etc. - I don't know what dbo is. I assume it is Database Owner and if it is, well I created the database.
Any guidance would be greatly appreciated ...
Having the same problem here (WXP SP2, Visual SQL Server Express and Visual C# Express). Anyone care to help us out?
Kind regards,
Maurits
Edited to add:
I too am working on a laptop. I'm at home, so I'm not connected to the university network domain but the user account I'm logged in with is indeed an administrator
|||Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop. Trying to do exercise on page 139 in the "Build a Program Now" book, about creating relationsship between tables.
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Do you want to make yourself the dbo of this database in order to use database diagraming?"
I then hit the <Yes> button
"This database does not have a valid dbo user or you do not have permissions to impersonate the dbo user, so database diagramming is not avaliable. Ensure the dbo account is valid and ensure you have impersonate permission on the dbo account."
<OK>
I'm now back to the start again. Shall I create a dbo user account or what?
|||
Here is one more. Just installed Visual Basic 2005 Express Edition on a XP SP2 laptop.
I have the same problem
BR
Alan
|||I had the same problem. My laptop is joined to a domain, and I was working offline. As soon as I connected back to my domain with VPN it starter working again.|||Brian
Well done. I checked it now that I'm connected to a network domain and I no longer get the error. The diagrams seem to work fine.
Thank you
John
|||I am also in a domain, but I am connected and still have the problem.
Does this have anything to do with the service account being used? Where can I change the dbo account with SQLExpress?
|||Regarding service accounts, looking at the service SQL Server (SQLEXPRESS), the Log On tab has:
This account: NT AUTHORITY\NetworkService
[which I never setup or assigned passwords to.]
And looking at the service SQL Server VSS Writer, the Log On tab has:
Local System Account
Please check you have the same settings.
Sorry, I'm not sure if or where you can change dbo account for SQL Express.
|||I have those same accounts.
I guess the bottom line is...How can I get my account to have impersonate permissions on the dbo account?
Tony Ansley
|||I recently experienced this same problem with the database not having a valid dbo user and being unable to add Database diagrams.I came to this thread via google and found it to be actually little help since my computer is a stand-alone computer not even connected to the Internet. I am using it for developing the next 'killer app' :)
Anyway - A database connection worked for a while, then it stopped working.
After much fiddling and attempting to recall what I might have broken in the mean time, I realized that between the time that I installed SQL Server Express 2005 and now, I had changed the name of the computer!
I attempted to go into the SQL Server Configuration Tool but couldn't access the server name. Anyway - when I changed the computer name back to the name it had when I did the installation, Everything worked as before - I was able to connect to the databases, create diagrams, and everything!
I hope this helps some of the others of you that are experiencing difficulties.
JosBoy|||
Hi,
I want to give you a little point, to help.
If you create a new Database.mdf you see in the properties one point called "owner". In my case the "owner" was "SHAKIRA\Administrator".
My Computername was HNPC1 and I was logged in (Windows, If you boot your Computer) with this name ("HNPC1\Administrator").
I changed the Computername to SHAKIRA and logged in with this (SHAKIRA\Administrator), and now it was possible to create Diagramms.
God luck
|||I am having the same problem but the solutions posted don't seem to help. Are there step-by-step instructions available|||The problem is to set up the proper database owner. You should:
-download the free tool from Microsoft site: SQL Server Management Studio Express CTP and install it.
-close the connection to the database (I`m using C# Express Edition, using VB.Net is probably quite the same doing that)
-open the new installed SQL tool
-under "Object Explorer" right click on Databases-"attach"
-find the *.mdf-file and add it
-right click on the new attached database, Properties, "Files", be sure to chose your account as the database owner
-connect to the database using C# Express or what ever
-chose the windows security
that is it.
|||Thanx AndyWawa,
It pays to go read all the thread before attempting to fix a pro. Your solution was the only one that worked for me
|||OK, I did that, no change, now what?
My path to this problem was through learning asp.net using the Sussman-Homer book from Wrox. I followed the book through building the db and adding database diagrams and everything worked just fine. Now, trying to teach a little asp in an advanced VB class, it fails (most embarassing for a teacher). The only difference between then and now is adding AJAX. My students (no AJAX) can add database diagrams to their copies.
I downloaded sql server management, installed it, and ran it on my laptop iaw the instructions above only to have the "You do not have permission to impersonate..." messagebox show up as has become maddeningly usual.
Next?
Wednesday, March 7, 2012
database design:dnamically build where clause
I am creating a table to store metadata information for certain technical
parameters which are stored in various tables.
These parameters have various criteria to determine if they are compliant to
certain predefined conditions or not.I will explain with an example:
For ex,
paramA is compliant if its value is 50
paramB is compliant if its value is between 0 and 2
paramC is compliant if its value is 35% of another column
paramD is complaint depending on colA,ColB,ColC
If colA = 5 then paramD is compliant if paramD=2.
If colB = 10 then paramD is compliant if paramD=3
If colC =50 then paramD is complaint if paramD=70
paramE is compliant if is 1 or 0
So my table has fields such as
DDId,
ParamName
ParamDBname
ParamTableName
Compliancecondition(varchar 200)
etc.
I need to store the information regarding these compliant conditions so that
I can build my queries like
select <paramName>,case when<compliance condition is true> then 1 else 0,
from <paramDB>.<paramTable>
where<compliancecondition>
but this will result in dynamic SQL.is there a better way to store the
information for these varying compliance conditions?
thanks for your help.
etcLooks like you need something like a rules engine to satisfy your dynamic
needs. Check this nice article on this subject to see if its useful for your
scenario:
http://msdn.microsoft.com/sql/defau.../>
eengine.asp
--
HTH,
SriSamp
Email: srisamp@.gmail.com
Blog: http://blogs.sqlxml.org/srinivassampath
URL: http://www32.brinkster.com/srisamp
"
news:7E249C36-147E-4A0A-9B77-42F9F4CA6E6E@.microsoft.com...
> Hi
> I am creating a table to store metadata information for certain technical
> parameters which are stored in various tables.
> These parameters have various criteria to determine if they are compliant
> to
> certain predefined conditions or not.I will explain with an example:
> For ex,
> paramA is compliant if its value is 50
> paramB is compliant if its value is between 0 and 2
> paramC is compliant if its value is 35% of another column
> paramD is complaint depending on colA,ColB,ColC
> If colA = 5 then paramD is compliant if
> paramD=2.
> If colB = 10 then paramD is compliant if
> paramD=3
> If colC =50 then paramD is complaint if
> paramD=70
> paramE is compliant if is 1 or 0
> So my table has fields such as
> DDId,
> ParamName
> ParamDBname
> ParamTableName
> Compliancecondition(varchar 200)
> etc.
> I need to store the information regarding these compliant conditions so
> that
> I can build my queries like
> select <paramName>,case when<compliance condition is true> then 1 else 0,
> from <paramDB>.<paramTable>
> where<compliancecondition>
> but this will result in dynamic SQL.is there a better way to store the
> information for these varying compliance conditions?
> thanks for your help.
>
>
>
> etc
Database Design Questions
I have put the Company Name and Position (title) in the address table so that when doing a mailing the company name and title are associated with the company address being mailed too. But again, I'm not sure how they would choose a salutation if they have many choices.
Looking for any of your thoughts or suggestions.
Thank you,I'm not following you 100%, but I'll take a stab at something that might accomodate your needs:
COMPANY
id_company
company_name
COMPANY_ADDRESS
id_company_address
id_company
address_company_name
address1
address2
city
state
zip
COMPANY_SALUTATION
id_company_salutation
id_company
salutation
COMPANY_MAILING
id_company_mailing
id_company
id_company_address
id_company_salutation
When they are about to do a mailing, the COMPANY_MAILING table should be populated as desired for each company involved in the mailing.
Terri
Database design question....
In part of the db I have a table for companies, categories and subcategories. The problem is that some of the companies fall into more than 1 category and I am not sure how to effeciently design this.
Can anyone share some thoughts or suggestions?::The problem is that some of the companies fall into more than 1 category and I am not
::sure how to effeciently design this.
What you need to make is a m:n relation and is a standard pattern for handling this standard problem in db design.
First, you should have three tables, but NOT two for category and subcategory.
You should have one table for Category (and a subcategory IS a category, build a tree using a relation pointing back to the table), one for the entires (companies), one for coupling one entry with one caategory - a mid table that allows you to assign an entry to x categories.
This table would basically contain one field (fk-relation) to the category, one to the entry.
Get a beginner book for SQL and relational databases that explains M:N relations in depth.|||doesn't look that hard, basic relational db design:
Category
* CatID (PK)
* CatName
* ...
Company
* CompID (PK)
* CompName
* ...
Company_Category
* CompID (PK ; FK to Company.CompID)
* CatID (PK ; FK Category.CatID)
By the way, implement subcategories as a category with a parent. Category table becomes:
Category
* CatID
* CatName
* CatParentCatID (maybe NULL for top level category)|||look up tables. Just store the primary keys in the look up tables.
Saturday, February 25, 2012
Database design question
I am working on a Budgeting web based application using ASP.NET 2 and SQL
Server 2000. The budgeting data will build up over a course of period and
these historical data will be used for decision making in future budget.
My questions:
1. what design approach should I use to store the historical data? Data
Mining or Datawarehouse? or other options?
2. Is there any built in tool in sql 2000 to keep track of the audit trail?
If yes, where they are saved?
Thanks for you help!
Hi
The choice of datawarehouse or datamining really need deciding by analysing
and producing the requirements for the future needs so can't really be
answered with the level of information you have given.
Although SQL Server 2000 has no automatic method of auditing, it is possible
to implement something using triggers and there is a simple example in the
CREATE TRIGGER topic in Books Online. I would recommend that you do the
mimimum amount of work require in the trigger and do any
aggregation/formatting... as a ofline process. This will reduce the impact of
the trigger on any oltp activity. You can also get third party applications
that implement auditing for you such as Lumigent's auditdb
http://www.lumigent.com/products/auditdb.html
HTH
John
"Mindy" wrote:
> Hi,
> I am working on a Budgeting web based application using ASP.NET 2 and SQL
> Server 2000. The budgeting data will build up over a course of period and
> these historical data will be used for decision making in future budget.
> My questions:
> 1. what design approach should I use to store the historical data? Data
> Mining or Datawarehouse? or other options?
> 2. Is there any built in tool in sql 2000 to keep track of the audit trail?
> If yes, where they are saved?
> Thanks for you help!
>
|||Thanks for the quick response. Can you send me the link to the online book on
Create Triggers topic?
"John Bell" wrote:
[vbcol=seagreen]
> Hi
> The choice of datawarehouse or datamining really need deciding by analysing
> and producing the requirements for the future needs so can't really be
> answered with the level of information you have given.
> Although SQL Server 2000 has no automatic method of auditing, it is possible
> to implement something using triggers and there is a simple example in the
> CREATE TRIGGER topic in Books Online. I would recommend that you do the
> mimimum amount of work require in the trigger and do any
> aggregation/formatting... as a ofline process. This will reduce the impact of
> the trigger on any oltp activity. You can also get third party applications
> that implement auditing for you such as Lumigent's auditdb
> http://www.lumigent.com/products/auditdb.html
> HTH
> John
>
> "Mindy" wrote:
|||You can download Books Online from here:
SQL Server Books Online
2005 -
http://www.microsoft.com/technet/pro...ads/books.mspx
2000 -
http://www.microsoft.com/downloads/d...displaylang=en
Then search for CREATE TRIGGER...
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"Mindy" <Mindy@.discussions.microsoft.com> wrote in message
news:49F456EE-FBC0-46AD-8257-089E6887AAFD@.microsoft.com...[vbcol=seagreen]
> Thanks for the quick response. Can you send me the link to the online book
> on
> Create Triggers topic?
>
> "John Bell" wrote:
|||Hi
If you don't want to download books online check out
http://msdn.microsoft.com/library/de...asp?frame=true
John
"Mindy" wrote:
[vbcol=seagreen]
> Thanks for the quick response. Can you send me the link to the online book on
> Create Triggers topic?
>
> "John Bell" wrote:
Database design question
I am working on a Budgeting web based application using ASP.NET 2 and SQL
Server 2000. The budgeting data will build up over a course of period and
these historical data will be used for decision making in future budget.
My questions:
1. what design approach should I use to store the historical data? Data
Mining or Datawarehouse? or other options?
2. Is there any built in tool in sql 2000 to keep track of the audit trail?
If yes, where they are saved?
Thanks for you help!Hi
The choice of datawarehouse or datamining really need deciding by analysing
and producing the requirements for the future needs so can't really be
answered with the level of information you have given.
Although SQL Server 2000 has no automatic method of auditing, it is possible
to implement something using triggers and there is a simple example in the
CREATE TRIGGER topic in Books Online. I would recommend that you do the
mimimum amount of work require in the trigger and do any
aggregation/formatting... as a ofline process. This will reduce the impact o
f
the trigger on any oltp activity. You can also get third party applications
that implement auditing for you such as Lumigent's auditdb
http://www.lumigent.com/products/auditdb.html
HTH
John
"Mindy" wrote:
> Hi,
> I am working on a Budgeting web based application using ASP.NET 2 and SQL
> Server 2000. The budgeting data will build up over a course of period and
> these historical data will be used for decision making in future budget.
> My questions:
> 1. what design approach should I use to store the historical data? Data
> Mining or Datawarehouse? or other options?
> 2. Is there any built in tool in sql 2000 to keep track of the audit trail
?
> If yes, where they are saved?
> Thanks for you help!
>|||Thanks for the quick response. Can you send me the link to the online book o
n
Create Triggers topic?
"John Bell" wrote:
[vbcol=seagreen]
> Hi
> The choice of datawarehouse or datamining really need deciding by analysin
g
> and producing the requirements for the future needs so can't really be
> answered with the level of information you have given.
> Although SQL Server 2000 has no automatic method of auditing, it is possib
le
> to implement something using triggers and there is a simple example in the
> CREATE TRIGGER topic in Books Online. I would recommend that you do the
> mimimum amount of work require in the trigger and do any
> aggregation/formatting... as a ofline process. This will reduce the impact
of
> the trigger on any oltp activity. You can also get third party application
s
> that implement auditing for you such as Lumigent's auditdb
> http://www.lumigent.com/products/auditdb.html
> HTH
> John
>
> "Mindy" wrote:
>|||You can download Books Online from here:
SQL Server Books Online
2005 -
http://www.microsoft.com/technet/pr...oads/books.mspx
2000 -
http://www.microsoft.com/downloads/...&displaylang=en
Then search for CREATE TRIGGER...
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"Mindy" <Mindy@.discussions.microsoft.com> wrote in message
news:49F456EE-FBC0-46AD-8257-089E6887AAFD@.microsoft.com...[vbcol=seagreen]
> Thanks for the quick response. Can you send me the link to the online book
> on
> Create Triggers topic?
>
> "John Bell" wrote:
>|||Hi
If you don't want to download books online check out
http://msdn.microsoft.com/library/d...asp?frame=true
John
"Mindy" wrote:
[vbcol=seagreen]
> Thanks for the quick response. Can you send me the link to the online book
on
> Create Triggers topic?
>
> "John Bell" wrote:
>