How To Select Current Client IP Address Using T-SQL Command ?

Jul 4, 2006

I have problem to find Current IP address for client computer that have a connection to Specific DataBase Server .I can only know the IP Address of DataBase Server but not current client user IP address that I am seeking to find it
,How can I do this by using T-SQL command?
Please write full T-SQL code .

View 2 Replies


ADVERTISEMENT

Retrieving IP Address Of Current Client's Connection

Apr 7, 2006

MS SQL 2000:

I can retrieve "host" name of the current connection from "sysprocesses" system table(select host from sysprocesses). But is it possible to get the IP address of the client connection instead of host?

I could not find any stored procedures or extended procedures that would let me retrieve such information.

thank you in advance.

View 6 Replies View Related

A Simple Query That Returns The Most Current Address

Jul 24, 2007

Hi,I have an Address table which contains more than one addresses for aparticular member. I want to write a query that would only displaymost current address. All addresses have a unique ID (addID).Example:memberID addID address1-------- ------ --------------------------------------------------295 69 13 Auster St295 70 465 Lorre Ct295 71 P.O. Box 321722 171 10 Hannaford Rd722 172 Dubai, United Arab Emirates


Quote:

View 1 Replies View Related

How To Get The Client IP Address In T-SQL ?

Oct 24, 2007

Hi,

My problem is -
I have a trigger for auditing the changes(insert/update/delete) in the database table.That is done and is working fine. But I need to have the client's IP address from where the changes are done. That I need in T-SQL, that means, not in any web form but in the SQL/T-SQL.

As I have checked many forums, I got that there is extended stored procedure in master database named xp_cmdshell which has xplog70.dll and when we execute this stored procedure with 'ipconfig' we can get the IP Address. But I do not need that in master database. I need that in my database say myDB.

So how to proceed further. I don't know whether to create extended SP which contains DLL or is there any other option.

Pls help
Thanks in advance

View 14 Replies View Related

Get Connecting Client PC's Name Or IP Address

Aug 30, 2006

Hi All,

Is it possible to retrieve the client PC's computer name through SQL?

I'm storing workstation specific data in a table and want to be able to retrieve it in order to persist the state of the application between sessions.

Perhaps there's a better way to do this that I'm not aware of? If so, please advise.

Thx

View 3 Replies View Related

SQL 2012 :: Extended Events And Client IP Address

Jan 14, 2015

I want to gather (and filter by) client ip address in an extended events session. So far, I have the sqlserver.login event added, but I can find no way to get client ip address added to the action or predicate.

I can filter by the pred_source field "session_nt_domain" or "nt_domain" but this is not always populated by all logins and also, this domain only lists machine name, such as FRED, as opposed to the full domain FRED.foo.bar.

Is it possible to gather login client ip address in an extended events session? Surely internal SQL Server processes have access to it because the login audit can populate client ip address.

View 1 Replies View Related

How To Pass The IP Address As A Server Name In Command

Jun 8, 2007

Hi, there,



I am creating a job, which will run a DTS package (SQL 2000), Due to the way it set up, I need to pass the IP address as the server name,



for example, say the IP address is 64.84.50.11

User name is sa

password is webpass

package name is datadump1



I used the command



EXEC master..xp_cmdshell 'dtsrun /S64.84.50.11 /Usa /Pwebpass /Ndatadump1'



when I run it in query analyzer, it returns an error,

Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '/'.



Is there anyone know what's wrong with my command?



Thank you very much

View 1 Replies View Related

Extract IP Address From Command String - Subscript And Charindex

Apr 21, 2014

I am trying to extract the IP address from a command string, the problem I am running into is there are 3 types of command strings.

SENDAUTO IP192.168.1.32L0O11 Z1 5(E=00:00,F=00:00,G=00:00,H=00:00,I=00:00,J=00:00)

SENDCREATEEXCEPTION -1,IP192.168.1.32,0,11,0,Z1,Free text-label,19,3,19,3,06:00|24:00,I|O,1,288003,1

SENDWEEKTIMES IP192.168.1.32,0,11,Z1,3,100,23:00|24:00|24:00|24:00|24:00|24:00,I|O|O|O|O|O

The IP address length can vary, and the character after the IP is either a L or ,

How can I edit the following function to look for both characters?

SUBSTRING(Command, CHARINDEX('IP', Command), CHARINDEX('L', Command) - (CHARINDEX('IP', Command)))

View 6 Replies View Related

T-sql Command To Get The Current Instance Name

Jan 4, 2007

What is the T-sql command to get the current instance name please?
Thanks

View 2 Replies View Related

Defining Command,commandtype And Connectionstring For SELECT Command Is Not Similar To INSERT And UPDATE

Feb 23, 2007

i am using visual web developer 2005 and SQL 2005 with VB as the code behindi am using INSERT command like this        Dim test As New SqlDataSource()        test.ConnectionString = ConfigurationManager.ConnectionStrings("DatabaseConnectionString1").ToString()        test.InsertCommandType = SqlDataSourceCommandType.Text        test.InsertCommand = "INSERT INTO try (roll,name, age, email) VALUES (@roll,@name, @age, @email) "                  test.InsertParameters.Add("roll", TextBox1.Text)        test.InsertParameters.Add("name", TextBox2.Text)        test.InsertParameters.Add("age", TextBox3.Text)        test.InsertParameters.Add("email", TextBox4.Text)        test.Insert() i am using UPDATE command like this        Dim test As New SqlDataSource()        test.ConnectionString = ConfigurationManager.ConnectionStrings("DatabaseConnectionString").ToString()        test.UpdateCommandType = SqlDataSourceCommandType.Text        test.UpdateCommand = "UPDATE try SET name = '" + myname + "' , age = '" + myage + "' , email = '" + myemail + "' WHERE roll                                                         123 "        test.Update()but i have to use the SELECT command like this which is completely different from INSERT and  UPDATE commands   Dim tblData As New Data.DataTable()         Dim conn As New Data.SqlClient.SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|Database.mdf;Integrated                                                                                Security=True;User Instance=True")   Dim Command As New Data.SqlClient.SqlCommand("SELECT * FROM try WHERE age = '100' ", conn)   Dim da As New Data.SqlClient.SqlDataAdapter(Command)   da.Fill(tblData)   conn.Close()                   TextBox4.Text = tblData.Rows(1).Item("name").ToString()        TextBox5.Text = tblData.Rows(1).Item("age").ToString()        TextBox6.Text = tblData.Rows(1).Item("email").ToString()       for INSERT and UPDATE commands defining the command,commandtype and connectionstring is samebut for the SELECT command it is completely different. why ?can i define the command,commandtype and connectionstring for SELECT command similar to INSERT and UPDATE ?if its possible how to do ?please help me

