Active Database Connections SQL Express, How Many
Jun 12, 2006
How can I determine if everyone has logged off of the SQL Express database, ie, no one else is connected.
I need to clean up some files that are generated in my code, but I only want to do that when everyone has logged off the database?
In MS Access, I could try to re-open the MDB file exclusively.
Is there a connection number etc?
View 3 Replies
ADVERTISEMENT
May 8, 2008
Is there a way to find active connection to a database so you don't have to wait for a restore or similar operation to fail. (Which take forever).?
Is there a SMO method or a transact SQL command or something that can be used in an application to detect active connections?
I don't want to have to wait forever to get a failure when you can't perform a operation that require that there be no active connection such detach a database. I want to be able to tell when I can perform a operation which requires no active connection and when I need to use a task without out dropping the connection like copying the schema using SMO methods.
However if there are no connection I can perform a detach copy and attach to create a new database which is considerable faster.
View 5 Replies
View Related
Sep 26, 2007
I have a Microsoft Cluster running on Server 2003 Entrprise. SQL 2000 8.00.2039 (SP4). 5gb physical memory installed.
With the databases online we run a test failover from the Cluster administrator. It takes about 30-40 seconds and completes without generating any Server Event log errors nor SQL log errors. Everything looks good from an administrative stand point.
However, when we test with running a series of queries to the databases, then failover, we notice that it can take up to 3 or 4 minutes before some of the databases will respond. Connections are not refused, they just sit there.
How can we troubleshoot this or does anyone have a similiar experience with this scenario?
View 5 Replies
View Related
Oct 25, 2000
Hello All,
Is there a procedure or function that will return only active, running connections on the server?
Thanks In Advance.
View 2 Replies
View Related
Feb 21, 2007
Still getting my feet wet with sql 2005 tools, how can I see the active connections ? and can i drop the ones i select ?
View 1 Replies
View Related
Sep 20, 2005
Hi.
I have to buy a license for MS SQL Server 2000 and I need to know how many active connections I will need.
I could try by running the application with multiple users and see how many connections there are.
The questions is: How can I know the number of active connections to the Server?
Thanks!
View 2 Replies
View Related
Sep 27, 2005
Hi
We just installed SQL service pack 4. I am now finding that when doing a sp_who2 active, there are a lot of connections that are blocked by itself. The common factor is they all have a status of 'sleeping'. The strange thing is that even though it shows the connection is blocked, it is in fact not and will still return results. Below is a snapshot of a portion of what the sp_who2 active returns:
SPID Status Login HostName BlkBy DBName
53 sleeping sa TRACKER 53 dbABC
58 sleeping sa TRACKER 58 dbCDE
64 sleeping sa TRACKER 64 dbSTA
66 RUNNABLE User12 PC24 . master
70 sleeping User5 ANALYSIS 70 dbBML
74 sleeping sa TRACKER 74 dbCDE
76 sleeping sa TRACKER 76 dbPTS
83 sleeping User5 ANALYSIS 83 dbANA
86 DORMANT User11 CPTDB . NULL
Has anyone seen this? Is it related to the installation of service pack 4? (We have installed the services pack on many other SQL servers, but have not come accross this before.
Tx,
TessZA
View 1 Replies
View Related
Feb 27, 2006
I've developed an asp.net 2.0 web app with vs 2005 and am using a SQL Server 2005 Express database. The app works fine locally, but after uploading to the remote web server the following error occures:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
How do I go about granting remote connections to SQL Server Express?
Does the web server have to have SQL Server Express installed in order to run apps that utilize SQL Server 2005 Express databases?
Do I grant access locally on my machine or do I have to be on the web server to grant remote connections?
I've been using .net 1.1 with access databases for the past couple of years, so this is all new to me.
Thanks.
View 27 Replies
View Related
Jan 23, 2002
Hi All
How to check number of active connections ?
I know two ways of doing it ..
1. run sp_who2
2. in Current Activity in Enterprise Manager ..
If what ever number I am seeing is the Active Number of Connections ..then
I am facing a problem here ..
In My serevr I have 75 Users licenses are configured for Per server option ..
Through a Java aplication when Developer tried to capture any SQL server Connection it says following error ..
Details :
[MERANT][SQLServer JDBC Driver][SQLServer]Login failed. The maximum simultaneous user count of 75 licenses for this 'Standard Edition' server has been exceeded. Additional licenses should be obtained and installed or you should upgrade to a full version.
If I see from Sp_who2 and Current Activity , I can see only 37 Connections ...?
Why is so .. If I am having 75 configured and 37 live in sp_who2 ..why I am getting that error message ?
Is there other way to see Actual Number of Connections made to server ?
Sujit Kandi
1 860 520 7454
View 1 Replies
View Related
May 19, 2015
I am trying to find the list of active connections on SQL SERVER , more and more granular way ...like below , I know a way using active monitor or Profiler or some DMVs give me some list , but is there a way to find what is the server name ,instance name connectedc to it , who is the clinet connected to it , whats the application being used now?
what database it is connected to it ? what login being used to connect ? what table and column being used right now and what kind of DML or DDL are happeming ?
I want to create a report and find Dependancay evaluation so that we will re architech or re design the existing databases ...
ServerName InstanceName Client Application Database Login Table Column Select Insert Update Delete Truncate Alter
View 6 Replies
View Related
Dec 9, 2014
we have roughly 22 people connected to one database. But after a while, their applications begin to drag due to in and out communication with the server. When i check the active connections on the sql server, some times i see 157 active connections, please how to i set a timeout or connection interval close, so as reduce the heavy load being put on the server. Or how can i automatically close connections when they get higher than 50 connections.
This settings should be sql server 2008 related.
View 5 Replies
View Related
Sep 19, 2007
Hi all,
In my office computer network system (LAN), my Windows XP Pro PC has SQL Server Express and VB 2005 Express installed and I was granted to have the Administrator priviledge to access SQL Server Express. I tried to create a SQLCLR project in my terminal PC.
1) I tried to set up a remote connection to SQL Server Express in the following way: SQL Server EXpress => SQL Server Surface Area Configuration. In the Surface Area Configuration for Service and Connection - local, I clicked on Remote Connection of Database Engine, SQLEXPRESS and I had a "dot" on "Local and remote connections" and "Using TCP/IP only". Then I clicked on "Apply" and "OK" buttons. Then I went to restart my database engine in SQL Server Management. When I went to check SQL Server 2005 Surface Area Configuration, I saw the arrow is pointing to "Service", not to "Remote Connections"!!!??? Is it right/normal? Please comment on this matter and tell me how I can have "Remote Connecton" on after I selected it.
2) After I restarted the database engine (I guess!!), I executed the following project code (copied from a book) in my VB 2005 Express:
//////////////--Form9.vb---/////////////////
mports System.Data.SqlClient
Imports System.Data
Public Class Form9
Dim cnn1 As New SqlConnection
Private Sub Form5_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'Compute top-level project folder and use it as a prefix for
'the primary data file
Dim int1 As Integer = InStr(My.Application.Info.DirectoryPath, "bin")
Dim strPath As String = Microsoft.VisualBasic.Left(My.Application.Info.DirectoryPath, int1 - 1)
Dim pdbfph As String = strPath & "northwnd.mdf"
Dim cst As String = "Data Source=.sqlexpress;" & _
"Integrated Security=SSPI;" & _
"AttachDBFileName=" & pdbfph
cnn1.ConnectionString = cst
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Create a command to create a table
Dim cmd1 As New SqlCommand
cmd1.CommandText = "CREATE TABLE FromExcel (" & _
"FirstName nvarchar(15), " & _
"LastName nvarchar(20), " & _
"PersonID int Not Null)"
cmd1.Connection = cnn1
'Invoke the command
Try
cnn1.Open()
cmd1.ExecuteNonQuery()
MessageBox.Show("Command succeeded.", "Outcome", _
MessageBoxButtons.OK, MessageBoxIcon.Information)
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
cnn1.Close()
End Try
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
'Create a command to drop a table
Dim cmd1 As New SqlCommand
cmd1.CommandText = "DROP TABLE FromExcel"
cmd1.Connection = cnn1
'Invoke the command
Try
cnn1.Open()
cmd1.ExecuteNonQuery()
MessageBox.Show("Command succeeded.", "Outcome", _
MessageBoxButtons.OK, MessageBoxIcon.Information)
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
cnn1.Close()
End Try
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
'Declare FromExcel Data Table and RowForExcel DataRow
Dim FromExcel As New DataTable
Dim RowForExcel As DataRow
FromExcel.Columns.Add("FirstName", GetType(SqlTypes.SqlString))
FromExcel.Columns.Add("LastName", GetType(SqlTypes.SqlString))
FromExcel.Columns.Add("PersonID", GetType(SqlTypes.SqlInt32))
'Create TextFieldParser for CSV file from spreadsheet
Dim crd1 As Microsoft.VisualBasic.FileIO.TextFieldParser
Dim strPath As String = _
Microsoft.VisualBasic.Left( _
My.Application.Info.DirectoryPath, _
InStr(My.Application.Info.DirectoryPath, "bin") - 1)
crd1 = My.Computer.FileSystem.OpenTextFieldParser _
(My.Computer.FileSystem.CombinePath(strPath, "Book1.csv"))
crd1.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited
crd1.Delimiters = New String() {","}
'Loop through rows of CSV file and populate
'RowForExcel DataRow for adding to FromExcel
'Rows collection
Dim currentRow As String()
Do Until crd1.EndOfData
Try
currentRow = crd1.ReadFields()
Dim currentField As String
Dim int1 As Integer = 1
RowForExcel = FromExcel.NewRow
For Each currentField In currentRow
Select Case int1
Case 1
RowForExcel("FirstName") = currentField
Case 2
RowForExcel("LastName") = currentField
Case 3
RowForExcel("PersonID") = CInt(currentField)
End Select
int1 += 1
Next
int1 = 1
FromExcel.Rows.Add(RowForExcel)
RowForExcel = FromExcel.NewRow
Catch ex As Microsoft.VisualBasic.FileIO.MalformedLineException
MsgBox("Line " & ex.Message & _
"is not valid and will be skipped.")
End Try
Loop
'Invoke the WriteToServer method fo the sqc1 SqlBulkCopy
'object to populate FromExcel table in the database with
'the FromExcel DataTable in the project
Try
cnn1.Open()
Using sqc1 As SqlBulkCopy = New SqlBulkCopy(cnn1)
sqc1.DestinationTableName = "dbo.FromExcel"
sqc1.WriteToServer(FromExcel)
End Using
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
cnn1.Close()
End Try
'Read the FromExcel table and display results in
'a message box
Dim strQuery As String = "SELECT * " & _
"FROM dbo.FromExcel "
Dim str1 As String = ""
Dim cmd1 As New SqlCommand(strQuery, cnn1)
cnn1.Open()
Dim rdr1 As SqlDataReader
rdr1 = cmd1.ExecuteReader()
Try
While rdr1.Read()
str1 += rdr1.GetString(0) & ", " & _
rdr1.GetString(1) & ", " & _
rdr1.GetSqlInt32(2).ToString & ControlChars.CrLf
End While
Finally
rdr1.Close()
cnn1.Close()
End Try
MessageBox.Show(str1, "FromExcel")
End Sub
End Class
//////////////////////////////////////////////////////////////////////////////
I got the following error messages:
SecurityException was unhandled
Request for the permission of type 'System. Security. Permissions.FileIOPermission,mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'failed that is pointing to the code statement "Dim int1 As Integer = InStr (My.Application.Info.DirectoryPath, "bin")."
Troubleshooting tips:
Store application data in isolated storage.
When deploying an Office solution, check to make sure you have fulfilled all necessary requirments.
Use a certificate to obtain the required permission(s).
If an assembly implementing the custom security references other assemblies, add the referenced assemblies to the full trust assembly list.
Get general help for the exception.
I am a new Microsoft VS.NET Express user to do the SQL Server 2005 Express and VB 2005 Express programming by using the example of a tutorial book. Please help and tell me what is wrong in my SQLCLR sep-up and project coding and how to correct the problems.
Many Thanks in advance,
Scott Chang
View 3 Replies
View Related
Jan 27, 2006
I have an Excel add-in that connects to a SQL Server Express 2005database. I've decided to create a configuration piece for this add-inin Visual Studio 2005 Express. I added a data connection using the dataconnection wizard and all appeared to go well. Anyways when I attemptto open SQL Server Express to administer the database, it was corruptedand I had to restore it.I eventually got it to work correctly (I'm pretty sure I followedpretty much the same steps as before), but I was just wondering ifanyone had experienced problems like this? I find it a bit scary thatit may be that easy to corrupt the database by just creating a dataconnection.
View 2 Replies
View Related
Mar 24, 2007
I have a laptop and a desktop that I both installed VWD and SQL Express. from my laptop, i see my laptop's name in the Server Name under data connections, but on the desktop, I only see an older Win2K Server with SQL 2000 in the list. Anyone know why my desktop doesn't show it's NAME?I can create new tables, users and all that stuff from the Management area. Thanks
View 3 Replies
View Related
Jun 21, 2006
This has been driving me crazy for weeks and I can't seem to find any info on it... Here is the scenario:
I've developed an intranet using ASP.NET 2 and SQL Express. I have the site running on my local development computer and also the production server (Windows Server 2003 running SQL Express).
Fully functional connection string for database running on local development computer and running on production server:
<add name="ASPNETDBConnectionString" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename='|DataDirectory|ASPNETDB.MDF';Integrated Security=True;User Instance=True;Connect Timeout=30" providerName="System.Data.SqlClient" />
Once I roll the site out, I want to be able to develop (to some degree) against the production database. But when changing my connection string to point to the production server from my development computer...
<add name="ASPNETDBConnectionString" connectionString="Data Source=LancelotSQLEXPRESS;Database='D:OfficenetApp_DataASPNETDB.MDF';Integrated Security=True;User Instance=True;Connect Timeout=30;" providerName="System.Data.SqlClient" />
...I get the following error:
User does not have permission to perform this action.
I've found some documentation about not using the "User Instance=True;" command but without that I get:
Cannot open database "D:OfficenetApp_DataASPNETDB.MDF" requested by the login. The login failed.Login failed for user 'WITTEGregL'.
In regular SQL Server, (not Express), I just change the connection string to work against the Local or Production database and it's really easy. I just can't figure out the trick to do the same kind of thing using SQL Express.
Can someone clear this up for me?
Greg
View 5 Replies
View Related
Dec 22, 2006
If I deploy a database to the web using sql express 05 is there a limit to the number of connections that can be made on it? I have read posts stating that but cant find any documentation from MSFT that supports that idea. I just know that it has a limit of a db size to 4 gigs.
Thanks!
View 5 Replies
View Related
May 9, 2008
I am running a standalone WinXP SP2 system with VS 8 and SS 5 Express on it. I have been working very nicely with VB and SSCE, but I want to learn to use Sql Server 5 Express, which I also have on my system from a prior install of VS 5. I am strictly doing this as a learning experience on my own.
I have been trying to install the NW sample database into SS 5 Ex, but it is obviously not configured properly, because I am getting errors stating that the scripts cannot install because they cannot establish a remote connection to SS. So I looked up the FAQ item here on setting up for remote connections (which I am not even sure applies for a standalone system like mine). Anyway, I followed the instructions in the FAQ, using the SAC util to configure for remote connections, but it does not work. Every time I try to start the DB engine, it fails with the following message:
When trying to start Database Engine when configuiriung for remote connections in SAC:
"TITLE: Surface Area Configuration
------------------------------
The service did not respond to the start or control request in a timely fashion, you need
administrator privileges to be able to start/stop this service. (SQLSAC)
Now, I am the admin user on the PC but OK, so I selected the SAC option to set myself as SSadmin, even though this option is supposedly only for Vista users according to the dialog. Anyway, it does not allow me to set myself as SSAdmin, it returns the following error:
When trying to add myself to SQLSAC, even though it is for Vista:
"TITLE: .Net SqlClient Data Provider
------------------------------
An error has occurred while establishing a connection to the server. When connecting to SQL
Server 2005, this failure may be caused by the fact that under the default settings SQL Server
does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open
a connection to SQL Server)
For help, click:
http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtI
D=2&LinkId=20476"
(which help link is no help BTW, because it is not valid). And the setting does not get set, because the next time I open that dialog, I am back to being a non-admin user.
So what is the solution here? Am I going to be able to use SS 5 Ex on my PC? No matter which connection option I select, either local only, or for any of the remote options, I cannot get it to work. Am I supposed to reboot my PC after changing a setting? Or is it just not possible to run SS 5 Ex on a standalone PC like mine?
Or worse, are there a bunch of other configuration settings I must change as well? I note that, when I look in the SS Config Manager at the properties for SS Express, I see that it shows the logon option that uses the built-in account "Network Service"rather than Local System or Local Service; is that correct? BTW the browser is always running in all this.
As you may gather, I know zip nada about SS, but I am an experienced VB/VBA/VC+/FP programmer of many years, did desktop Access databases w/VB6 frontends for a lot of customers, so I am familiar with DB design etc. I just know next to nothing about backend stuff like this, other than a little with BTrieve years ago.
Any help appreciated
Pete B
.
View 1 Replies
View Related
Dec 15, 2007
In the latest issue of MSDN Journal , article "IIS 7.0: Enhance Your Apps Wioth Integrated ASP.NET Pipeline", Mike Volodarsky says:
"...Be sure to close the tool after you are finished as SQL Server Express Edition allows only one user identity to access the database at a time."
Can someone elaborate on this?
View 1 Replies
View Related
Jul 23, 2005
Hi all !Does someone know how many concurrent connections 2005 Express canaccommodate ? The limit on MSDE was 5 before performance drops considerably.Thanks for your help.Sebastian
View 1 Replies
View Related
Sep 1, 2006
I have an application that will deployed on LANS running 1- 10 systems on average.
The front end is C#.net 2.0 and the backend will be sql express.
I need to enable remote connections by default because 99.5% of our customers have 2 or more computers.
I have two questions:
1) How do I enabled remote access during installation? Can I run the sqlExpress install silently and turn this on so that my users (who are very non-technical) do not have to go into surface configuration and turn on network access?
2) If I already have sql express installed (like on my development machine now) how do I enable remote access via a command line utility without having to run the surface configuration tool? I want to be able to execute a command to turn on network access so my users don't have to go to a GUI tool(Surface area configuration) and turn it on themselves. Can I use sqlcmd to turn on network access or some other command line utility that I can execute easily. Perhaps there is some type of .NET assembly that I can reference from within my C#.net application that will allow me to enable remote access? Basically How do i take care of this without making my users have to do it?
thanks in advance
View 3 Replies
View Related
May 7, 2007
Hi,
I'm having problems getting a remote connection to sql server express.
The application connects fine on the local PC (using SQL server authentication), however a networked laptop cannot connect to sql.
The PC/Laptop have been networked using the network wizard, and files on the PC are accesible from the laptop.
tcp/ip is enabled on express and the browser service is running. All firewalls have been switched off.
Any ideas?
View 3 Replies
View Related
Jul 19, 2006
Hi,
We have few installations of SQL Server express on Windows 2003 servers, platforms varrying from Celeron to P4.
Sql Server on system hangs after running for some time. Time varies from few hours to few days.
When we try to connect it just gives connection timeout error.
Any idea how to isolate the problem?
We would like to to enable more detail tracing but do not know how to do that.
Thanks in advance.
View 6 Replies
View Related
May 3, 2007
Hi,
My Web Aplication read and write into a sql server express database. The database is in one server and the applicacion is running from my laptop.
Everything works well.
But if i publish the web in the same server that the sql server and getting the next error:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
When am running the application from my laptop i am using the external IP and when I publish it in the same server i am changing the IP for the server name. The most interesting part is that the web can read but when it tries to insert is when am getting this error.
Any clue??' I can select, delete, insert using Microsoft SQl Server management Studio from my laptop, then the sql server accept remote connections.
I do not understand why the ASP.Net application works perfectly when runs from my computer but get this error when is publish in the server.
Any help will be more than appreciate.
Thanks in advance
View 8 Replies
View Related
Jul 20, 2007
i Have this stored procedure below that creates a backujp copy of tblpersons from database db1 into another database db2 with a table1 pressing f5 to create it it goes fine up to around 5 seconds and after that the error below appears and looking at the stored procedure it is not created either. I already activated the default settings SQL Server to allow remote connections but still the error appears.
CREATE PROCEDURE makebackup
BEGIN
SELECT * INTO table1 FROM sql1.database1.dbo.tblpersons
END
GO
OLE DB provider "SQLNCLI" for linked server "amps" returned message "Login timeout expired".
OLE DB provider "SQLNCLI" for linked server "amps" returned message "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
Msg 126, Level 16, State 1, Line 0
VIA Provider impossible to find the module
THANKS
ALEX
View 5 Replies
View Related
Sep 28, 2007
I was going over this article , and was intrigued by this statement "If SQL Server 2005 Express is running on Windows XP Home, it is limited to five simultaneous connections. If it is running on Windows 2000 or Windows XP Professional, it is limited to 10 simultaneous connections. However, these are limitations of the operating system and not of SQL Server 2005 Express."
What are simultaneous connections? Is this related to Max worker threads defined as 255 on other editions? How does underlying OS impose how many connections can be done to SQL server. And finally how many simultaneous connections can be done in Windows Server 2003?
View 11 Replies
View Related
Feb 20, 2007
Just upgraded to SQL Express 2005 from MSDE for Firehouse. Upgrade went great and the db is accessable and running fine. Except when not used for a while. Then I need to restart the db to allow connections of any kind. If I don't I get an error that the db is not accessable and I can't connect. Everything runs fine after until it goes to "sleep" on me again. We upgraded to make use of the 4GB limit as we were at 1.9GB and MSDE was getting a little unhappy.
Any suggestions? Is this a "feature" and if so, is there a script I can run to kick it into working mode again?
Thanks
Chris
View 1 Replies
View Related
Aug 31, 2006
number of connectios tcp/ip..........I have a 3 person but the 4 does not connect????
View 1 Replies
View Related
Jan 22, 2015
I have a table with the following columns employeeSessionID, OpDate, OpHour, sessionStartTime, sessionCloseTime. I need to see how many users remain active per hour. I can calculate how many logged in per hour, but I am stumped on how to count how many are active per hour. I have a single table that stores login data. I have created a query that pulls out the only the data needed from the table into a temp table using this query. Also note it is possible that the sessionCloseTime is null if the device has not been logged out this would need to be counted a active.
TABLE NAME #empSessionLog Contains the time stamp data OpDate, sessionStartTime and sessionCloseTime.
OpDatesessionStartTimesessionCloseTime
2015-01-202015-01-20 14:32:59.1302015-01-20 14:33:14.6299166
2015-01-202015-01-20 06:58:33.7302015-01-20 15:27:16.9133442
2015-01-202015-01-20 09:56:22.8402015-01-20 17:56:29.7555853
2015-01-202015-01-20 05:59:18.6132015-01-20 14:05:19.0426707
[code]....
can see how many sessions logged in per hour with the following statement:
SELECT
opDate,
FORMAT(DATEPART(HOUR, sessionStartTime), '00') AS opHour,
Count(*) AS Total
FROM #empSessionLog
Group BY opDate, FORMAT(DATEPART(HOUR, sessionStartTime), '00')
Order BY opDate, FORMAT(DATEPART(HOUR, sessionStartTime), '00') ASCResults:
opDateopHourTotal
2015-01-20041
[code]....
Where I am stuck is how do I count the sessions that remain active per hour until the session is closed with the sessionCloseTime.
View 5 Replies
View Related
Mar 5, 2008
Hi
I am having some teething problems while installing SQL on a 3 node cluster. Within the Cluster configuration I have 3 Cluster Groups with each of them having their associated disk resources. All these disk resources physically exist on a SAN.
The actual cluster is running absolutely fine and I can access all the disks from their respective owner node. The problem only starts when I start installing SQL Server 2005 on this cluster. I specify the Cluster group from the Cluster Group Selection and choose the desired partition and then the error message pops up
"There is not enough diskspace on the destination disk for the current SQL Server data files. To proceed, free up disk space to make room for data files, or install the data files to a different drive"
But the disk I am trying to install it on is 264Gb and none of it is used. I have also tried to change it to a different disk within the same Cluster group but to no avail. I have even tried to install it in a different cluster group all together but I get the same error message.
I have googled around havent found anything so far. The disks have got full permissions for the account I am installing SQL with.
Any help will be much appreciated.
Regards
Adnan
View 5 Replies
View Related
May 17, 2007
Hi Guys, how many connections does sql 2005 express allow to .mdf file. I stumpled on info on a microsoft site (actually a forum post on msdn) that sql server express allows only a single connection to an .mdf file.
Iam intrested in this because i developed reporting services reports in BIS and iam having problems. If i run a report from report manager, i have to wait for close to 20 minutes before i can be able to run my asp.net application agian. Else if i insert data or retrieve data from my asp.net application, then i have to wait again for 20 minutes or more before i can be able to run my reports else i will get an error that a connection can not be made to the database or that the database is being used by another process.
So in all cases, i have to wait for 20--30 minutes before a connection can be made to the .mdf file. i.e after running a report or after inserting or retrieving data from the database through my asp.net application.
Iam using sql sever 2005 express with advanced services and visual web developer on windows server 2003.
Any ideas or help.
View 2 Replies
View Related
Jul 6, 2006
My target market includes Micro-SMEs (i.e. 1 to 2 person business). This users often have multiple computers, but tend to run XP Home edition. Hence I need to set up a SQL Server Express on one of the machines and allow the other machines to access it.
So far I realise:
XP machines must be SP2ed (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=379560&SiteID=1)
XP Home machines need to be in the same work group (am I right?)
I have to Open up the MS Firewall on each of the machines for TCP ports 1433 and 1434 (see http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=511441&SiteID=1)
On the machine hosting the SQL Server Express instance, start the "Browser" Service (again http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=511441&SiteID=1)
I have several questions surrounding this.....
If I package SQL Express with my application is there away I can get the Browser to be started automatically? Do I need to write some custom code using the Microsoft.SqlServer.Management namespace?
My understanding of the SQL Server security model is that ideally I should ideally use Windows Authenticated users connections - how do I set up the remote XP Home user on the XP Home machine which is hosting the SQL Server Instance? I'm thing I may have to used Mixed Mode and pass the SQL Server username and password in the connection string. Am I right or can I use Windows Authenticated?
Are there any more resources other than http://msdn.microsoft.com/sql/express/default.aspx?pull=/library/en-us/dnsse/html/emsqlexcustapp.asp which I should look at for help on installing an app bound to SQL Server Express?
Thanks in advance
Ben
View 4 Replies
View Related
Apr 25, 2006
I can't find the answer...it just talk about the CPU / ram /database limit. thanks for you help!
View 1 Replies
View Related
Aug 15, 2006
Hello. I have SQLEXPRESS 2005 installed on my laptop running Windows XP Home Edition with SP2. I have an application that can connect to the local instance with no problem. The other day, I tried to configure SQLEXPRESS 2005 for a remote connection from my desktop. To date, I have been unable to figure out how to do this.
I have followed the instructions posted at various locations on the internet, but to no avail. While I can configure SQLEXPRESS 2005 to allow TCP/IP connections, I have been unable to restart the server.
Here is the pertinent snippet from the error log:
<time> Server A self-generated certificate was successfully loaded for encryption.
<time> Server Error: 26024, Severity: 16, State: 1.
2006-08-14 21:02:27.18 Server Server failed to listen on 'any' <ipv4> 0. Error: 0x277a. To proceed, notify your system administrator.
<time> Server Error: 17182, Severity: 16, State: 1.
<time> Server TDSSNIClient initialization failed with error 0x277a, status code 0xa.
<time> Server Error: 17182, Severity: 16, State: 1.
<time> Server TDSSNIClient initialization failed with error 0x277a, status code 0x1.
<time> Server Error: 17826, Severity: 18, State: 3.
<time> Server Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
<time> Server Error: 17120, Severity: 16, State: 1.
<time> Server SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
I have a feeling this problem is due to the way my system is configured, not necessarily how my SQLEXPRESS 2005 is configured. My laptop and desktop are connected via a wireless router, and both machines are running Norton Anti-Virus 2006. I've added sqlserver.exe and sqlbrowser.exe to the exceptions list for the Worm protection on the laptop, i.e., the server machine. There's not a setting at the router that would prevent the server from re-starting, is there?
Any help is GREATLY appreciated!
Matt
View 15 Replies
View Related