SQL Server 2005 Crashing On Write Access - ARGH!

May 30, 2006

Hi,

I'm accessing a pair of databases with ASP/ADO,
and using stored procedures on the first access.

The first access works OK - everything gets written
to where it's supposed to be.

On attempting to write to a pair of database tables
in the second database (second access attempt),
the server crashes, as does the app, and I get the following error:
--------------------------------------------------------------------
Server Error in '/Webfolder01' Application.

Description: An unhandled exception occurred during the execution of
 the current web request. Please review the stack trace for more
 information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
 A transport-level error has occurred when receiving results from the server.
 (provider: Shared Memory Provider, error: 0 - The pipe has been ended.)
--------------------------------------------------------------------


After this, I have to go into the services panel and restart SQL 2005.


This doesn't happen if I use small test data sets in the first access,
and I can comment out the second access attempt, and the first access
executes just fine with both the large and small data sets,
so I'm thinking that this has something to do with synchronisation:
Perhaps the second attempt is being made before the server is ready.

Is there something that I need to do to make certain that SQL 2005
is ready to receive data?

I'm using SqlBulkCopy with both accesses, but I don't see how that
could be a problem.

--------------------------------------------------------------------
[SqlException (0x80131904): A transport-level error has occurred
 when receiving results from the server.
 (provider: Shared Memory Provider, error: 0 - The pipe has been ended.)]
   System.Data.SqlClient.SqlConnection.OnError
(SqlException exception, Boolean breakConnection) +857370
   System.Data.SqlClient.SqlInternalConnection.OnError
(SqlException exception, Boolean breakConnection) +734982
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning
(TdsParserStateObject stateObj) +188
   System.Data.SqlClient.TdsParserStateObject.ReadSniError
(TdsParserStateObject stateObj, UInt32 error) +556
   System.Data.SqlClient.TdsParserStateObject.ReadSni
(DbAsyncResult asyncResult, TdsParserStateObject stateObj) +164
   System.Data.SqlClient.TdsParserStateObject.ReadPacket
(Int32 bytesExpected) +34
   System.Data.SqlClient.TdsParserStateObject.ReadBuffer() +30
   System.Data.SqlClient.TdsParserStateObject.ReadByte() +17
   System.Data.SqlClient.TdsParser.Run
(RunBehavior runBehavior, SqlCommand cmdHandler,
 SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
                     TdsParserStateObject stateObj) +59
   System.Data.SqlClient.SqlBulkCopy.WriteToServerInternal() +1327
   System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServer
 (Int32 columnCount) +916
   System.Data.SqlClient.SqlBulkCopy.WriteToServer
(DataTable table, DataRowState rowState) +176
   System.Data.SqlClient.SqlBulkCopy.WriteToServer(DataTable table) +6
   Database_control.DB_ctrl_class.load_datatable_to_DB_table
(DB_ref_class src_table) in i:Virtual WebfoldersDBctrl.cs:978
--------------------------------------------------------------------


THANK YOU VERY MUCH!!!

View 4 Replies


ADVERTISEMENT

Access 2003 Crashing When Trying To Query SQL 2005 Table.

Nov 9, 2007



Kind of a weird problem. Just migrated some Access tables to SQL 2005 backend. This is only happening on one users machine, WinXP and Access 2003 with the linked tables to SQL 2005. When they try to run a query that has a date criteria, Access will crash. Any other type of criteria, the query works fine. Things I have tried:
1) Installing Office Service Pack 3
2) Repairing Office 2003

Thanks.

View 1 Replies View Related

Events Log Crashing SQL Server 2005

May 24, 2007

i have my SQL server 2005 crashing when Events log is full



I have a hacker attacking my DB with a brut force tool but whereas he does not have the password, event log registers his access attempts as Failure Audit.



I have thousands of lines of "Failure Audit" in my event log



The event logs are set to be overwritten automatically when they reach 16Mb but it's not working correctly, they r not overwriting their content.



in SQL 2005 ERRORLOG file i see:



