473,321 Members | 1,667 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,321 software developers and data experts.

Speed connecting to SQL using 2.0 framework

This is going to be pretty vague.

Our software was using the 1.1 version of the .NET framework and things
were fine. In March we upgraded to using the 2.0 framework, and the
visual studio 2005. Now, on the same hardware and program, everything is
slower, especially when connecting to SQL.

Has anyone seen anythign like this?

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Apr 24 '07 #1
5 1123
Quantify 'everything is slower'.
"Darin" <darin_nospam@nospameverwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
This is going to be pretty vague.

Our software was using the 1.1 version of the .NET framework and things
were fine. In March we upgraded to using the 2.0 framework, and the
visual studio 2005. Now, on the same hardware and program, everything is
slower, especially when connecting to SQL.

Has anyone seen anythign like this?

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Apr 24 '07 #2
Stephany, You're back! Long time no see; hope you're doing ok.
Robin S.
-----------------------
"Stephany Young" <noone@localhostwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
Quantify 'everything is slower'.
"Darin" <darin_nospam@nospameverwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>This is going to be pretty vague.

Our software was using the 1.1 version of the .NET framework and things
were fine. In March we upgraded to using the 2.0 framework, and the
visual studio 2005. Now, on the same hardware and program, everything is
slower, especially when connecting to SQL.

Has anyone seen anythign like this?

Darin

*** Sent via Developersdex http://www.developersdex.com ***

Apr 25 '07 #3
Connecting to the SQL database and running SQL statements.

I haven't changed any of the code, so the connection string, and the way
the reading is done is the same.

Connection string:

Data Source={server name};
Initial Catalog=(database name};
User Id={user name};Password={password};
Min Pool Size=1;
Max Pool Size=7500;
Packet Size=32767;
SQL commands is run using:

strCommand = New SqlCommand(in_sql, xconn)
strCommand.CommandTimeout = 3600 '60 minutes
intOut = strCommand.ExecuteNonQuery()

OR

strSQL = "SELECT field FROM table
strCommand = New SqlCommand(strSQL, xconn)
strCommand.CommandTimeout = 600 '10 minutes
xobj = strCommand.ExecuteScalar
Darin

*** Sent via Developersdex http://www.developersdex.com ***
Apr 25 '07 #4
Quantify means 'the numbers'.

How many minutes and/or seconds and/or milliseconds (measured) did it take
to connect to SQL Server 'before'.

How many minutes and/or seconds and/or milliseconds (measured) does it take
to connect to SQL Server 'after'.

How many minutes and/or seconds and/or milliseconds (measured) did it take
to 'run' a specfic query 'before'.

How many minutes and/or seconds and/or milliseconds (measured) does it take
to 'run' the exact same query 'after'.
"Darin" <darin_nospam@nospameverwrote in message
news:OG**************@TK2MSFTNGP06.phx.gbl...
Connecting to the SQL database and running SQL statements.

I haven't changed any of the code, so the connection string, and the way
the reading is done is the same.

Connection string:

Data Source={server name};
Initial Catalog=(database name};
User Id={user name};Password={password};
Min Pool Size=1;
Max Pool Size=7500;
Packet Size=32767;
SQL commands is run using:

strCommand = New SqlCommand(in_sql, xconn)
strCommand.CommandTimeout = 3600 '60 minutes
intOut = strCommand.ExecuteNonQuery()

OR

strSQL = "SELECT field FROM table
strCommand = New SqlCommand(strSQL, xconn)
strCommand.CommandTimeout = 600 '10 minutes
xobj = strCommand.ExecuteScalar
Darin

*** Sent via Developersdex http://www.developersdex.com ***
Apr 25 '07 #5
This is coming from a customer, so I can't say. Just the general
perception the software is slower.

Basically, my question has to do w/ my connection strings and how I am
getting the data - is that the best way for .NET 2.0 and SQL (some
customers have 2000 and some have 2005).

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Apr 25 '07 #6

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

Similar topics

12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
4
by: Scott Johnson | last post by:
Hi! Is there a way to "preload" a form using a thread or something else so that my user doesn't have to wait 5 seconds (initializing time) between forms? Some of these forms have tab strips with...
3
by: GTDriver | last post by:
I'm trying to connect my application with a web service located on my own web server(localhost). I guess when the solution/proect is built it makes a file called 'Web...
1
by: SqlJunkies User | last post by:
Hi I try to call a Webservice via java, the webservice is loacated on a IIS-server(Dot-net). It is a trusted Domain so I do not have to Connect with a Username and Password. It seems to be a...
2
by: markoZ | last post by:
Hi. We have developed a .NET web service. The service executes a SQL on the SQL server. The first call of the webservice takes very long but the other calls dont. Why is that and how can we...
3
by: Mike Kelly | last post by:
Hi. I've built a page using standard ASP.NET 2.0 features and when I upload a large file (>20MB) to our intranet server, I get a paltry 100KB/s on our 100Mb/s LAN. Simply copying the file, I get...
0
by: acwomble | last post by:
I am working with a database on another system via a ssh tunnel using plink. We have setup an alias the local system for the remote database. I am able to connect and work from within Visual...
5
by: =?Utf-8?B?U3RlZmFuIEJhcmxvdw==?= | last post by:
I am experiencing a lot of speed issues on initial app loads where we are referencing 3rd party 1.1 assemblies from 2.0 code. Those 1.1 assemblies reference things like System.Windows.Forms...
0
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.