View 2 Replies View Related

A Severe Error Occurred On The Current Command.

Aug 23, 2006

I am having problems with an error that I keep receiving. The error message states "A severe error occurred on the current command. The results, if any, should
be discarded."This error is popping up when I try to call a specific stored procedure in SQL2005. The error is not specific to ASP.NET code because it also occurs if I try to run the procedure in SQL Server Management Studio. The procedure is exactly the same that is running on an SQL2000 server on a live site, so it apparently is specific to SQL2005.I have not worked much with SQL2005 or SQL cursors in the past and this code was not written by me so I am not sure where to start making changes, if any are needed.The procedure is as follows:ALTER PROCEDURE [dbo].[spGetAdmins]     @userid    int,    @forDate datetimeASDECLARE    @lngTabCount INTEGER,        @lngLoopCount INTEGER,        @type varchar(15),        @id varchar(20),        @statement varchar(1000),        @useridLocal int,        @forDateLocal datetimeSET    @useridLocal = @useridSET    @forDateLocal = @forDateDECLARE    @AdminInfo TABLE (AdminID varchar(20), AdminName varchar(50))    /* check parameters */    IF (@useridLocal <= 0)         BEGIN            RAISERROR( 'Invalid UserID (%d)', 16, 1, @useridLocal )        END    IF (@forDateLocal IS NULL)         BEGIN            SELECT @forDateLocal = GETDATE()        ENDDECLARE profInfo CURSORLOCAL FORWARD_ONLYFOR    SELECT    ProfileType, ProfileValue    FROM    tblCSUserProfile    WHERE    UserID = @useridLocal and         (StartDate is not null or StartDate <= @forDateLocal ) and         (EndDate is null or EndDate > @forDateLocal )    ORDER BY    ProfileTypeOPEN profInfoFETCH profInfo INTO @type, @idWHILE @@Fetch_Status = 0    BEGIN        IF @id = '*'            BEGIN                INSERT INTO @AdminInfo                VALUES ('*', '* Everything')                                 END        ELSE            BEGIN                INSERT INTO @AdminInfo                SELECT adm.[ADM_CODE], adm.[ADMIN_NAM]                FROM OPENROWSET('SQLOLEDB', 'server'; 'database'; 'password', [table]) AS adm                WHERE adm.[ADM_CODE] = @id            END        FETCH profInfo INTO @type, @id            ENDCLOSE profInfoDEALLOCATE profInfoSELECT    DISTINCT(UPPER(AdminID)) AS AdminCodeFROM @AdminInfo GROUP BY AdminIDORDER BY AdminCode

View 1 Replies View Related

A Severe Error Occurred On The Current Command

Oct 17, 2007

Hi EveryBody,

I have got some problem in our SQL Server 2k5, Randomly the SQL Servercies stops responding on the server side and if we try to login to SQL server it gives Error "A severe error occurred on the current command"

we is there any solution to this? whenever we face this problem we need to restart the server, on few places i have seen the recomendation of SP 2, but m not sure that it will solve the problem or not.... i will appreciate if some one can can suggest me the solution??

View 4 Replies View Related

A Severe Error Occurred On The Current Command. The Results, If Any, Should Be Ignored

Feb 1, 2008

I got the above error executing a stored procedure from .Net app and I isolated the issue on the following sql statement inside the sp. I executed the statement manually inside the MSSQL Mgt Studio and got the same error as above. Here is the sql statement:
SELECT F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14,F15,F16,F17,F18,F19,F20,F21,F22,F23,F24,F25,F26,F27,F28,F29 from OpenRowset('MSDASQL', 'Driver={Microsoft Text Driver (*.txt; *.csv)};DefaultDir=E:\TPSDATA\az\;','select * from prohist.csv where f1 < 0 ')

the data file exists in the directory 'E: psdataazprohist.csv' . I'm running on SQL2005 version 9.00.3054.00. Any ideas what the problem is? Appreciate any feedback

View 4 Replies View Related

SQL 2000 A Severe Error Occurred On The Current Command.

Jan 9, 2007

I am recently getting SQLException on production sql database that uses SQL Session State. Any help on how to fix or what to look for. I also noticed some errors on the eventlog (attached below).

Error Message:

System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded

Stack Trace:

[HttpException (0x80004005): Unable to connect to SQL Server session database.]

System.Web.SessionState.SqlStateClientManager.SetAsyncWorker(String id, SessionStateItem item, Byte[] buf, Int32 length, Boolean inStorage) + 524

System.Web.SessionState.SqlStateClientManager.System.Web.SessionState.IStateClientManager.Set(String id, SessionStateItem item, Boolean inStorage) ...

EventLog:

