473,385 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ado and xml?

js
Hi, I have some questions about replace with mdb file with xml file:
Can I use ado and xml to store info instead of Ms access database, what
will be the diff?
can ado and xml support mult-user
Concurrent access? Thansk...
Jul 22 '05 #1
30 1812
js wrote:
Hi, I have some questions about replace with mdb file with xml file:
Don't
Can I use ado
ado is not needed to use xml
and xml to store info instead of Ms access database,
Yes, but ....
what will be the diff?
No referential integrity. No SQL language. No data constraints. xml is
simply a text file.
can ado and xml support mult-user
Concurrent access? Thansk...


No. You will wind up having to reinvent the wheel with your own code. it's
not worth it.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #2
js
Thanks Bob,
"Bob Barrows [MVP]" wrote in message
can ado and xml support mult-user
Concurrent access? Thansk...


No. You will wind up having to reinvent the wheel with your own code. it's
not worth it.

I only have three fields(Email, Password, IP), I think it will simply to use
text file instead of a database. ado can use discount recordset to bind to a
extenal file, but I'm worry about the concurrent access problem? what happen
when more than 10 user access at the same time? Please help...
Jul 22 '05 #3
If you are going to have 10+ users accessing this at the same exact moment
you will not wany ANY file based storage, this includes MDB. You are going
to have to look at an SQL type option.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"js" <js@so*****@hotmail.com> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
Thanks Bob,
"Bob Barrows [MVP]" wrote in message
can ado and xml support mult-user
Concurrent access? Thansk...


No. You will wind up having to reinvent the wheel with your own code.
it's not worth it.

I only have three fields(Email, Password, IP), I think it will simply to
use text file instead of a database. ado can use discount recordset to
bind to a extenal file, but I'm worry about the concurrent access problem?
what happen when more than 10 user access at the same time? Please help...

Jul 22 '05 #4
js
Thanks for the help,
Is it a sample teach how to save info to a file use ado?

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eY**************@TK2MSFTNGP10.phx.gbl...
If you are going to have 10+ users accessing this at the same exact moment
you will not wany ANY file based storage, this includes MDB. You are going
to have to look at an SQL type option.

Jul 22 '05 #5
js
Cool...

"dlbjr" <dl***@donotknow.com> wrote in message
news:uw*************@tk2msftngp13.phx.gbl...
Use the attached XML file and the following code.
Do what ever you want with it.

Set rs = CreateObject("ADODB.Recordset")
rs.Open "data.xml"

'Do What Ever

rs.Save "data.xml",1
Set rs = Nothing

--
dlbjr
Pleading sagacious indoctrination!

Jul 22 '05 #6
js
is it this method only limit to 10+ users accessing this at the same exact
time? or not limit?
"dlbjr" <dl***@donotknow.com> wrote in message
news:uw*************@tk2msftngp13.phx.gbl...
Use the attached XML file and the following code.
Do what ever you want with it.

Set rs = CreateObject("ADODB.Recordset")
rs.Open "data.xml"

'Do What Ever

rs.Save "data.xml",1
Set rs = Nothing

--
dlbjr
Pleading sagacious indoctrination!

Jul 22 '05 #7
Limit is not a problem.

For safety reasons just wrap any code reading, writing the data in
Application.Lock and Application.Unlock This will guarantee one operation at
a time.

--
dlbjr
Pleading sagacious indoctrination!
Jul 22 '05 #8
dlbjr wrote:
Limit is not a problem.

For safety reasons just wrap any code reading, writing the data in
Application.Lock and Application.Unlock This will guarantee one
operation at a time.


You forgot that he had to spcify keeping the xml file in Application,
something that is not recommended for ado objects ....

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #9
js

"Bob Barrows [MVP]" wrote in message news:u8f%
Limit is not a problem.

For safety reasons just wrap any code reading, writing the data in
Application.Lock and Application.Unlock This will guarantee one
operation at a time.


You forgot that he had to spcify keeping the xml file in Application,
something that is not recommended for ado objects ....

Can you explain why the xml file is not recommended for ado objects? Thanks.
Jul 22 '05 #10
js

"dlbjr" wrote in message
Limit is not a problem.

For safety reasons just wrap any code reading, writing the data in
Application.Lock and Application.Unlock This will guarantee one operation
at a time.

What happen when someone is access the file and lock, and another is trying
to access it? Will line up? Thanks for the help...
Jul 22 '05 #11
js wrote:
"Bob Barrows [MVP]" wrote in message news:u8f%
Limit is not a problem.

