473,698 Members | 2,883 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# Database @@identity

How do I get the @@identity value without using stored procedures in C#?

I have the a table named 'sports' that has an @@identity value for the
primary key.

What I want to do is after I insert into into the 'sports' table, I want to
get the @@identity value (primary key) for what I just inserted.

I have to following code if this helps, thanks in advance:

---------------------------------------------------------

string sql = "insert into sports (name.......";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteRead er();
result.Close();

// ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
SqlCommand ident = new SqlCommand("sel ect @@identity from sports", conn);
SqlDataReader ident_result = ident.ExecuteRe ader();

int sport_id = -1;
if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }

ident_result.Cl ose();
conn.Dispose();
Nov 17 '05 #1
9 20130
rather use :
string sql = "insert into sports (name.......);S ELECT @@IDENTITY;"
Now use your SqlDataReader result = to getvalue of the first column which is
the new identity

--
Swanand Mokashi
Microsoft Certified Professional
http://www.swanandmokashi.com/
Home of the Stock Quotes, Quote of the day and Horoscope web services
"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How do I get the @@identity value without using stored procedures in C#?

I have the a table named 'sports' that has an @@identity value for the
primary key.

What I want to do is after I insert into into the 'sports' table, I want to get the @@identity value (primary key) for what I just inserted.

I have to following code if this helps, thanks in advance:

---------------------------------------------------------

string sql = "insert into sports (name.......";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteRead er();
result.Close();

// ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
SqlCommand ident = new SqlCommand("sel ect @@identity from sports", conn);
SqlDataReader ident_result = ident.ExecuteRe ader();

int sport_id = -1;
if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }

ident_result.Cl ose();
conn.Dispose();

Nov 17 '05 #2
Micheal,

It will work if you just do the select @@identity within your insert
statement.

Then use ExecuteScalar to get it out.

Like this:

strSQL = "INSERT INTO sports (name) VALUES (@name);SELECT @@Identity"
SQLCommand.Comm andText = strSQL
IdReturned = SQLCommand.Exec uteScalar

I hope this helps.
--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How do I get the @@identity value without using stored procedures in C#?

I have the a table named 'sports' that has an @@identity value for the
primary key.

What I want to do is after I insert into into the 'sports' table, I want to get the @@identity value (primary key) for what I just inserted.

I have to following code if this helps, thanks in advance:

---------------------------------------------------------

string sql = "insert into sports (name.......";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteRead er();
result.Close();

// ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
SqlCommand ident = new SqlCommand("sel ect @@identity from sports", conn);
SqlDataReader ident_result = ident.ExecuteRe ader();

int sport_id = -1;
if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }

ident_result.Cl ose();
conn.Dispose();

Nov 17 '05 #3
yes executescalar is a even better option

--
Swanand Mokashi
Microsoft Certified Professional
http://www.swanandmokashi.com/
Home of the Stock Quotes, Quote of the day and Horoscope web services
"S. Justin Gengo" <sj*****@aboutf ortunate.com> wrote in message
news:uM******** *****@TK2MSFTNG P09.phx.gbl...
Micheal,

It will work if you just do the select @@identity within your insert
statement.

Then use ExecuteScalar to get it out.

Like this:

strSQL = "INSERT INTO sports (name) VALUES (@name);SELECT @@Identity"
SQLCommand.Comm andText = strSQL
IdReturned = SQLCommand.Exec uteScalar

I hope this helps.
--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How do I get the @@identity value without using stored procedures in C#?

I have the a table named 'sports' that has an @@identity value for the
primary key.

What I want to do is after I insert into into the 'sports' table, I want

to
get the @@identity value (primary key) for what I just inserted.

I have to following code if this helps, thanks in advance:

---------------------------------------------------------

string sql = "insert into sports (name.......";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteRead er();
result.Close();

// ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
SqlCommand ident = new SqlCommand("sel ect @@identity from sports", conn); SqlDataReader ident_result = ident.ExecuteRe ader();

int sport_id = -1;
if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }

ident_result.Cl ose();
conn.Dispose();