Event Type: Error
Event Source: MSSQLSERVER
Event Category: (2)
Event ID: 17052
Date: 1/9/2007
Time: 9:28:34 AM
User: N/A
Computer: CompName
Description:
Error: 17803, Severity: 20, State: 12
Insufficient memory available.
Data:
0000: 8b 45 00 00 14 00 00 00 ‹E......
0008: 07 00 00 00 4c 00 4c 00 ....L.L.
0010: 44 00 42 00 30 00 31 00 D.B.0.1.
0018: 00 00 09 00 00 00 41 00 ......A.
0020: 53 00 50 00 53 00 74 00 S.P.S.t.
0028: 61 00 74 00 65 00 00 00 a.t.e...

View 5 Replies View Related

This Microsoft Sql Server Native Client Package Is Not Supported On The Current Processor Type

Dec 16, 2007

Hello,I'm trying to install the SQL Server 2005 Standard edition and while I can easily install the first part of the package, the 
document.write(L_LINK_RUNINSTALL_VAR_TEXT)
Server components, tools, Books Online, and samples, when I click
to install the Run the SQL Native Client Installation Wizard  it tells me this:This Microsoft sql server native client package is not supported on the current processor type
I have Windows XP64bit with IIS running on 32bit now.  Why does it do that and how I can get around it  ? :) Thanks.
 

View 3 Replies View Related

Select Address

Aug 4, 2006

1A apple street
11 apple street
1B apple street


i want to select only the first address. how do i do it?

View 8 Replies View Related

A Severe Error Occurred On The Current Command. The Results, If Any, Should Be Discarded.

Aug 27, 2002

Hi,

I am hosting my ASP.NET application on a Host and after some time I get this error
(Don't get it on my development machine):

A severe error occurred on the current command. The results, if any, should be discarded.

And then it says this on the same page:

Exception Details: System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

[SqlException: A severe error occurred on the current command. The results, if any, should be discarded.]
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +643
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +9
ASPNetPortal.PortalSettings..ctor(Int32 tabIndex, Int32 tabId)
ASPNetPortal.Global.Application_BeginRequest(Object sender, EventArgs e)
System.Web.SyncEventExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)


I thought this is a problem with max pool size and I did it max pool size = 5000, now application runs ok for some time and then produces this error but some times this comes very soon.

As a solution, I have to copy my dll in bin directory again and application restarts and works properly but then after some time this happenes again.

Please let me know whats the problem.
I checked all of my SqlDataReaders and SqlConnections are closed properly.

Any help would be appreciated.

Thanks.

Rahul.

View 8 Replies View Related

A Severe Error Occurred On The Current Command. The Results, If Any, Should Be Discarded

Feb 26, 2008

Hi all. I am running on SQL 2005 Standard eddition SP2, Also did install " KB Article Number(s): 944929, 946608, 948490, 949118". Running on 2003 server.

Error:
Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.

I have 2 servers. One of them is free text seach with files stored in DB. On main server there is a link back to this file DB server.

I am trying to run this script and then error from above... link_kance_doc is link to table on other server. Strange thing is when I run this same script on server 3 with same link to file DB server it works. It also works when runed on file DB server.
Also, if I dont use WHERE CONTRAINS SQL does return Dataset..


SELECT link_kance_doc.ID, link_kance_doc.DocName, link_kance_doc.DocExtension, link_kance_doc.KancelID, link_kance_doc.Comments,
link_kance_doc.CreateByUser, link_kance_doc.CreateTS, link_kance_doc.ActiveYN
FROM link_kance_doc
where Contains(*,'"murte"')

Any ideas..





Server LOG