For safety reasons just wrap any code reading, writing the data in
Application.Lock and Application.Unlock This will guarantee one
operation at a time.


You forgot that he had to spcify keeping the xml file in Application,
something that is not recommended for ado objects ....

Can you explain why the xml file is not recommended for ado objects?
Thanks.


Not the xml object. As long as you use the slow free-threaded version of the
xml document, you'll be all right. it';s the ADO object I'm talking about.
ADO by default is not free-threaded, and therefore should not be kept int
session or application.

http://www.aspfaq.com/show.asp?id=2053

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #12
js wrote:
"dlbjr" wrote in message
Limit is not a problem.

For safety reasons just wrap any code reading, writing the data in
Application.Lock and Application.Unlock This will guarantee one
operation at a time.

What happen when someone is access the file and lock, and another is
trying to access it? Will line up? Thanks for the help...


You will force all accesses of the object to be serialized, which will limit
scalability, You really should forget this idea, especially if your data is
related to other data. A database is designed for this.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #13
js
Thanks Bob.
Jul 22 '05 #14
The solution will work for your need.
For the picky ones, you could use a true dataset offered in asp.net.
Make calls to an aspx file to add,edit or delete data then serialize the dataset.
Everything else stays asp.

'dlbjr
'Pleading sagacious indoctrination!
Jul 22 '05 #15
"Bob Barrows [MVP]" wrote in message
news:OF*************@TK2MSFTNGP15.phx.gbl...
: js wrote:
: > Hi, I have some questions about replace with mdb file with xml file:
:
: Don't
:
: > Can I use ado
:
: ado is not needed to use xml
:
: > and xml to store info instead of Ms access database,
:
: Yes, but ....
:
: > what will be the diff?
:
: No referential integrity. No SQL language. No data constraints. xml is
: simply a text file.
:
: > can ado and xml support mult-user
: > Concurrent access? Thansk...
:
: No. You will wind up having to reinvent the wheel with your own code. it's
: not worth it.

Not sure what you're saying here Bob. Are you saying using an XML file on
the net with multiple users is a bad idea?

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #16
Roland Hall wrote:
"Bob Barrows [MVP]" wrote in message
news:OF*************@TK2MSFTNGP15.phx.gbl...
js wrote:
Hi, I have some questions about replace with mdb file with xml file:


Don't
Can I use ado


ado is not needed to use xml
and xml to store info instead of Ms access database,


Yes, but ....
what will be the diff?


No referential integrity. No SQL language. No data constraints. xml
is simply a text file.
can ado and xml support mult-user
Concurrent access? Thansk...


No. You will wind up having to reinvent the wheel with your own
code. it's not worth it.


Not sure what you're saying here Bob. Are you saying using an XML
file on the net with multiple users is a bad idea?


I'm not sure if this is a facetious question or not, but I'll answer it as
if it is a straight question, given that I may have over-made my point. :-)

So, "Are you saying using an XML file on the net with multiple users is a
bad idea?"

A. Not necessarily.

I'm saying that replacing a database, which provides the builtin
functionality to support multiple users and protect the integrity of the
data it contains, with a text file, xml or csv, may not be a good idea. It
forces the developer to reinvent the wheel, writing all the code to provide
the same functionality that was provided by the database. Consider the years
it has taken the developers of Jet to get to the point they are at now, as
well as all the mistakes that were made and corrected along the way.
Providing that functionality is not an easy task. Not impossible, but
definitely daunting.

However:
Using a read-only (or update-rarely) text file (or xml document stored in
application or session) to cache frequently used, relatively static data is
a very good idea. In a perfect world, the data would still come from a
database, but with truly static data, that is not necessary.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #17
js
Hello, can I use csv file instead of data.xml file?

"dlbjr" <dl***@donotknow.com> wrote in message
news:uw*************@tk2msftngp13.phx.gbl...
Use the attached XML file and the following code.
Do what ever you want with it.

Set rs = CreateObject("ADODB.Recordset")
rs.Open "data.xml"

'Do What Ever

rs.Save "data.xml",1
Set rs = Nothing

Jul 22 '05 #18
js,

Once the data is loaded into the recordset you can filter, sort, add, edit, delete the data just as
in SQL.
Where are you storing data in a session or application Variable?
If needed the xml can be Serialized into a string for storing in an application variable.

Take a look at the following code. This is used to store XML in a session or application Variable
and load and unload into a recordset when needed. This can be on an include asp file if needed.

I would store the xml file on the harddrive myself.