Nov 17 '05 #4
Hmm....

I am doing the following (see below) and it does __not__ work? It error's
at cmd.ExecuteScal ar() stating:
"cannot implicity convert type 'object' to SqlDataReader"

Any ideas?

-------------------------------------------------
string sql = "insert into sports (name) value ('test'); select @@identity";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteScal ar();

int sport_id = -1;
if (result.Read()) { sport_id = result.GetDecim al(0); }

result.Close();
conn.Dispose();
--------------------------------------------------------


"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How do I get the @@identity value without using stored procedures in C#?

I have the a table named 'sports' that has an @@identity value for the
primary key.

What I want to do is after I insert into into the 'sports' table, I want to get the @@identity value (primary key) for what I just inserted.

I have to following code if this helps, thanks in advance:

---------------------------------------------------------

string sql = "insert into sports (name.......";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteRead er();
result.Close();

// ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
SqlCommand ident = new SqlCommand("sel ect @@identity from sports", conn);
SqlDataReader ident_result = ident.ExecuteRe ader();

int sport_id = -1;
if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }

ident_result.Cl ose();
conn.Dispose();

Nov 17 '05 #5
Micheal,

The ExecuteScalar method returns a single value. Instead of a datareader it
is returning the id itself you just need to declare an integer variable and
set it equal to the execute scalar line like I showed in my example.

It returns as a type object so you'll have to cast it as int.
--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hmm....

I am doing the following (see below) and it does __not__ work? It error's
at cmd.ExecuteScal ar() stating:
"cannot implicity convert type 'object' to SqlDataReader"

Any ideas?

-------------------------------------------------
string sql = "insert into sports (name) value ('test'); select @@identity";
conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteScal ar();

int sport_id = -1;
if (result.Read()) { sport_id = result.GetDecim al(0); }

result.Close();
conn.Dispose();
--------------------------------------------------------


"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How do I get the @@identity value without using stored procedures in C#?

I have the a table named 'sports' that has an @@identity value for the
primary key.

What I want to do is after I insert into into the 'sports' table, I want

to
get the @@identity value (primary key) for what I just inserted.

I have to following code if this helps, thanks in advance:

---------------------------------------------------------

string sql = "insert into sports (name.......";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteRead er();
result.Close();

// ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
SqlCommand ident = new SqlCommand("sel ect @@identity from sports", conn); SqlDataReader ident_result = ident.ExecuteRe ader();

int sport_id = -1;
if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }

ident_result.Cl ose();
conn.Dispose();


Nov 17 '05 #6
ExecuteScalar returns the 1st column of the 1st row of your query result.
This is by default returned as type object
use :
int sport_id = (int) cmd.ExecuteScal ar();

--
Swanand Mokashi
Microsoft Certified Professional
http://www.swanandmokashi.com/
Home of the Stock Quotes, Quote of the day and Horoscope web services
"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hmm....

I am doing the following (see below) and it does __not__ work? It error's
at cmd.ExecuteScal ar() stating:
"cannot implicity convert type 'object' to SqlDataReader"

Any ideas?

-------------------------------------------------
string sql = "insert into sports (name) value ('test'); select @@identity";
conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteScal ar();

int sport_id = -1;
if (result.Read()) { sport_id = result.GetDecim al(0); }

result.Close();
conn.Dispose();
--------------------------------------------------------


"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How do I get the @@identity value without using stored procedures in C#?

I have the a table named 'sports' that has an @@identity value for the
primary key.

What I want to do is after I insert into into the 'sports' table, I want

to
get the @@identity value (primary key) for what I just inserted.

I have to following code if this helps, thanks in advance:

---------------------------------------------------------

string sql = "insert into sports (name.......";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteRead er();
result.Close();

// ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
SqlCommand ident = new SqlCommand("sel ect @@identity from sports", conn); SqlDataReader ident_result = ident.ExecuteRe ader();

int sport_id = -1;
if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }

ident_result.Cl ose();
conn.Dispose();


Nov 17 '05 #7