02/26/2008 16:54:05,Server,Unknown,A user request from the session with SPID 57 generated a fatal exception. SQL Server is terminating this session. Contact Product Support Services with the dump produced in the log directory.
02/26/2008 16:54:05,Server,Unknown,Error: 17310<c/> Severity: 20<c/> State: 1.
02/26/2008 16:54:05,spid57,Unknown,External dump process return code 0x20000001.<nl/>External dump process returned no errors.
02/26/2008 16:54:04,spid57,Unknown,Stack Signature for the dump is 0x28BDEE59
02/26/2008 16:54:04,spid57,Unknown,78132A47 Module(MSVCR80+00002A47)
02/26/2008 16:54:04,spid57,Unknown,781329BB Module(MSVCR80+000029BB)
02/26/2008 16:54:04,spid57,Unknown,010B9201 Module(sqlservr+000B9201)
02/26/2008 16:54:04,spid57,Unknown,010B9064 Module(sqlservr+000B9064)
02/26/2008 16:54:04,spid57,Unknown,010B939C Module(sqlservr+000B939C)
02/26/2008 16:54:04,spid57,Unknown,010B94A5 Module(sqlservr+000B94A5)
02/26/2008 16:54:04,spid57,Unknown,010075DC Module(sqlservr+000075DC)
02/26/2008 16:54:04,spid57,Unknown,010078CC Module(sqlservr+000078CC)
02/26/2008 16:54:04,spid57,Unknown,010077A6 Module(sqlservr+000077A6)
02/26/2008 16:54:04,spid57,Unknown,0102F1F4 Module(sqlservr+0002F1F4)
02/26/2008 16:54:04,spid57,Unknown,01032A36 Module(sqlservr+00032A36)
02/26/2008 16:54:04,spid57,Unknown,01028600 Module(sqlservr+00028600)
02/26/2008 16:54:04,spid57,Unknown,0134752A Module(sqlservr+0034752A)
02/26/2008 16:54:04,spid57,Unknown,01430633 Module(sqlservr+00430633)
02/26/2008 16:54:04,spid57,Unknown,01346B6B Module(sqlservr+00346B6B)
02/26/2008 16:54:04,spid57,Unknown,013A929A Module(sqlservr+003A929A)
02/26/2008 16:54:04,spid57,Unknown,01368BB2 Module(sqlservr+00368BB2)
02/26/2008 16:54:04,spid57,Unknown,013A9BDC Module(sqlservr+003A9BDC)
02/26/2008 16:54:04,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:04,spid57,Unknown,013AFC6E Module(sqlservr+003AFC6E)
02/26/2008 16:54:04,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:04,spid57,Unknown,013AF8D0 Module(sqlservr+003AF8D0)
02/26/2008 16:54:04,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:04,spid57,Unknown,013B0CC7 Module(sqlservr+003B0CC7)
02/26/2008 16:54:04,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:04,spid57,Unknown,013A9DC5 Module(sqlservr+003A9DC5)
02/26/2008 16:54:04,spid57,Unknown,013A9F20 Module(sqlservr+003A9F20)
02/26/2008 16:54:04,spid57,Unknown,01B2E1B9 Module(sqlservr+00B2E1B9)
02/26/2008 16:54:04,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:04,spid57,Unknown,01B24372 Module(sqlservr+00B24372)
02/26/2008 16:54:04,spid57,Unknown,0136A2D8 Module(sqlservr+0036A2D8)
02/26/2008 16:54:04,spid57,Unknown,0149C867 Module(sqlservr+0049C867)
02/26/2008 16:54:04,spid57,Unknown,0170D0CD Module(sqlservr+0070D0CD)
02/26/2008 16:54:04,spid57,Unknown,0170F7E3 Module(sqlservr+0070F7E3)
02/26/2008 16:54:04,spid57,Unknown,0170FB90 Module(sqlservr+0070FB90)
02/26/2008 16:54:04,spid57,Unknown,01702514 Module(sqlservr+00702514)
02/26/2008 16:54:04,spid57,Unknown,010A0F91 Module(sqlservr+000A0F91)
02/26/2008 16:54:04,spid57,Unknown,* Short Stack Dump
02/26/2008 16:54:04,spid57,Unknown,* -------------------------------------------------------------------------------
02/26/2008 16:54:04,spid57,Unknown,* *******************************************************************************
02/26/2008 16:54:04,spid57,Unknown,* SegSs: 00000023:
02/26/2008 16:54:04,spid57,Unknown,* Esp: 6373E24C: 00000004 00000000 6373E544 01702514 00000004 01019094
02/26/2008 16:54:04,spid57,Unknown,* EFlags: 00010206: 0055004E 0042004D 00520045 004F005F 005F0046 00520050
02/26/2008 16:54:04,spid57,Unknown,* SegCs: 0000001B:
02/26/2008 16:54:04,spid57,Unknown,* Ebp: 6373E254: 6373E544 01702514 00000004 01019094 637311EB 042DAD88
02/26/2008 16:54:04,spid57,Unknown,* Eip: 010A0F91: 103B118B B60FCD74 38B60F11 840FD72B 003D5E1C 01B8D285
02/26/2008 16:54:04,spid57,Unknown,* Edx: 042DAD48: 042DAAB8 042DA278 042DAA18 042DAD70 042DAF58 00000001
02/26/2008 16:54:04,spid57,Unknown,* Ecx: 00000004:
02/26/2008 16:54:04,spid57,Unknown,* Ebx: 05E929F8: 01622A98 00000001 00000000 00000000 00000000 00000000
02/26/2008 16:54:04,spid57,Unknown,* Eax: 01019094: 00000000 00000000 00000000 00000000 90909090 55FF8B90
02/26/2008 16:54:04,spid57,Unknown,* Esi: 00000010:
02/26/2008 16:54:04,spid57,Unknown,* Edi: 00000004:
02/26/2008 16:54:04,spid57,Unknown,*
02/26/2008 16:54:04,spid57,Unknown,* dbghelp 64600000 64714FFF 00115000
02/26/2008 16:54:04,spid57,Unknown,* MSDATL3 64450000 64464FFF 00015000
02/26/2008 16:54:04,spid57,Unknown,* sqloledb 643C0000 64440FFF 00081000
02/26/2008 16:54:04,spid57,Unknown,* xpstar90 64390000 643B5FFF 00026000
02/26/2008 16:54:04,spid57,Unknown,* msadcer 64380000 64384FFF 00005000
02/26/2008 16:54:04,spid57,Unknown,* msadce 64320000 64377FFF 00058000
02/26/2008 16:54:04,spid57,Unknown,* OLEDB32R 64300000 64310FFF 00011000
02/26/2008 16:54:04,spid57,Unknown,* MSDART 64060000 64079FFF 0001a000
02/26/2008 16:54:04,spid57,Unknown,* oledb32 63FE0000 64058FFF 00079000
02/26/2008 16:54:04,spid57,Unknown,* odbcint 63FC0000 63FD6FFF 00017000
02/26/2008 16:54:04,spid57,Unknown,* ATL80 7C630000 7C64AFFF 0001b000
02/26/2008 16:54:04,spid57,Unknown,* BatchParser90 63E50000 63E6EFFF 0001f000
02/26/2008 16:54:04,spid57,Unknown,* ODBC32 63E10000 63E4CFFF 0003d000
02/26/2008 16:54:04,spid57,Unknown,* SQLSCM90 63DF0000 63DF8FFF 00009000
02/26/2008 16:54:04,spid57,Unknown,* xpstar90 63D90000 63DD8FFF 00049000
02/26/2008 16:54:04,spid57,Unknown,* msftepxy 63600000 63614FFF 00015000
02/26/2008 16:54:04,spid57,Unknown,* SQLNCLIR 00830000 00862FFF 00033000
02/26/2008 16:54:04,spid57,Unknown,* comdlg32 762B0000 762F8FFF 00049000
02/26/2008 16:54:04,spid57,Unknown,* COMCTL32 77530000 775C6FFF 00097000
02/26/2008 16:54:04,spid57,Unknown,* sqlncli 631D0000 633F3FFF 00224000
02/26/2008 16:54:04,spid57,Unknown,* CLBCatQ 777B0000 77832FFF 00083000
02/26/2008 16:54:04,spid57,Unknown,* xpsp2res 62F00000 631C4FFF 002c5000
02/26/2008 16:54:04,spid57,Unknown,* ntdsapi 766F0000 76703FFF 00014000
02/26/2008 16:54:04,spid57,Unknown,* SAMLIB 7E020000 7E02EFFF 0000f000
02/26/2008 16:54:04,spid57,Unknown,* NTMARTA 77E00000 77E20FFF 00021000
02/26/2008 16:54:04,spid57,Unknown,* wshtcpip 71AE0000 71AE7FFF 00008000
02/26/2008 16:54:04,spid57,Unknown,* hnetcfg 62E60000 62EB9FFF 0005a000
02/26/2008 16:54:04,spid57,Unknown,* dssenh 68100000 68126FFF 00027000
02/26/2008 16:54:04,spid57,Unknown,* imagehlp 76C10000 76C37FFF 00028000
02/26/2008 16:54:04,spid57,Unknown,* WINTRUST 76BB0000 76BDAFFF 0002b000
02/26/2008 16:54:04,spid57,Unknown,* dbghelp 62B00000 62C14FFF 00115000
02/26/2008 16:54:04,spid57,Unknown,* msfte 628A0000 62AF8FFF 00259000
02/26/2008 16:54:04,spid57,Unknown,* security 62210000 62213FFF 00004000
02/26/2008 16:54:04,spid57,Unknown,* rasadhlp 76F80000 76F84FFF 00005000
02/26/2008 16:54:04,spid57,Unknown,* WLDAP32 76F10000 76F3DFFF 0002e000
02/26/2008 16:54:04,spid57,Unknown,* winrnr 76F70000 76F76FFF 00007000
02/26/2008 16:54:04,spid57,Unknown,* DNSAPI 76ED0000 76EF9FFF 0002a000
02/26/2008 16:54:04,spid57,Unknown,* RESUTILS 61DC0000 61DD2FFF 00013000
02/26/2008 16:54:04,spid57,Unknown,* CLUSAPI 61DA0000 61DB1FFF 00012000
02/26/2008 16:54:04,spid57,Unknown,* WSOCK32 71BB0000 71BB8FFF 00009000
02/26/2008 16:54:04,spid57,Unknown,* VERSION 77B90000 77B97FFF 00008000
02/26/2008 16:54:04,spid57,Unknown,* MTXCLU 61D80000 61D98FFF 00019000
02/26/2008 16:54:04,spid57,Unknown,* msvcp60 61D10000 61D74FFF 00065000
02/26/2008 16:54:04,spid57,Unknown,* OLEAUT32 77D00000 77D8AFFF 0008b000
02/26/2008 16:54:04,spid57,Unknown,* MSDTCPRX 61C90000 61D08FFF 00079000
02/26/2008 16:54:04,spid57,Unknown,* XOLEHLP 61C80000 61C85FFF 00006000
02/26/2008 16:54:04,spid57,Unknown,* COMRES 77010000 770D5FFF 000c6000
02/26/2008 16:54:04,spid57,Unknown,* schannel 76750000 76776FFF 00027000
02/26/2008 16:54:04,spid57,Unknown,* cryptdll 766E0000 766EBFFF 0000c000
02/26/2008 16:54:04,spid57,Unknown,* kerberos 61BD0000 61C27FFF 00058000
02/26/2008 16:54:04,spid57,Unknown,* iphlpapi 76CF0000 76D09FFF 0001a000
02/26/2008 16:54:04,spid57,Unknown,* msv1_0 76C90000 76CB6FFF 00027000
02/26/2008 16:54:04,spid57,Unknown,* ole32 77670000 777A8FFF 00139000
02/26/2008 16:54:04,spid57,Unknown,* MSCOREE 34190000 341D4FFF 00045000
02/26/2008 16:54:04,spid57,Unknown,* AUTHZ 76C40000 76C53FFF 00014000
02/26/2008 16:54:04,spid57,Unknown,* rsaenh 68000000 68034FFF 00035000
02/26/2008 16:54:04,spid57,Unknown,* SQLOS 344D0000 344D4FFF 00005000
02/26/2008 16:54:04,spid57,Unknown,* sqlevn70 4F610000 4F7B8FFF 001a9000
02/26/2008 16:54:04,spid57,Unknown,* instapi 48060000 48069FFF 0000a000
02/26/2008 16:54:04,spid57,Unknown,* psapi 76B70000 76B7AFFF 0000b000
02/26/2008 16:54:04,spid57,Unknown,* comctl32 77420000 77522FFF 00103000
02/26/2008 16:54:04,spid57,Unknown,* IMM32 76290000 762ACFFF 0001d000
02/26/2008 16:54:04,spid57,Unknown,* SHLWAPI 77DA0000 77DF1FFF 00052000
02/26/2008 16:54:04,spid57,Unknown,* SHELL32 7C8D0000 7D0CEFFF 007ff000
02/26/2008 16:54:04,spid57,Unknown,* NETAPI32 71C40000 71C96FFF 00057000
02/26/2008 16:54:04,spid57,Unknown,* opends60 333E0000 333E6FFF 00007000
02/26/2008 16:54:04,spid57,Unknown,* USERENV 76920000 769E1FFF 000c2000
02/26/2008 16:54:04,spid57,Unknown,* WS2HELP 71BF0000 71BF7FFF 00008000
02/26/2008 16:54:04,spid57,Unknown,* WS2_32 71C00000 71C16FFF 00017000
02/26/2008 16:54:04,spid57,Unknown,* MSWSOCK 71B20000 71B60FFF 00041000
02/26/2008 16:54:04,spid57,Unknown,* MSASN1 76190000 761A1FFF 00012000
02/26/2008 16:54:04,spid57,Unknown,* CRYPT32 761B0000 76242FFF 00093000
02/26/2008 16:54:04,spid57,Unknown,* GDI32 77C00000 77C47FFF 00048000
02/26/2008 16:54:04,spid57,Unknown,* USER32 77380000 77410FFF 00091000
02/26/2008 16:54:04,spid57,Unknown,* Secur32 76F50000 76F62FFF 00013000
02/26/2008 16:54:04,spid57,Unknown,* RPCRT4 77C50000 77CEEFFF 0009f000
02/26/2008 16:54:04,spid57,Unknown,* ADVAPI32 77F50000 77FEAFFF 0009b000
02/26/2008 16:54:04,spid57,Unknown,* MSVCP80 7C420000 7C4A6FFF 00087000
02/26/2008 16:54:04,spid57,Unknown,* msvcrt 77BA0000 77BF9FFF 0005a000
02/26/2008 16:54:04,spid57,Unknown,* MSVCR80 78130000 781CAFFF 0009b000
02/26/2008 16:54:04,spid57,Unknown,* kernel32 77E40000 77F41FFF 00102000
02/26/2008 16:54:04,spid57,Unknown,* ntdll 7C800000 7C8BFFFF 000c0000
02/26/2008 16:54:04,spid57,Unknown,* sqlservr 01000000 02C09FFF 01c0a000
02/26/2008 16:54:04,spid57,Unknown,* MODULE BASE END SIZE
02/26/2008 16:54:04,spid57,Unknown,*
02/26/2008 16:54:04,spid57,Unknown,*
02/26/2008 16:54:04,spid57,Unknown,* ins(*<c/>'"murte"')
02/26/2008 16:54:04,spid57,Unknown,* teTS<c/> link_kance_doc.ActiveYN FROM link_kance_doc where Conta
02/26/2008 16:54:04,spid57,Unknown,* link_kance_doc.CreateByUser<c/> link_kance_doc.Crea
02/26/2008 16:54:04,spid57,Unknown,* nce_doc.DocExtension<c/> link_kance_doc.KancelID<c/> link_kance_doc.Comments<c/>
02/26/2008 16:54:04,spid57,Unknown,* SELECT link_kance_doc.ID<c/> link_kance_doc.DocName<c/> link_ka
02/26/2008 16:54:04,spid57,Unknown,* Input Buffer 510 bytes -
02/26/2008 16:54:04,spid57,Unknown,* Access Violation occurred reading address 00000004
02/26/2008 16:54:04,spid57,Unknown,* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
02/26/2008 16:54:04,spid57,Unknown,* Exception Address = 010A0F91 Module(sqlservr+000A0F91)
02/26/2008 16:54:04,spid57,Unknown,*
02/26/2008 16:54:04,spid57,Unknown,*
02/26/2008 16:54:04,spid57,Unknown,* 02/26/08 16:54:04 spid 57
02/26/2008 16:54:04,spid57,Unknown,* BEGIN STACK DUMP:
02/26/2008 16:54:04,spid57,Unknown,*
02/26/2008 16:54:04,spid57,Unknown,* *******************************************************************************
02/26/2008 16:54:04,spid57,Unknown,SqlDumpExceptionHandler: Process 57 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
02/26/2008 16:54:04,spid57,Unknown,***Stack Dump being sent to C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLLOGSQLDump0063.txt
02/26/2008 16:54:04,spid57,Unknown,Using 'dbghelp.dll' version '4.0.5'
02/26/2008 16:54:03,Server,Unknown,A user request from the session with SPID 57 generated a fatal exception. SQL Server is terminating this session. Contact Product Support Services with the dump produced in the log directory.
02/26/2008 16:54:03,Server,Unknown,Error: 17310<c/> Severity: 20<c/> State: 1.
02/26/2008 16:54:03,spid57,Unknown,External dump process return code 0x20000001.<nl/>External dump process returned no errors.
02/26/2008 16:54:02,spid57,Unknown,Stack Signature for the dump is 0x28BDEE59
02/26/2008 16:54:02,spid57,Unknown,78132A47 Module(MSVCR80+00002A47)
02/26/2008 16:54:02,spid57,Unknown,781329BB Module(MSVCR80+000029BB)
02/26/2008 16:54:02,spid57,Unknown,010B9201 Module(sqlservr+000B9201)
02/26/2008 16:54:02,spid57,Unknown,010B9064 Module(sqlservr+000B9064)
02/26/2008 16:54:02,spid57,Unknown,010B939C Module(sqlservr+000B939C)
02/26/2008 16:54:02,spid57,Unknown,010B94A5 Module(sqlservr+000B94A5)
02/26/2008 16:54:02,spid57,Unknown,010075DC Module(sqlservr+000075DC)
02/26/2008 16:54:02,spid57,Unknown,010078CC Module(sqlservr+000078CC)
02/26/2008 16:54:02,spid57,Unknown,010077A6 Module(sqlservr+000077A6)
02/26/2008 16:54:02,spid57,Unknown,0102F1F4 Module(sqlservr+0002F1F4)
02/26/2008 16:54:02,spid57,Unknown,01032A36 Module(sqlservr+00032A36)
02/26/2008 16:54:02,spid57,Unknown,01028600 Module(sqlservr+00028600)
02/26/2008 16:54:02,spid57,Unknown,0134752A Module(sqlservr+0034752A)
02/26/2008 16:54:02,spid57,Unknown,01430633 Module(sqlservr+00430633)
02/26/2008 16:54:02,spid57,Unknown,01346B6B Module(sqlservr+00346B6B)
02/26/2008 16:54:02,spid57,Unknown,013A929A Module(sqlservr+003A929A)
02/26/2008 16:54:02,spid57,Unknown,01368BB2 Module(sqlservr+00368BB2)
02/26/2008 16:54:02,spid57,Unknown,013A9BDC Module(sqlservr+003A9BDC)
02/26/2008 16:54:02,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:02,spid57,Unknown,013AFC6E Module(sqlservr+003AFC6E)
02/26/2008 16:54:02,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:02,spid57,Unknown,013AF8D0 Module(sqlservr+003AF8D0)
02/26/2008 16:54:02,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:02,spid57,Unknown,013B0CC7 Module(sqlservr+003B0CC7)
02/26/2008 16:54:02,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:02,spid57,Unknown,013A9DC5 Module(sqlservr+003A9DC5)
02/26/2008 16:54:02,spid57,Unknown,013A9F20 Module(sqlservr+003A9F20)
02/26/2008 16:54:02,spid57,Unknown,01B2E1B9 Module(sqlservr+00B2E1B9)
02/26/2008 16:54:02,spid57,Unknown,013A9A04 Module(sqlservr+003A9A04)
02/26/2008 16:54:02,spid57,Unknown,01B24372 Module(sqlservr+00B24372)
02/26/2008 16:54:02,spid57,Unknown,0136A2D8 Module(sqlservr+0036A2D8)
02/26/2008 16:54:02,spid57,Unknown,0149C867 Module(sqlservr+0049C867)
02/26/2008 16:54:02,spid57,Unknown,0170D0CD Module(sqlservr+0070D0CD)
02/26/2008 16:54:02,spid57,Unknown,0170F7E3 Module(sqlservr+0070F7E3)
02/26/2008 16:54:02,spid57,Unknown,0170FB90 Module(sqlservr+0070FB90)
02/26/2008 16:54:02,spid57,Unknown,01702514 Module(sqlservr+00702514)
02/26/2008 16:54:02,spid57,Unknown,010A0F91 Module(sqlservr+000A0F91)