<SCRIPT language="vbscript" runat="server">
Class RSXML
Private mrecordset
Private mxmldom

Private Sub Class_Initialize()
Set mxmldom = CreateObject("MSXML2.DOMDocument")
Set mrecordset = CreateObject("ADODB.Recordset")
End Sub

Private Sub Class_Terminate()
Set mxmldom = Nothing
Set mrecordset = Nothing
End Sub

Public Function Serialize(recordset)
On Error Resume Next
recordset.Save mxmldom, 1
Serialize = mxmldom.xml
End Function

Public Function Deserialize(strXML)
On Error Resume Next
mxmldom.loadXML strXML
mrecordset.Open mxmldom
Set Deserialize = mrecordset
End Function
End Class
</SCRIPT>
'dlbjr
'Pleading sagacious indoctrination!
Jul 22 '05 #19
Roland Hall wrote:

So, if a read-only XML file is shared and RW XML files are separate
for each user, that's not an issue?


Correct. I see nothing wrong with that. In fact, I use similar strategy in a
few of my apps.

Bob

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #20
"Bob Barrows [MVP]" wrote in message
news:Ol*************@TK2MSFTNGP09.phx.gbl...
: Roland Hall wrote:
: > "Bob Barrows [MVP]" wrote in message
: > news:OF*************@TK2MSFTNGP15.phx.gbl...
: >> js wrote:
: >>> Hi, I have some questions about replace with mdb file with xml file:
: >>
: >> Don't
: >>
: >>> Can I use ado
: >>
: >> ado is not needed to use xml
: >>
: >>> and xml to store info instead of Ms access database,
: >>
: >> Yes, but ....
: >>
: >>> what will be the diff?
: >>
: >> No referential integrity. No SQL language. No data constraints. xml
: >> is simply a text file.
: >>
: >>> can ado and xml support mult-user
: >>> Concurrent access? Thansk...
: >>
: >> No. You will wind up having to reinvent the wheel with your own
: >> code. it's not worth it.
: >
: > Not sure what you're saying here Bob. Are you saying using an XML
: > file on the net with multiple users is a bad idea?
:
: I'm not sure if this is a facetious question or not, but I'll answer it as
: if it is a straight question, given that I may have over-made my point.
:-)

I know I kid around a lot but it was a straight question.

: So, "Are you saying using an XML file on the net with multiple users is a
: bad idea?"
:
: A. Not necessarily.
:
: I'm saying that replacing a database, which provides the builtin
: functionality to support multiple users and protect the integrity of the
: data it contains, with a text file, xml or csv, may not be a good idea. It
: forces the developer to reinvent the wheel, writing all the code to
provide
: the same functionality that was provided by the database. Consider the
years
: it has taken the developers of Jet to get to the point they are at now, as
: well as all the mistakes that were made and corrected along the way.
: Providing that functionality is not an easy task. Not impossible, but
: definitely daunting.
:
: However:
: Using a read-only (or update-rarely) text file (or xml document stored in
: application or session) to cache frequently used, relatively static data
is
: a very good idea. In a perfect world, the data would still come from a
: database, but with truly static data, that is not necessary.

So, if a read-only XML file is shared and RW XML files are separate for each
user, that's not an issue? I'm asking because I'm doing that in lieu of
using an Access database and getting good results. I will however be
offering multiple database versions but for now, just XML.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp

Jul 22 '05 #21
js

"dlbjr" wrote in message > js,

Once the data is loaded into the recordset you can filter, sort, add,
edit, delete the data just as
in SQL.
Where are you storing data in a session or application Variable?
If needed the xml can be Serialized into a string for storing in an
application variable.

Set rs = CreateObject("ADODB.Recordset")
rs.Open "data.xml"

can I open a csv file instead of the defined data.xml file?
data.txt

dl***@ss.com, 1, 127.0.0.1
js@ss.com, 2, 127.0.0.1
Jul 22 '05 #22
js wrote:
"dlbjr" wrote in message > js,

Once the data is loaded into the recordset you can filter, sort, add,
edit, delete the data just as
in SQL.
Where are you storing data in a session or application Variable?
If needed the xml can be Serialized into a string for storing in an
application variable.

Set rs = CreateObject("ADODB.Recordset")
rs.Open "data.xml"

can I open a csv file instead of the defined data.xml file?
data.txt

dl***@ss.com, 1, 127.0.0.1
js@ss.com, 2, 127.0.0.1


Yes Either using FileSystemObject (fso) or ADO. Here's the ADO way:
http://www.able-consulting.com/MDAC/...crosoftJetText