2007-05-14 01:57:11.57 spid80 Error: 17054, Severity: 16, State: 1.

2007-05-14 01:57:11.57 spid80 The current event was not reported to the Windows Events log. Operating system error = 1502(The event log file is full.). You may need to clear the Windows Events log if it is full.



SQL Agent cannot starts because it's not able to write in the event log that it's starting and when it cannot write in event log, it does not start and my sql server crashed



My Question is simply how to fix this issue once for all

View 3 Replies View Related

SQL Server 2005 Studio Crashing Laptop (BSD)

Jan 31, 2007

I just recently replaced my old HP laptop with a Sony VAIO. I installed all of my development software on it, including SQL Server 2005 and the studio. At some point when I am using the studio on this new laptop, if I try to resize any of the columns to better fit the data, it crashes my laptop. I get the infamous Blue Screen of Death.

The laptop is a Sony Vaio BX670P and it has Win XP SP2 with all of the latest and greatest updates loaded on it.

The BSD blames a driver for causing the crash and points out "win32k.exe" specifically. This has never happened to me before.

Does anyone know why this might be happening?

- - - -
- Will -
- - - -
http://www.strohlsitedesign.com

View 20 Replies View Related

Installing SQL Server 2005 Management Tools - Setup Crashing Repeatedly

Mar 18, 2008

I'm having many many issues installing sql server management tools. i had visual studio 2005 installed first, but uninstalled and sql related things before trying to install sql server management tools again - i also deleted the program files/microsoft sql server/ folder so there are no references.

Firstly the system configuration check gives me a warning that the system doesn't meet the recommended hardware requirements - this is wrong... i've got 2.33Ghz dual core + 1gb of ram...

I select just management tools + client connectivity to install and click next -> the setup support files/native client/owc11 etc all install fine but workstation components etc fail and the setup log appears to either be empty and not available
and MSXML6 fails... after clicking finish the installer appears to crash - : "Microsoft SQL Server 2005 Setup has encountered a problem and needs to close. We are sorry for the inconvenience"... I have tried all sorts of variations on this install and have had no problems in the past - please help!

The setup log from the MSXML6 failure -
=== Verbose logging started: 18/03/2008 12:34:09 Build type: SHIP UNICODE 3.01.4000.4039 Calling process: C:Program FilesMicrosoft SQL Server90Setup Bootstrapsetup.exe ===
MSI (c) (5C:78) [12:34:09:067]: Resetting cached policy values
MSI (c) (5C:78) [12:34:09:067]: Machine policy value 'Debug' is 0
MSI (c) (5C:78) [12:34:09:067]: ******* RunEngine:
******* Product: {AEB9948B-4FF2-47C9-990E-47014492A0FE}
******* Action:
******* CommandLine: **********
MSI (c) (5C:78) [12:34:09:067]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (5C:78) [12:34:09:067]: Grabbed execution mutex.
MSI (c) (5C:78) [12:34:09:067]: Cloaking enabled.
MSI (c) (5C:78) [12:34:09:067]: Attempting to enable all disabled priveleges before calling Install on Server
MSI (c) (5C:78) [12:34:09:067]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (28:E4) [12:34:09:113]: Grabbed execution mutex.
MSI (s) (28:74) [12:34:09:113]: Resetting cached policy values
MSI (s) (28:74) [12:34:09:113]: Machine policy value 'Debug' is 0
MSI (s) (28:74) [12:34:09:113]: ******* RunEngine:
******* Product: {AEB9948B-4FF2-47C9-990E-47014492A0FE}
******* Action:
******* CommandLine: **********
MSI (s) (28:74) [12:34:09:113]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (28:74) [12:34:09:113]: MainEngineThread is returning 1605
MSI (c) (5C:78) [12:34:09:113]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (5C:78) [12:34:09:113]: MainEngineThread is returning 1605
=== Verbose logging stopped: 18/03/2008 12:34:09 ===

The log summary:

Microsoft SQL Server 2005 9.00.1399.06
==============================
OS Version : Microsoft Windows XP Professional Service Pack 2 (Build 2600)
Time : Tue Mar 18 12:05:06 2008

EOC429 : The current system does not meet recommended hardware requirements for this SQL Server release. For detailed hardware requirements, see the readme file or SQL Server Books Online.
Machine : EOC429
Product : Microsoft SQL Server Setup Support Files (English)
Product Version : 9.00.1399.06
Install : Successful
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_SQLSupport_1.log
--------------------------------------------------------------------------------
Machine : EOC429
Product : Microsoft SQL Server Native Client
Product Version : 9.00.1399.06
Install : Successful
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_SQLNCLI_1.log
--------------------------------------------------------------------------------
Machine : EOC429
Product : Microsoft Office 2003 Web Components
Product Version : 11.0.6558.0
Install : Successful
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_OWC11_1.log
--------------------------------------------------------------------------------
Machine : EOC429
Product : Microsoft SQL Server 2005 Backward compatibility
Product Version : 8.05.1054
Install : Successful
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_BackwardsCompat_1.log
--------------------------------------------------------------------------------

SQL Server Setup failed. For more information, review the Setup log file in %ProgramFiles%Microsoft SQL Server90Setup BootstrapLOGSummary.txt.


Time : Tue Mar 18 12:19:20 2008


List of log files:
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_Core(Local).log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_SQLSupport_1.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_SQLNCLI_1.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_OWC11_1.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_BackwardsCompat_1.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_MSXML6_1.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_Datastore.xml
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_.NET Framework 2.0.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_Core.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGSummary.txt
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_.NET Framework 2.0 LangPack.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_.NET Framework Upgrade Advisor.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_.NET Framework Upgrade Advisor LangPack.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_.NET Framework Windows Installer.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_.NET Framework Windows Installer LangPack.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_SNAC.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_Support.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_SCC.log
C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGFilesSQLSetup0001_EOC429_WI.log

View 3 Replies View Related

SQLGetDiagField() Crashing With Access Violation

Feb 15, 2007

After an error trying to connect to a database, I am trying to query the number of status records using SQLGetDiagField() and am getting an access violation? I am trying to open a connection to data in an Excel file using the Excel ODBC driver. Any hints?

View 1 Replies View Related

Help! Site Crashing On Data Access When Busy!

Dec 4, 2007

Clearly, my code isn't written as well as it should be.  I don't understand enough about data access and could use some help.I have several database tables, but one primary table that is the most accessed.  Generally, I need to build a list from the data based on some filter.  I'm using a repeater control, since all I need to display per record is a name, maybe a city or birthday, and possibly a little graphic, and my customer doesn't want a grid type of display.   The filter is determined by the page requested.   The exception is a search page where the user builds the filter and a grid is used to display the results.The results always contain a link to a page that has more detail on the selected record.  What is the best way to handle this?  I'm still trying to get a handle on different ways to get data and I'm not doing much with caching.  Would it make sense to keep the data in memory from the page that displays the list (or search page) to the detail page?  What if the detail page is accessed directly, say from a bookmark?  How do I cache this?I'm currently using strongly typed datasets.Below is an example of what I'm doing - this is from the code behind of one of the list pages - members with birthdays this month.    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load        Dim theMonth As String = DateTime.Now.ToString("MMMM")        Me.LabelMonth.Text = theMonth        Dim MemberAdapter As New WAPTableAdapters.membersTableAdapter        Repeater1.DataSource = MemberAdapter.GetBirthday("Female", DatePart("m", Today))        Repeater1.DataBind()        Repeater2.DataSource = MemberAdapter.GetBirthday("Male", DatePart("m", Today))        Repeater2.DataBind()    End Sub    Protected Sub Repeater1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles Repeater1.ItemDataBound        If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then            Dim LabelIcon As Label = CType(e.Item.FindControl("LabelIcon"), Label)            Dim person As WAP.membersRow = CType(CType(e.Item.DataItem, System.Data.DataRowView).Row, WAP.membersRow)            If System.IO.File.Exists(Server.MapPath("~/images/picts/" & person.FILE2 & ".jpg")) Then                LabelIcon.Visible = True            End If        End If    End Sub     Protected Sub Repeater2_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles Repeater2.ItemDataBound        If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then            Dim LabelIcon As Label = CType(e.Item.FindControl("LabelIcon"), Label)            Dim person As WAP.membersRow = CType(CType(e.Item.DataItem, System.Data.DataRowView).Row, WAP.membersRow)            If System.IO.File.Exists(Server.MapPath("~/images/picts/" & person.FILE2 & ".jpg")) Then                LabelIcon.Visible = True            End If        End If    End Sub It seems pretty simple and straightforward to me, but these pages shouldn't be crashing when the site gets busy, so I have to be doing something wrong. Diane 