View 1 Replies View Related

DBCC SHRINKFILE Gives A Severe Error Occurred On The Current Command.

Oct 14, 2007

I am using SQL Server SP 2 on Windows 2003 Server Standard edition:


Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86)
Feb 9 2007 22:47:07
Copyright (c) 1988-2005 Microsoft Corporation
Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)

I have a datbase that's rather large. The log file is 94656 pages, and the data file itself is 94197200 pages. There's only one data file and one log file. The database passes DBCC CHEKCDATABASE with no errors.

When I run DBCC SHRINKDATABASE against the database, the command runs for about twenty seconds then produces this error:


Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.

I can't find anything interesting in the ERRORLOG around the time that I run this command. The error appears if I use the TRUNCATEONLY option or not.

How do I fix this problem?

And in general, why are the engine errors in SQL Server so confusing and not directly actionable?

View 1 Replies View Related

How To Find Client's Hostname Using RDP From MSSQL Command.

Apr 7, 2008

Hi,
Can anyone help, how to find client's hostname using RDP from MSSQL command.
In simple words,
I am connecting to Remote desktop and using MSSQL server management studio in the remote desktop. And when I run select host_name(), it returns the RDP machine name. However, I wish to see my own computer name.
Thanks in advance.
susuown

View 3 Replies View Related