See the vbscript documentation for help on using fso.
http://tinyurl.com/7rk6

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #23
js
Thanks for the help Bob.
Jul 22 '05 #24
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
: Roland Hall wrote:
: >
: > So, if a read-only XML file is shared and RW XML files are separate
: > for each user, that's not an issue?
:
: Correct. I see nothing wrong with that. In fact, I use similar strategy in
a
: few of my apps.

Thanks Bob. (O:=

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp

Jul 22 '05 #25
js
Hi dlbjr,
I can't save to data entry into the xml file:
Error: Can't save.

what permisstion do I need to set to file?

"dlbjr" <dl***@donotknow.com> wrote in message
news:uw*************@tk2msftngp13.phx.gbl...
Use the attached XML file and the following code.
Do what ever you want with it.

Set rs = CreateObject("ADODB.Recordset")
rs.Open "data.xml"

'Do What Ever

rs.Save "data.xml",1
Set rs = Nothing

--
dlbjr
Pleading sagacious indoctrination!

Jul 22 '05 #26
Does the xml file exits and you are rewriting or are you writing the file for the first time?
Where is the file located. Make sure permissions are set on file if outside of web app folder.
Why can you not use a small access database for this? You seem to want a text file solution.
Is there some constraint to cause this decision?

--
'dlbjr
'Pleading sagacious indoctrination!
Jul 22 '05 #27
js
hi dldjr,
I found it out, http://support.microsoft.com/kb/818518
"dlbjr" <oo**@iforgot.com> wrote in message
news:eI**************@TK2MSFTNGP14.phx.gbl...
Does the xml file exits and you are rewriting or are you writing the file
for the first time?
Where is the file located. Make sure permissions are set on file if
outside of web app folder.
Why can you not use a small access database for this? You seem to want a
text file solution.
Is there some constraint to cause this decision?

--
'dlbjr
'Pleading sagacious indoctrination!

Jul 22 '05 #28
Kewl!

--
'dlbjr
'Pleading sagacious indoctrination!
Jul 22 '05 #29
It is correct that you should "go further, bigger and more robust" data save
solution when building web apps. But at the same time i have built web apps
with access db for more 50 users and there hasn't even go or slow down at
all after 6 months. Remeber these 50+ users are not "really accessing the
db at the same time. The recordsets are disconnected.. They're accessed
and the db is released. Of course on these cases, the applications are not
critical neither 24/7 and it won't cause any big damage if it goes down for
a while.

It all depends on your needs or company needs and the growth of the
application. In my case this was used to save costs by the company and it
is known that the growth of these activities are not closer than 10 years.
So, my customers are happy with the solution. for some others and
differents cases I have had to go with oracle or SQL Server.

--
________________
German Saer
gs***@hotmail.com
Orlando, FL

"Roland Hall" <nobody@nowhere> wrote in message
news:Oq****************@TK2MSFTNGP15.phx.gbl...
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
: Roland Hall wrote:
: >
: > So, if a read-only XML file is shared and RW XML files are separate
: > for each user, that's not an issue?
:
: Correct. I see nothing wrong with that. In fact, I use similar strategy in a
: few of my apps.

Thanks Bob. (O:=

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp MSDN Library - http://msdn.microsoft.com/library/default.asp

Jul 22 '05 #30
"German Saer" wrote in message
news:J5******************@tornado.tampabay.rr.com. ..
: It is correct that you should "go further, bigger and more robust" data
save
: solution when building web apps. But at the same time i have built web
apps
: with access db for more 50 users and there hasn't even go or slow down at
: all after 6 months. Remeber these 50+ users are not "really accessing the
: db at the same time. The recordsets are disconnected.. They're accessed
: and the db is released. Of course on these cases, the applications are
not
: critical neither 24/7 and it won't cause any big damage if it goes down
for
: a while.
:
: It all depends on your needs or company needs and the growth of the
: application. In my case this was used to save costs by the company and it
: is known that the growth of these activities are not closer than 10 years.
: So, my customers are happy with the solution. for some others and
: differents cases I have had to go with oracle or SQL Server.

Thanks Saer..

In this case, it's a shopping cart. I'd prefer it go down only during
scheduled maintenance. I am currently writing db versions of the cart, and
an XML module for distributors since it is currently MS SQL. I am going to
submit the XML version for testing and wanted to know if what I had written
was going to have issues. It may have other issues for other reasons but I
didn't want data corruption to be one of them.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Jul 22 '05 #31

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.