473,398 Members | 2,380 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,398 software developers and data experts.

sql session state for .net v1.1/.net v2.0 and sql server 2005

We are upgrading to a new server which has SQL 2005 (previously we had SQL
2000) and I wish to do the necessary set up to enable SQL Session state for
asp.net applications. Currently we are running .Net 1.1 applications but in
future we will also be running .Net v2.0 applications. I am a bit unsure
about how to set up the sql session state. Under SQL 2000/.Net 1.1 I just ran
the InstallPersistSQLState.sql script in the
Microsoft.NET\Framework\v1.1.4322 folder. I notice that there is the same
script in the Microsoft.NET\Framework\v2.0.50727 but it says that it is for
backward compatabilty only and that I should use aspnet_regsql.exe instead.
Will this be ok for both .Net 1.1 and .Net 2.0 on SQL 2005??
--
Scott
Feb 13 '06 #1
3 1152
Hi Scott,

Welcome to the MSDN newsgroup.

As for the ASP.NET SqlServer session, each version of the .net framework
will provide its own register script or tool for configuring session
database in SqlServer. Therefore, which one to use(install sql script or
aspnet_regsql.exe) depend on which version of ASP.NET your web application
will run under. If your web application is running against ASP.NET 1.1, you
should use the InstallXXXSqlState.sql script in the .net framework 1.1's
folder, else if your web application is running against ASP.NET 2.0, you
should use the aspnet_regsql.exe tool to configure the SQLServer database
instead(no matter Sql 2000 or 2005).

If there's anything unclear, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 14 '06 #2
Thanks for the reply although I am a bit confused I will be running
applications under both asp.net 1.1 and asp.net 2.0, however both the
IInstallXXXSqlState and the aspnet_regsql.exe both seem to generate the same
ASPState database so which one to use? At the moment I am testing asp.net 1.1
sites after I generated the database with the asp.net_regsql.exe and they
seem to run ok. Is it ok to continue with this?
--
Scott
"Steven Cheng[MSFT]" wrote:
Hi Scott,

Welcome to the MSDN newsgroup.

As for the ASP.NET SqlServer session, each version of the .net framework
will provide its own register script or tool for configuring session
database in SqlServer. Therefore, which one to use(install sql script or
aspnet_regsql.exe) depend on which version of ASP.NET your web application
will run under. If your web application is running against ASP.NET 1.1, you
should use the InstallXXXSqlState.sql script in the .net framework 1.1's
folder, else if your web application is running against ASP.NET 2.0, you
should use the aspnet_regsql.exe tool to configure the SQLServer database
instead(no matter Sql 2000 or 2005).

If there's anything unclear, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 15 '06 #3
Thanks for your response Scott,

Well I got that you need to run both asp.net 1.1 and 2.0 application on the
same server and only one SQLServer instance, correct? If so, I think your
current choice is reasonable, we're encouraged to always use the new
version since it will provide most backaward compatibility support.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 16 '06 #4

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

Similar topics

5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
5
by: Arun | last post by:
Hi, Is it possible to share Session/Application State across different Asp.net webapplication (one in VB.net ) and the other is C# ? If so can you guide me ? -Regards' Arun
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
8
by: ari | last post by:
hey all, i'm trying to make my app as stateless as possible. is it ok to create a dataset and store in viewstate and whenever the user decides to select a from that dataset, to move from...
6
by: Eric McVicker | last post by:
Session state has options to be inproc, state server or sql server. Why does Application state not allow for state server or sql server so the same Application state could be shared between...
4
by: John Allberg | last post by:
Hi! We have a problem which is correlated to web farms and session handling and are thinking of what solution to choose. Our setup is with a web farm, one ldap server and a database cluster. ...
3
by: RSH | last post by:
Hi, I have a situation where I have created an object that contains fields,properties and functions. After creating the object I attempted to assign it to a session variable so i could retrieve...
2
by: fniles | last post by:
I am using Visual Studio 2005. In my ASPX page, when I try to use Session, I got the error "Session state can only be used when enableSessionState is set to true, either in a configuration file or...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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...
0
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...
0
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...

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.