PRINT Command Not Working For Database Client

Jul 20, 2005

Hello,The PRINT command works fine on Query Analyzer.However, when I used it with other Database Client,eg: Aqua Data Studio, nothing got printed out.Is there a way to make it work?Thanks in advance.

View 3 Replies View Related

How To Execute Stored Procedure By Command Line In Client's Computer ?

Nov 28, 2006

I've a S.P. that need to execute in local PC, how can I execute ?

View 1 Replies View Related

Select Current Year ?

Mar 30, 2006

what is the query to find

current year
current month
current day
using sql query analyser

View 4 Replies View Related

Using A Current Row Value In A Nested Select

Jun 3, 2007

I have two tables:

1)table of customers: CustomerName, CustomerId, CustomerAddress
2)table of orders: OrderId, CustomerId, OrderAmount

I would like to have a query that returns everything from the customer table and add one column that has the amount of orders the customer has made, this is what I have so far:

CREATE PROCEDURE dbo.GetAllCutomerInfo
AS

DECLARE @OrderCount int

SELECT CustomerName, CustomerId, CustomerAddress, (SELECT COUNT(OrderId) FROM Cust_Orders WHERE CustomerId= CustomerId)
FROM Customers
ORDER BY CustomerName


Can you add a variable:

CREATE PROCEDURE dbo.GetAllCutomerInfo
AS