View 5 Replies View Related

Putting SQL Server 05 Database On GoDaddy Server. Argh!!!

Apr 5, 2007

I have a simple Website and Database created in VWD exp.




I've just added a windows account to GoDaddy.com.


Unfortunately there is no way to port your database on to the GoDaddy server directly, but it says you must instead, recreate the database by copying and running SQL statements from a file called "personal-add.sql". (their "help" page: http://help.godaddy.com/article.php?article_id=695)


I can't find any such file. Can someone please let me know what I'm missing here?


Thanks.

View 4 Replies View Related

SQL Server 2008 :: Create Authentication Account With Read-write Access To Only 1 Table?

Apr 7, 2015

How can I create a SQL authentication account with read-write access to only 1 table in a SQL database.

View 1 Replies View Related

Routine Crashing Of Visual Studio 2005 When Running Or Editing SSIS

Jun 7, 2006

We have found that it is common for Visual Studio 2005 to crash when editing or running SSIS packages -- from CTP versions through beta versions and including the release version.

Of course we kept hoping that newer releases would become more stable, or at least more robust -- and now I'm hoping there will be a service pack, which might make it more robust?

View 3 Replies View Related

Need To Write From Asp.net To XML Type In SQL Server 2005

Nov 3, 2007

Hello, I have worked with SQL Server 2000 but now we have a requirement where I need to write values from an asp.net form into an XML type in SQL Server 2005.
I have never used XML as a type in SQL Server 2005. How do we write xml into xml type.
For example the structure of XML is something like:
<application>
<applicationID = "value"></applicationID>
<customerName="value></customerName>
</application>
I have to write this kind of XML into the XML type and later retrieve these XML values and populate the form again.
Kindly suggest. Thanks a lot. 
 

View 1 Replies View Related

Help, My Sql Server Keeps Crashing

Jul 30, 2001

I am running SMS ontop of SQL 7. I keep getting these SQL dump files and cant figure out where to begin. Can somebody help and put me on the right path?

2001-07-22 12:08:55.46 spid12 Process ID 12 attempting to unlock unowned resource PAG: 7:1:507423..
2001-07-22 12:13:21.29 spid8 Error: 1203, Severity: 20, State: 1
2001-07-22 12:13:21.29 spid8 Process ID 8 attempting to unlock unowned resource PAG: 7:1:505802..
2001-07-22 15:15:48.20 spid11 Using 'sqlimage.dll' version '4.0.5'
Dump thread - spid = 11, PSS = 0x700634b4, EC = 0x216da084
Stack Dump being sent to D:MSSQL7logSQL02866.dmp
************************************************** *****************************
*
* BEGIN STACK DUMP:
* 07/22/01 15:16:00 spid 11
*
* Input Buffer 417 bytes -
* INSERT INTO Summarizers_Status (SiteCode, MessageDLL, MessageID, Status,
* Updated, GUID_ID) SELECT DISTINCT SiteCode, "SMS_RES1.DLL", 40, (SELECT
* ISNULL(MAX(x.Status), 0) FROM Summarizer_SiteSystem x WHERE x.SiteCode
* = a.SiteCode), (SELECT ISNULL(MAX(x.TimeReported), '1/1/1998 01:00') FRO
* M Summarizer_SiteSystem x WHERE x.SiteCode = a.SiteCode), "{78B42510-ABB
* D-11d1-BB12-3A84C6000000}" FROM Summarizer_SiteSystem a
*
************************************************** *****************************
-------------------------------------------------------------------------------
Short Stack Dump
0x77f67a6b Module(ntdll+7a6b) (ZwGetContextThread+b)
0x00784f83 Module(sqlservr+384f83) (utassert_fail+19f)
0x005b572c Module(sqlservr+1b572c) (ExecutionContext::Cleanup+9d)
0x004eb421 Module(sqlservr+eb421) (ExecutionContext::Purge+45)
0x004eb182 Module(sqlservr+eb182) (stopsubprocess+e5)
0x004e9d4e Module(sqlservr+e9d4e) (subproc_main+174)
0x41092a47 Module(ums+2a47) (ProcessWorkRequests+ec)
0x4109326b Module(ums+326b) (ThreadStartRoutine+138)
0x7800bee4 Module(MSVCRT+bee4) (beginthread+ce)
0x77f04ede Module(KERNEL32+4ede) (lstrcmpiW+be)
2001-07-22 15:16:01.24 kernel SQL Server Assertion: File: <proc.c>, line=1927
Failed Assertion = 'm_activeSdesList.Head () == NULL'.
2001-07-22 15:16:01.31 spid11 Using 'sqlimage.dll' version '4.0.5'
Dump thread - spid = 11, PSS = 0x700634b4, EC = 0x216da084
Stack Dump being sent to D:MSSQL7logSQL02867.dmp