Just for the record (I know that people have pointed you in the right
direction), but the code you posted wouldn't have worked because the
@@identity would only be in scope for that transaction.

Given that no other statements were executed prior to the select (in
particular, nothing that affects an identity field) - @@identity would'nt
return a value... actually it might return 0, but I could be wrong.

Neil Ramsbottom
"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How do I get the @@identity value without using stored procedures in C#?

I have the a table named 'sports' that has an @@identity value for the
primary key.

What I want to do is after I insert into into the 'sports' table, I want to get the @@identity value (primary key) for what I just inserted.

I have to following code if this helps, thanks in advance:

---------------------------------------------------------

string sql = "insert into sports (name.......";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteRead er();
result.Close();

// ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
SqlCommand ident = new SqlCommand("sel ect @@identity from sports", conn);
SqlDataReader ident_result = ident.ExecuteRe ader();

int sport_id = -1;
if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }

ident_result.Cl ose();
conn.Dispose();

Nov 17 '05 #8
The below does _not_ work! The datatype for the autoincrement value is INT
in SQL Server 2000. The strange thing is that if I use a 'decimal' it works
(using .NET framework 1.1)

---------------------------------------------------------
string sql = "insert into sports (name) value ('test'); select
@@identity";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
int result = (int)cmd.Execut eScalar();
----------------------------------------------------------

"S. Justin Gengo" <sj*****@aboutf ortunate.com> wrote in message
news:OP******** ******@TK2MSFTN GP11.phx.gbl...
Micheal,

The ExecuteScalar method returns a single value. Instead of a datareader it is returning the id itself you just need to declare an integer variable and set it equal to the execute scalar line like I showed in my example.

It returns as a type object so you'll have to cast it as int.
--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hmm....

I am doing the following (see below) and it does __not__ work? It error's
at cmd.ExecuteScal ar() stating:
"cannot implicity convert type 'object' to SqlDataReader"

Any ideas?

-------------------------------------------------
string sql = "insert into sports (name) value ('test'); select

@@identity";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteScal ar();

int sport_id = -1;
if (result.Read()) { sport_id = result.GetDecim al(0); }

result.Close();
conn.Dispose();
--------------------------------------------------------


"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How do I get the @@identity value without using stored procedures in C#?
I have the a table named 'sports' that has an @@identity value for the
primary key.

What I want to do is after I insert into into the 'sports' table, I
want to
get the @@identity value (primary key) for what I just inserted.

I have to following code if this helps, thanks in advance:

---------------------------------------------------------

string sql = "insert into sports (name.......";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteRead er();
result.Close();

// ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
SqlCommand ident = new SqlCommand("sel ect @@identity from sports",

conn); SqlDataReader ident_result = ident.ExecuteRe ader();

int sport_id = -1;
if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }

ident_result.Cl ose();
conn.Dispose();



Nov 17 '05 #9
Interesting!

Well, I mostly program in vb.net and only a little in C#. It's good to know
about this difference.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Micheal" <fr****@sbcglob al.net> wrote in message
news:OA******** ******@tk2msftn gp13.phx.gbl...
The below does _not_ work! The datatype for the autoincrement value is INT in SQL Server 2000. The strange thing is that if I use a 'decimal' it works (using .NET framework 1.1)

---------------------------------------------------------
string sql = "insert into sports (name) value ('test'); select
@@identity";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
int result = (int)cmd.Execut eScalar();
----------------------------------------------------------

"S. Justin Gengo" <sj*****@aboutf ortunate.com> wrote in message
news:OP******** ******@TK2MSFTN GP11.phx.gbl...
Micheal,

The ExecuteScalar method returns a single value. Instead of a datareader

it
is returning the id itself you just need to declare an integer variable

and
set it equal to the execute scalar line like I showed in my example.

It returns as a type object so you'll have to cast it as int.
--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hmm....

I am doing the following (see below) and it does __not__ work? It error's at cmd.ExecuteScal ar() stating:
"cannot implicity convert type 'object' to SqlDataReader"

Any ideas?

-------------------------------------------------
string sql = "insert into sports (name) value ('test'); select

@@identity";

conn.Open();

// insert record into the database
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader result = cmd.ExecuteScal ar();

int sport_id = -1;
if (result.Read()) { sport_id = result.GetDecim al(0); }

result.Close();
conn.Dispose();
--------------------------------------------------------


"Micheal" <fr****@sbcglob al.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> How do I get the @@identity value without using stored procedures in C#? >
> I have the a table named 'sports' that has an @@identity value for the > primary key.
>
> What I want to do is after I insert into into the 'sports' table, I want to
> get the @@identity value (primary key) for what I just inserted.
>
> I have to following code if this helps, thanks in advance:
>
> ---------------------------------------------------------
>
> string sql = "insert into sports (name.......";
>
> conn.Open();
>
> // insert record into the database
> SqlCommand cmd = new SqlCommand(sql, conn);
> SqlDataReader result = cmd.ExecuteRead er();
> result.Close();
>
> // ??? GET THE IDENTITY OF WHAT WAS JUST INSERTED ???
> SqlCommand ident = new SqlCommand("sel ect @@identity from sports",

conn);
> SqlDataReader ident_result = ident.ExecuteRe ader();
>
> int sport_id = -1;
> if (ident_result.R ead()) { ident_result.Ge tDecimal(0); }
>
> ident_result.Cl ose();
> conn.Dispose();
>
>



Nov 17 '05 #10

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

Similar topics

2
1766
by: Devesh Aggarwal | last post by:
Hi, I have a backup and restore module in my project. The backup uses a typed dataset object (XSD) to get the data from database and creates a xml file as the backup file (using the WriteXml method of dataset). When doing the restore i have to overwrite the data from xml back to database. these are the steps that i follow. 1. get the data from database.
4
7712
by: Nanchil | last post by:
Hi, We created a database (DB2 UDB 7.2 on solaris 8) without this (COLLATE USING IDENTITY ) option. But we need this now for binary sorting. The database is siebel database. Is it possible to drop and recreate the database with COLLATE USING IDENTITY option and restore the database. Please advise. Nanchil.
2
5456
by: WhiteEagl | last post by:
Hello, I would need some help with this identity column problem in SQLServer. I have a database with two tables. The Parent table has an Identity column. Parent (ParentID IDENTITY, Name) Child (ChildID, Name, ParentID)
1
1676
by: dusty | last post by:
Hi, I'll try to simplify the problem: I created a table "TestTable" in a database on the SQL server. The first column, 'id', is the primary key with a auto-increment identity. I want to work connection-less, so I made my dataset where I populated a table with the data from the TestTable. When I insert a new row with the .NewRow() method, the identity column value is the next value available. For instance: if the last row had the value of 105,...
3
3160
by: dusty | last post by:
Hi, I'll try to simplify the problem: I created a table "TestTable" in a database on the SQL server. The first column, 'id', is the primary key with a auto-increment identity. I want to work connection-less, so I made my dataset where I populated a table with the data from the TestTable. When I insert a new row with the .NewRow() method, the identity column value is the next value available. For instance: if the last row had the value of 105,...
3
6506
by: Wm. Scott Miller | last post by:
What is the difference between using a username and password in the processmodel section vs using one in impersonation in the machine.config file? What are the advantages of each and what are the reasons for using each? Thanks for any replies, Scott
8
9463
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity
3
2356
by: Rob | last post by:
Hi all, I have a bit of a complicated question, hope we have an SQL guru out there that can help us solve this killer problem. Due to the size of SQL Database we have (largest in the US), we try to pre-process large data files in IO until we are ready to insert directly into the database via BCP (quick, no constraints, no mess... well um that's the problem)
11
2691
by: stegze | last post by:
Hi All, I have a problem with a DB2 server of my customer. It is a Debian Linux running DB2 Express-C. I have an IDENTITY field as PK in a table and I use this value as FK in another table. Two weeks ago the FK values got corrupted or mixed up somehow. I also got some warnings about system temporary table spaces so I created a 16K page size system temporary table space to be sure. All seemed to be okay until today. Something happened an...
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8610
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.