DECLARE @CustID int

DECLARE @OrderCount int

SELECT CustomerName, @CustID=CustomerId, CustomerAddress, (SELECT COUNT(OrderId) FROM Cust_Orders WHERE CustomerId= @CustID)
FROM Customers
ORDER BY CustomerName


Thanks for any help.

View 4 Replies View Related

Select 'Current LSN' And 'Transaction ID' From ::fn_dblog

Mar 23, 2006

Gurus,How do I choose multi-name 'columns' like "Current LSN" or "TransactionID" from ::fn_dblog?I CAN select single 'column' names like 'Operation' and 'Context'.I do NOT want all 'columns' returned:- I don't want Select (*) from ::fn_dblogDoug

View 2 Replies View Related

Select No. Of Rows From The Current Database

Jul 19, 2006

Hello,I want to select the names and number of rows of all tables in thecurrent database, whose name starts with 'sys'my query is:select o.[name], sum(i.[rows]) as numbersfrom sysobjects oinner join sysindexes ion (o.[id] = i.[id])where o.[name] like 'sys%'and i.indid=1group by o.[name]the result of the query is (depending of the database) :name numberssysaltfiles 14syscharsets 114syscolumns 4934syscomments 2035sysconfigures 38sysdatabases 7sysdepends 5524sysdevices 6sysfilegroups 1sysfulltextcatalogs 0sysfulltextnotify 0sysindexes 98syslanguages 33sysmessages 3795sysobjects 1285syspermissions 806sysproperties 0sysreferences 0sysservers 1systypes 26sysusers 14sysxlogins 3But when I count the number of rows of "sysobjects", I getnumbers=1298, which is different from the result displayed above andsame goes for "syscolumns".I also tried "dbcc updateusage [0]" to update the SQL Server but Ididnt help me.Can anyone please advice me on this behaviour?