View 1 Replies View Related

Help!! Sql Server Keeps Crashing...

Nov 7, 2000

Help!!!
our sql server (7.0) crashed today because it's running out of space, apparently as a result of some process(es) loading data onto it that left less than one mb of free space on the C/ drive. Most of the data and backups are on the D/ drive which has tons of free space. The swap file was on C/ but the dba moved it after today's episode. His diagnosis is that there are files being created in the server's cache that are clogging it up.
What I really need to find out if there are any temp files generated by scheduled packages that could cause this to happen? We are relatively new to executing jobs on the sql server, so this was not an anticipated situation. Essentially, this server has about 12 jobs that import and transform data from an AS/400 server onto the SQL Server every week. We've been running the jobs for about 4 months and just about 3 weeks ago I noticed a big degradation in the server's performance. Also, how can I find out which physical drive the jobs are residing on? Could anyone suggest on the best course of action please?

Irene
out if there are some sort of temp files that are generated when the scheduler executes jobs on the server.

View 2 Replies View Related

Server Crashing

Apr 3, 2006

Hi All
Last to last friday, the server crashed.We had to restart the machine to bring up the sql server.Initially we thought this as a one odd instance.This friday, almost the same time, it crashed again. By the time users complained saying they are not able to acces the application, the server froze.I was not able to see the processes running during this time.
Now I realised there is a potential problem.
I check all the logs - > SQL Server log, SQL Agent log, Event viewer.
I dont see any error messages related to this.
Since both weekends it happened at the same time, I assume that there might be some job running on the friday evening which is bringing the server down.
I checked for all the scheduled jobs and didnt find anything. So I assume this might be because of some adhoc jobs ran from the application which is causing this issue.
This have been highly escalated by the users and I have to act :mad:
I am planning to put a trace to see the happenings during this time.
Questions
1) What all parameters(in the profiler) should i take into consideration
2) Any other ways of troubleshooting the same.
3) Any whitepapers / documents to similar issues
Plz respond,my job is at stake :(
Thanks
Sree

View 10 Replies View Related

Parameter Greyed Out In Deployment, But Not Preview. Argh!

Mar 9, 2007

I've got a report with several cascading parameters. When I preview the report, everything works fine. However, when I deploy the report, the very first (and thus the rest) of the cascading parameters is greyed out. Any idea what's going on?

I am passing one unrelated parameter into this report, and I also have three non-cascading parameters before this one, but none of them are used in the queries for the cascading parameters. They also appear correctly at the top of the report.

This is rather frustrating since the preview works fine -- making it pretty difficult to debug the issue!

View 3 Replies View Related

Performance To Write Data In SQL Server 2005

May 25, 2007

Dear friends,

A simple question to you... witch of this dataflow destination is better for performance to write data in a SQL Server 2005:



1. SQL Server Destination?

2. OLEDB Destination?

3. Other?



Thanks!

View 1 Replies View Related

Sql Server 2005 Write Error 18210

Dec 18, 2007

I am trying to backup two 40 GB database on server A and server B.

Server A is SAN attached and has 70GB free space for the backup.

Server B is NOT SAN attached and uses a local drive with 113GB free space.

Both backup's result in the same problem. The below is an extract from sql server log file regarding the errors.




Code Block12/18/2007 12:24:01,spid64,Unknown,BackupDiskFile::OpenMedia: Backup device 'H:MSSQL.1BackupfiveDWfiveDWfiveDW_backup_200712181200.bak' failed to open. Operating system error 2(error not found).,
12/18/2007 12:24:01,spid64,Unknown,Error: 18204<c/> Severity: 16<c/> State: 1.,
12/18/2007 12:23:54,Backup,Unknown,BACKUP failed to complete the command BACKUP DATABASE fiveDW. Check the backup application log for detailed messages.,
12/18/2007 12:23:54,Backup,Unknown,Error: 3041<c/> Severity: 16<c/> State: 1.,
12/18/2007 12:23:54,spid64,Unknown,BackupMedium::ReportIoError: write failure on backup device 'H:MSSQL.1BackupfiveDWfiveDWfiveDW_backup_200712181200.bak'. Operating system error 33(error not found).,
12/18/2007 12:23:54,spid64,Unknown,Error: 18210<c/> Severity: 16<c/> State: 1.,


Please note timings in log extract.

All help is appreciated

Thanks, Chris

View 4 Replies View Related

How To Write Batch Program In SQL Server 2005?

Sep 10, 2007



Hello All,
I want to write Batch Program which will insert Data into Table every day based on some conditions.
can anyone please let me know how to write Batch Process in SQL server 2005??
Thanks.

View 5 Replies View Related

Crashing Server - Emergency!!!!!

Mar 22, 2000

Please direct me to detailed causes of SQL server crashing after a 17805 Invalid Buffer Received From Client. Our production server goes down, following this msg.
We applied service pack 5a, and it is still crashing. It crashes using either NAMED PIPES or TCP/IP protocol (via ODBC) The driver versions are older, ODBC 3.0 and SQL Server 2.65, respectively.
I need some direction on this. I'm leaning towards the possibility that this is an application problem.
Any help, any configuration setting changes, upgrades, workarounds, will be accepted. Thank you much!

View 1 Replies View Related

ARGH!!! Can't Pass Smalldatetime To Stored Procedure In DEBUGGER!

Feb 6, 2004

I know this is probably user error, but here's the scoop:

I have a stored procedure...

CREATE PROCEDURE [dbo].[sp_Build_CurrentPortfolio_By_Date]
@NewDate smalldatetime

and when I try to run it in debug in the SQL Query Analyzer, I sent in the parameter via the debug interface as '2004/02/02', and as GETDATE(), and a number of other formats, but cannot even get into the procedure once debugger starts up!

I get the following error once I hit "execute" after putting in the above data in the parameter text box...

[Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification

HELP PLEASE!!! (I'm about to punch my new monitor!!!)

View 2 Replies View Related

Enterprise Manager Crashing SQL Server

Mar 17, 2004

Hi

We're having trouble with Enterprise manager when trying to view views or table data/properties, we get an access violation error and the database crashes sometimes corrupting tables.
Ive seen some posts stating a post SP3 for SQL Server is required and some posts saying client access should be modfied.
However our enterprise manager clients are registered with SA so I dont think that is an issue.
Can anyone give me some help with this and/or direct me to the hotfix please.

Cheers

Louise

View 2 Replies View Related

Server Crashing With Mutiple Database

May 20, 2004

I got a server that Crashed. My network group was able to get it up and running but it's vary fragile. One of the disk is done. What's the best way to get the my database:tables,views,stored procedured,dts packages, jobs off the bad server without crashing it again? I used the databae copy utility but found out that some of the database are replicated and it wont allow it to copy.

Thanks


Just another day in the life of a dba

View 2 Replies View Related

CLR Stored Procedure Crashing SQL Server

Mar 29, 2007

I had the following erroneous code in a SQL Server stored C# procedure:



class P

{

private DateTime? e;

public P(

DateTime? e)

{

this.e= e;

}

public DateTime? E

{

get

{

return E; // correction return e;

}

set

{

E= value; // correction e = value;

}

}

}



Calling the getter of E of the class P creates an infinite number of method calls. This causes the .NET stack overflow. This sometimes caused our SQL crash. Here's the log:



29.3.2007 9:46:08 A fatal error occurred in .NET Framework runtime. The server is shutting down.

29.3.2007 9:46:10 Microsoft SQL Server 2005 - 9.00.2153.00 (X64)

May 9 2006 13:58:37

Copyright (c) 1988-2005 Microsoft Corporation



In my opinion an error in SQL server CLR stored procedure must not be able to crash the whole SQL Server, as it seems to do. Could someone verify this?



What makes finding problems like this problematic is that the only error is like ".NET stack overflow". No pointer to where in the code the error occured. It took hours for me to find the problem

View 11 Replies View Related

Sql Server 2000 Enterprise Manager Crashing

Nov 15, 2000

I've installed the client tools on my notebook, and EM normally works properly. However, sometimes Enterprise Manager will crash on me for no obvious reason(it generates errors, but this takes forever, so i kill it). It is not consistent, nor can I reproduce the error, but it happens about once a day, never at the same time. Anyone else see this? My pc has win2K professional on it.

View 1 Replies View Related

Am Using Sql Server 2005, Column Data Type Is Varchar, How To Write A Query To Sort

Aug 2, 2006

this data. need help
Sort following numbers by asc and desc order

Before query sort
-1.1
-8.8
-15.5
0.0
+0.5
+0.2

Sort asc
+0.5
+0.2
0.0
-1.1
-8.8

Sort Desc
-8.8
-1.1
0.0
+0.2
+0.5












View 5 Replies View Related

Write Conflict In Access 97

Aug 24, 2001

I have a database that has been working in MS Access 97 for a couple of years. I just moved the tables up to our SQL Server (7.0) and now I get "Write Conflict" errors when I try to update certain records. The table has a unique primary key and I have upgraded my MDAC to 2.50. Nothing seems to help.
The records that get the Write Conflict tend to be ones that are the newer ones in the database. Not all records have this problem. I can update the records by going to Enterprise Manager and typing data directly in the tables.
The detail on the error message says "This record has been changed by another user since you started editing it." I am the only one using the database.
Any ideas?

View 3 Replies View Related

Trying To Access SQL SERVER 2005 With Access 2003

Dec 18, 2006



I am trying to connect through ODBC connectivity, but it will not allow me to do so. I have investigated this matter. It leads me back to the server, because as I was configuring my client side database. It kept asking for the DSN(datasource name), but I was unable to choose one because there wasn't one to choose. Which is my current dilemma, How can I do this and have it available to choose from the server to satisfy the Access database?

I went to the domain where the software resides but I don't know what steps to take? I also found an interesting piece on microsoft about Kerberos, but I can't follow along according to the instructions it has. I have Access 2003 & SQL SERVER 2005, HELP...!

Basically, this is right off the heels of the install. I setup the server without the connectivity, but it is running the current configuration.

View 7 Replies View Related

How To Write A T-SQL Script To Replace Val() In MS Access?

Oct 11, 2006

I am converting an MS-Access DB to SQL-Server, and one of the queries I'm
converting uses the VB Val() function in the ORDER BY clause. Is there any
T-SQL function that can mimic this? CAST and CONVERT return errors because
some of the data is non-numeric. The column I am ordering is a varchar(5) with
ID number 'ZZ0001', 'CC0002', 'AA0003' etc . I would like the dataset to be sorted by number only :

'ZZ0001'
'CC0002'
'AA0003'

Thank you

View 7 Replies View Related

Can I Write Multiple 'Select' Queries In Access? Please Help!

Jul 22, 2004

I'm trying to code a query in Access that finds rows w/ duplicate "ContactKeys" then finds duplicate "AddressLine1s" out of the list of duplicate "ContactKeys." (I tried subqueries but it was really slow)

I am trying to create a new table with only duplicate ContactKey rows, and then I wanted to use that table to pick out the duplicate AddressLine1 rows.


Code:


SELECT *
INTO dupContactKeys
FROM Contacts
WHERE ContactKey IN (
SELECT ContactKey
FROM Contacts
GROUP BY ContactKey
HAVING COUNT(*) > 1)

SELECT *
FROM dupContactKeys
WHERE ContactKey IN (
SELECT AddressLine1, Zip
FROM Contacts
GROUP BY AddressLine1, Zip
HAVING COUNT(*) > 1)
ORDER BY ContactKey, TypeKey;

drop table dupContactKeys



This of course doesn't work. Please help, as I am going slightly mad!

View 5 Replies View Related

How To Write Portable Database Access Code?

Jul 20, 2005

I can access Microsoft Access database via ODBC on Windows 2000 usingC++. Now, I would like to use the SAME piece of code to access MS SQLon Windows. Can I achieve this without any modification to my existingcodes?Then, I would like to use the SAME piece of codes to access Oracleon Windows? Is it possible?Thanks in advance!

View 1 Replies View Related

How To Write Sp Into .Net 2005?

Jun 5, 2007

Hi, all!

I need to write sql procs into .net for debugging. When i create SQL DataProject in C# reference i catch a message "SQL server specefied this connection doesn't support managed objects. choose different server". Why? I have sql 2005 standard edition, indeed. But I dare say one remark i have 2 SQL instances on machine (2000 and 2005). so i see trouble in this. does anybode know how to sort out this trouble?
thanks in advance!

View 2 Replies View Related

Access - SQL Server 2005

Jun 5, 2007

I am trying to import a database from Access to SQL Server 2005 and it keeps failing. I don;t want to use anything but the simple screens Microsoft provides for Import/export. Any ideas on how I can make this happened?



- Prepare for Execute (Error)



Messages

Error 0xc0202009: {8A98B034-459D-4200-AD18-555244A05373}: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult: 0x80004005 Description: "Unspecified error".
(SQL Server Import and Export Wizard)


Error 0xc020801c: Data Flow Task: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "SourceConnectionOLEDB" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
(SQL Server Import and Export Wizard)


Error 0xc004701a: Data Flow Task: component "Source 64 - DP_ROUTE_DRIVER" (6918) failed the pre-execute phase and returned error code 0xC020801C.
(SQL Server Import and Export Wizard)


View 3 Replies View Related

MS Access To SQL Server 2005

Nov 9, 2007


I have been wacthing several webcasts, reading blogs and articles and understanding what BI is, especillay ETL and Analysis Services, but somehow have not been able to find a solution to my problem. I have been able to understand most of the Analysis Services part of SQL Server 2005, but need help with taking data from MS Access to SQL Server to create a cube.

I have an MS Access 2003 DB with 4 tables which holds all the data from which I want to generate BI. I have just installed SQL Server 2005 Developer Edition.

Below are my questions:

1. Do I need to first make a new DB in SQL Server 2005 with a star schema and then transfer all the data from Access, or will SQL make a star schema for me when I transfer the data from Access.

2. How does one clean data during the ETL transfer process from Access to SQL. Do SSIS allow the user to do this? How?



thank you for all the help !

View 5 Replies View Related







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