View 2 Replies View Related

Select Records For The Current Logged On User

May 14, 2007

Hi all
I've been having a really difficult time finding out how to run a query which selects records from an SQL database for the current logged on user. I've tried a whole manner of different approaches but here is where I am at now:
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If Not Page.IsPostBack Then
ds_meobservingcolleagues.SelectParameters(0).DefaultValue = User.Identity.Name
End If
End Sub
</script>
 
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ds_meobservingcolleagues">
</asp:GridView>
<asp:SqlDataSource ID="ds_meobservingcolleagues" runat="server" ConnectionString="<%$ ConnectionStrings:StPaulsDatabase %>"
SelectCommand="SELECT [observeTeacher], [observeBy], [observeReason] FROM [Observations] WHERE ([observeBy] = @observeBy)">
<SelectParameters>
<asp:Parameter Name="observeBy" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
 
This is not resulting in any error. But it is not returning the records that it should be either.
Please can anyone help? I'm sure it shouldn't be this difficult to do

View 3 Replies View Related

SELECT From DateTime Field Based On Current Date

Feb 5, 2008

I am trying to match records that are >= the current date. I have tried using:
SELECT DISTINCT name
FROM table
WHERE datefield >= DATEPART(month, GETDATE()) AND datefield >= DATEPART(day, GETDATE()) AND datefield >= DATEPART(year, GETDATE())
ORDER BY name
but this is not giving me the result that I am looking for. What is the best way to match a DateTime field type using the current date without the time?

View 5 Replies View Related

Select Statement To Return Most Current Syscreated Date On Duplicates

Jun 29, 2006

I have a db that has duplicate customer records.

If I run the following select statment against the appropriate table it returns the duplilcate records in the result set. However, from this list I want to add an additional select statement embedded into the query that will actually return only those records with the most current syscreated date.

Example of script I'm using---

select cmp_fadd1, syscreated, cmp_name, cmp_code
from cicmpy
where cmp_fadd1 in (select cmp_fadd1
from cicmpy
group by cmp_fadd1
having count(1) = 2)
order by cmp_fadd1,syscreated desc

The results is:

Address Syscreated date Customer
1622 ONTARIO AVENUE 2005-06-15 22:19:45.000 RELIABLE PARTSLTD
1622 ONTARIO AVENUE 2004-01-22 18:10:05.000 RELIABLE PARTS LTD
PEI CENTER 2006-01-05 22:03:50.000 P.G. ENERGY
PEI CENTER 2004-01-22 17:57:56.000 P.G. ENERGY

From this I want to be able to select ONLY those records with the most current syscreated date or those records with 2005-06-15 and 2006-01-05

Can anyone help me with creating this?

Thanks

Cyndie

View 4 Replies View Related

Select Command

Oct 9, 2006

I'm using the following Select Command:SELECT MAX(Document) AS DOC FROM dbo.Communicator WHERE (ReleaseDate <= { fn NOW() })It shows the most current date in the ReleaseDate column - even if the date is in the future. I don't want it to show future dates. If I change the command to WHERE (ReleaseDate >= { fn NOW() }) it doesn't work at all. I only want it to return one row - the latest releases date that is equal to or less than now.Any ideas?

View 3 Replies View Related

SQL Select Command

May 29, 2007

I have a web form that has textbox1, textbox2 and DropDownList1.  Let’s say textbox one is first name, textbox2 is last name and dropdownlist1 is age. How do I write a query that will select from database table dbo.emoployee where last name = dbo.employee.lastname and all other fields are blank, I want it to return all employees with that last name. If someone types in the last name and selects the age from the drop down list then I want to return all employees where last name = dbo.employee.lastname and age = dbo.employee.age. If someone types in just the first name then I want to return all employees where first name = pub.employees.firstname? I have been trying to do this using the SQLDatasource but cannot seem to figure it out.

View 5 Replies View Related

SQL Select Command

May 29, 2007

I have a web form that has textbox1, textbox2 and DropDownList1.  Let’s say textbox one is first name, textbox2 is last name and dropdownlist1 is age. How do I write a query that will select from database table dbo.emoployee where last name = dbo.employee.lastname and all other fields are blank, I want it to return all employees with that last name. If someone types in the last name and selects the age from the drop down list then I want to return all employees where last name = dbo.employee.lastname and age = dbo.employee.age. If someone types in just the first name then I want to return all employees where first name = pub.employees.firstname? I have been trying to do this using the SQLDatasource but cannot seem to figure it out.

View 3 Replies View Related

Ms Sql Select Command

Jan 11, 2008

I currently have a webpage that allows visitors to post links to their own website.  As a spam filter I want to create a scheduled task that selects repeat entries in the database under the column name domain.  I already made a filter to take everything out of the link the provide and leave it with just the domain name.  I tested it and it works.  Now I need a SQL command to select all the rows with repeats of the domain.  Look at the following table example to better understand what I mean uid            x            y           domain1             100        110          www.spam.com2             100         120        www.spam.com3             110         130         www.homepage.com4             210         220        www.myaspspam.com5             510          560       www.myaspspam.com  in this example I would like 1 and 2 to be selected as well as 4 and 5 into a dataadapter so that I can delete them accordingly. 

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved