SQL Server Data Access ForumQuestions and discussion about data access to SQL Server using SQL Native Client, OLEDB, ODBC, ADO, WDAC/MDAC, JDBC, or SOAP/HTTP.© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Nov 2009 19:50:50 Z5e806456-f67c-4874-b193-28232add9c53http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4f9a1165-6a5f-4042-85ad-4fcc93f16c21http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4f9a1165-6a5f-4042-85ad-4fcc93f16c21Jimmy Joehttp://social.msdn.microsoft.com/Profile/en-US/?user=Jimmy%20JoeCreating offline OLAP cube with C#.<span style="font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;color:#333333;line-height:16px"> <div class=container style="margin-top:1em;margin-right:2em;margin-bottom:0em;margin-left:4.5em;font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;border:0px initial initial"> <div class=body style="margin-top:0px;margin-right:0px;margin-bottom:2em;margin-left:0px;font-weight:inherit;font-style:inherit;font-family:inherit;overflow-x:auto;overflow-y:auto;padding:0px;border:0px initial initial"><span style="font-weight:inherit;font-style:inherit;font-family:Arial, Helvetica, sans-serif;font-size:14px;border-collapse:collapse;line-height:18px;padding:0px;margin:0px;border:0px initial initial"> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;padding:0px;border:0px none initial">Hello everybody,</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;padding:0px;border:0px none initial">I have a problem with creating an offline OLAP cube from C# using following code:</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;padding:0px;border:0px none initial">using (var connection = new OleDbConnection()) { connection.ConnectionString = &quot;Provider=MSOLAP; Initial Catalog=[OCWCube]; Data Source=C:\temp\test.cub; CreateCube=CREATE CUBE [OCWCube] ( DIMENSION [NAME], LEVEL [Wszystkie] TYPE ALL, LEVEL [NAME], MEASURE [Liczba DESCRIPTIO] FUNCTION COUNT ); InsertInto=INSERT INTO OCWCube([Liczba DESCRIPTIO], [NAME].[NAME]) OPTIONS ATTEMPT_ANALYSIS SELECT Planners.DESCRIPTIO, Planners.NAME FROM Planners Planners; Source_DSN=\&quot;CollatingSequence=ASCII;DefaultDir=c:\temp;Deleted=1;Driver={Microsoft dBase Driver (*.dbf)};DriverId=277;FIL=dBase IV;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=600;SafeTransactions=0;Statistics=0;Threads=3;UserCommitSync=Yes;\&quot;;Mode=Write;UseExistingFile=True&quot;; try { connection.Open(); } catch (OleDbException e) { Console.WriteLine(e); } }</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;padding:0px;border:0px none initial">I keep on getting the following exception:</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;padding:0px;border:0px none initial">&quot;Multiple-step operation generated errors. Check each OLE database status value. No action was taken.&quot;</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;padding:0px;border:0px none initial">I took the connection string literally from OQY file generated by Excel. I had to add &quot;Mode=Write&quot; section, otherwise I was getting another exception (&quot;file may be in use&quot;).</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;padding:0px;border:0px none initial">What is wrong with the connection string? How to diagnose the error? Somebody please guide me...</p> <p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;font-size:14px;vertical-align:baseline;background-image:initial;background-attachment:initial;background-color:transparent;padding:0px;border:0px none initial">Jimmy Joe</p> </span></div> </div> <div class="menu message" style="font-weight:inherit;font-style:inherit;font-family:inherit;background-color:#eeeeee;padding:0px;margin:0px;border:0px initial initial"> <ul class=menu style="font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;padding:0px;margin:0px;border:0px none initial"> <li style="font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;padding:0px;margin:0px;border:0px none initial"><a style="padding-top:0.25em;padding-right:0.5em;padding-bottom:0.25em;padding-left:0.5em;font-weight:inherit;font-style:inherit;font-family:inherit;color:#0066dd;cursor:pointer;text-decoration:none;list-style-type:none;margin:0px;border:0px none initial" title=Reply rel=nofollow name=reply href="http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/835c7e3e-79fe-445c-b945-76cea5117c6b/835c7e3e-79fe-445c-b945-76cea5117c6b/reply"><img class="icon reply" style="font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;height:20px;width:20px;vertical-align:middle;background-position:-100px 0px;background-repeat:no-repeat no-repeat;padding:0px;margin:0px;border:initial none initial" title=Reply src="http://i2.social.microsoft.com/Forums/resources/images/trans.gif?cver=2.7.0030.0" alt=Reply></a></li> </ul> </div> </span>Wed, 25 Nov 2009 19:50:50 Z2009-11-25T19:50:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/e831fb0b-b60e-4ec8-86aa-05ba6d8a1e11http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/e831fb0b-b60e-4ec8-86aa-05ba6d8a1e11Antal István1http://social.msdn.microsoft.com/Profile/en-US/?user=Antal%20Istv%u00e1n1I get 'access denied' when trying to read/write filestream on w2k8 r2.Hi! <div><br/></div> <div>I noticed in our developer enviroment that all of our sql servers installed on windows 2008 r2 reject all read or write filestream operation through ado.net.</div> <div>We get a simple 'Access denied' security exception from remote machines.</div> <div>Locally (directly on the server) our test works fine.</div> <div><br/></div> <div>We are using windows authentication, permissions and filestream 'things' are configured properly.</div> <div><br/></div> <div>All of our developer sql sever patched to sp1 and cu5.</div> <div><br/></div> <div>This problem reproducable with sql 2k8 r2 too.</div> <div><br/></div> <div>Only one thing what i can see that the share in the server manager console signed with red x.</div> <div><br/></div> <div> <div>With same SQL configuration everything working fine on w2k8 or any other windows os. </div> <div><br/></div> <div>Any suggestion?</div> </div>Wed, 25 Nov 2009 19:35:33 Z2009-11-25T19:35:34Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/d9a5aa2d-43b8-4671-a61b-ce99974025f4http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/d9a5aa2d-43b8-4671-a61b-ce99974025f4jjparkhttp://social.msdn.microsoft.com/Profile/en-US/?user=jjparkconnection pooling <br/>I'm trying to configure connection pooling for SQL Server 2005. The client program is written in C++ and using ADO 2.81 (not ADO.NET) and SQL Native Client 9.0.<br/>My connection string looks something like this:<br/>&quot;Provider=SQLNCLI;Data Source=xxx;Failover Partner=xxx;Initial Catalog=xxx;User Id=xxx;Password=xxx;Pooling=yes;Max Pool Size=2;Min Pool Size=2;&quot;<br/><br/>When my client program tries to create the third connection, it creates the connection without an exception. I was expecting an exception because I set the max pool size to 2. <br/><br/>When look at MASTER.DBO.SYSPROCESSES table, I see 3 connection open. <br/><br/>When the client program closes all 3 connections, MASTER.DBO.SYSPROCESSES table shows no open connection. Again, I was expecting 2 connections to stay connected even after the connection is closed from the client side. <br/><br/><br/>Could someone help me understand why the connection pooling isn't working as I expected?<br/>thanks.<br/>Wed, 25 Nov 2009 18:52:11 Z2009-11-25T18:52:12Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/1df586f5-d693-438d-a8ae-7ead01ed7bc3http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/1df586f5-d693-438d-a8ae-7ead01ed7bc3Ted Cooperhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ted%20CooperSQL 2K Simple Stored Procedure Times Out when Called by .Net Web SiteOur web server makes a call to a stored procedure and that .NET code says that the proc timed out after 30 seconds.<br/> <br/> Here is what the procedure does:<br/> <br/> SELECT NEWID() AS 'SessionID'<br/> <br/> Seriously - that's all it does.<br/> <br/> Am I blind or is this a hardware issue? If so how can I investigate to show the culprit?<br/> <br/> No data is written or read from the database.<br/> <br/> TIAMon, 23 Nov 2009 06:00:01 Z2009-11-25T17:02:29Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/7182145d-c571-4e61-baca-b166daa886dbhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/7182145d-c571-4e61-baca-b166daa886dbBala.ausihttp://social.msdn.microsoft.com/Profile/en-US/?user=Bala.ausiSQL Server DIFF Backup<p>Hi all,<br/><br/>Could any one please help me on below error - Differntial Backup is getting failed.<br/>OS- Windows 2003 Enterprise Edition - 32 bit<br/>Physical server<br/><br/><strong>Event Type: Warning<br/>Event Source: SQLSERVERAGENT<br/>Event Category: Job Engine <br/>Event ID: 208<br/>Date:  24/11/2009<br/>Time:  12:17:50 AM<br/>User:  N/A<br/>Computer: KNPC<br/>Description:<br/>SQL Server Scheduled Job 'Databases - DIFF Backup Plan' (0x6A705D374EBF7142AC99D60D89ED15DF) - Status: Failed - Invoked on: 2009-11-24 00:05:02 - Message: The job failed.  The Job was invoked by Schedule 221 (Daily, Except Sunday).  The last step to run was step 2 (DIFF Backup of ALL Databases).</strong></p> <p><strong>For more information, see Help and Support Center at </strong><a href="http://go.microsoft.com/fwlink/events.asp"><strong><span style="color:#0033cc">http://go.microsoft.com/fwlink/events.asp</span></strong></a><strong>.<br/><br/><br/>Event Type: Error<br/>Event Source: MSSQLSERVER<br/>Event Category: (2)<br/>Event ID: 17055<br/>Date:  24/11/2009<br/>Time:  12:17:46 AM<br/>User:  KNPC\KNWWsql<br/>Computer: KNPC<br/>Description:<br/>18210 :<br/>BackupMedium::ReportIoError: read failure on backup device 'VDI_F5047433-F004-4C1D-A6C4-F5427DC53656_1'. Operating system error 995(error not found).</strong></p> <p><br/><strong>For more information, see Help and Support Center at </strong><a href="http://go.microsoft.com/fwlink/events.asp"><strong><span style="color:#0033cc">http://go.microsoft.com/fwlink/events.asp</span></strong></a><strong>.<br/>Data:<br/>0000: 22 47 00 00 10 00 00 00   &quot;G......<br/>0008: 06 00 00 00 4a 00 55 00   ....K.N.<br/>0010: 4d 00 42 00 4f 00 00 00   P..C....<br/>0018: 00 00 00 00               ....    <br/></strong><br/>Thanks,<br/>Bala.</p>Wed, 25 Nov 2009 12:23:53 Z2009-11-25T16:42:57Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/163c4dde-08a6-4a4e-8b3b-30168883086bhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/163c4dde-08a6-4a4e-8b3b-30168883086bFredEWebhttp://social.msdn.microsoft.com/Profile/en-US/?user=FredEWebCannot create new user using createuserwizard using IE <p>I created a website using the latest version of visual web developer and SQL Express.  Everthing works fine when I run the website from the developer, but when I run it from the explorer and try to create a new user account using the createuserwizard control, it tells me that the SQL database is in read-only mode.<br/><br/>I'm running Windows XP Pro, Service Pack 2 and IIS.<br/><br/>Let me know if you need more info.</p>Wed, 25 Nov 2009 15:34:11 Z2009-11-25T15:34:13Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/c17290d9-b423-443b-a2ce-f9150e98329chttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/c17290d9-b423-443b-a2ce-f9150e98329casm_2_hexhttp://social.msdn.microsoft.com/Profile/en-US/?user=asm_2_hexConnecting and send data to SQL server in 'C'Hello,<br/> <br/> I'm looking for any type of info that can be given on this subject.<br/> <br/> Thanks,<br/> -A2HSun, 22 Nov 2009 06:22:30 Z2009-11-25T07:14:43Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4008f38b-b30e-43d1-9cc0-e8a6761e4ddbhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4008f38b-b30e-43d1-9cc0-e8a6761e4ddbMankeer C-Sharp Programmerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mankeer%20C-Sharp%20ProgrammerDatabase connection, c# application.Hi All,<br/> <br/> I want to build an application that connects a client c# application to a database that are allocated in a server. I don't know how can I connect my application to the database, furthermore in the deployment process Do I need any configuration for the DB server?<br/> <br/> RegardsMon, 23 Nov 2009 06:55:15 Z2009-11-25T06:52:54Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4aae9a1f-dff2-4b3d-a016-f7155e634ae8http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4aae9a1f-dff2-4b3d-a016-f7155e634ae8Lubos Hladikhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lubos%20HladikConnect SQL Server from WinForms - Windows Authentication Mode<div class=container> <div class=body><span style="font-size:10pt;font-family:'Arial','sans-serif';color:#1f497d">H</span> i,<span style="font-size:10pt;font-family:'Arial','sans-serif';color:#1f497d"><br/> <br/> is there a way <strong>how to connect to SQL Server from Windows Forms</strong> in C#, when <strong>Windows Authentication Mode</strong> is set in SQL Server and client (application) runs on a computer <strong>not in a domain</strong> ?<br/> <br/> </span> <span style="font-size:10pt;font-family:'Arial','sans-serif';color:#1f497d">Can I use some impersonation? I tried to use LogonUser() from advapi32.dll, but it doesn't work, when computer is not in a domain :(</span> <span style="font-size:10pt;font-family:'Arial','sans-serif';color:#1f497d"><br/> <br/> Thanks</span></div> </div>Fri, 20 Nov 2009 12:39:23 Z2009-11-25T04:38:26Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/775bef43-2a30-4adc-9f64-11143808a4e2http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/775bef43-2a30-4adc-9f64-11143808a4e2Jim Buckhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jim%20BuckSQL STATE 22003: Numeric value out of range" with TIME datatype of SQL server 2008Someone has asked a similar question (same topic) but the answers don't seem to help me.<br/> <br/> The C++ application I'm working has an MS Access database (accessed via ODBC) that has been converted (using Full Convert) to SQL Server 2008.  Note this is the free SQL &quot;Express&quot; version of SQL Server 2008.  So I have this one table that can be updated just fine in MS Access but in SQL Server it cannot.<br/> <br/> I get this error in the topic heading (22003).  It's definitely happening on one of the data column.  I can *read* the dates in the table into the C structures just fine -- they end up nicely in the TIMESTAMP_STRUCT.  Everything looks fine in the the debugger -- I do not see anything out of whack when I go to update -- like negative dates or anything.   I assume using ODBC is still the right approach, but perhaps I'm wrong.  <br/> <br/> <br/> I'm stuck!  Help!Fri, 20 Nov 2009 01:58:23 Z2009-11-25T04:22:51Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/fcedb0fb-0686-4d77-a093-2561eb21abc9http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/fcedb0fb-0686-4d77-a093-2561eb21abc9hotblack944http://social.msdn.microsoft.com/Profile/en-US/?user=hotblack944MFC ADO application slow when connected via OLE DB Provider for SQL Server, fast when connected via SQL Server Native Client 10.0<p>Hi,<br/><br/>I have an evaluation version of SQL Server 2008 installed on Windows Server 2008 (32 bit) and have created a brand new database (which is very small) for my application to use.  The app is MFC using ADO Active X controls.<br/><br/>I noticed that it appeared to run very slowly, typically taking several seconds to populate grids.<br/><br/>After a bit of poking around, I changed the OLE DB Provider it connects with from &quot;Microsoft OLE DB Provider for SQL Server&quot; to &quot;SQL Server Native Client 10.0&quot; and the performance was back to normal, populating grids instantaneously.<br/><br/>Here are the connection strings for each case - slow:<br/><br/>Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ControllerServerB;Data Source=.;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=CS2008;Use Encryption for Data=False;Tag with column collation when possible=False<br/><br/>Fast:<br/><br/>Provider=SQLNCLI10.1;Integrated Security=SSPI;Persist Security Info=False;User ID=&quot;&quot;;Initial Catalog=ControllerServerB;Data Source=.;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=CS2008;Initial File Name=&quot;&quot;;Use Encryption for Data=False;Tag with column collation when possible=False;MARS Connection=False;DataTypeCompatibility=0;Trust Server Certificate=False<br/><br/>Can anyone explain this difference in speed?<br/><br/>I have another non-MFC application that accesses the database using ADO that also runs slowly (connects with Driver={SQL Server}), but I can't change the connection string for that without changing the source code, which I am loath to do until I understand the problem.<br/><br/>Thanks,<br/><br/>Jim.<br/><br/><br/><br/></p>Thu, 19 Nov 2009 11:07:14 Z2009-11-25T04:14:23Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/a4a15421-b96a-4b6e-8cb8-8211b8b96f05http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/a4a15421-b96a-4b6e-8cb8-8211b8b96f05Trumpyhttp://social.msdn.microsoft.com/Profile/en-US/?user=TrumpyMS Access ADP projects need to be able to use SQL Native ClientMicrosoft, PLEASE update the Access ADP platform to be able to connect to SQL Server 2005 using the SQL Native Client.  ADP is a great in-house development platform, but MS seems to have decided to stop supporting it.<br/><br/>The problem is, the sql ole db driver that the ADP projects use, cause problems when querying complicated views or stored procedures on SQL Server 2005.  Queries that worked great under SQL Server 2000, time out under 2005.  When run directly on the server, there is no problem.  When they are run from the ADP file, the execution plan of the query is totally messed up.  I watched what SQL Server 2005 does with tracing, it's running certain segments of the query over and over.<br/><br/>If I run that same query in Access, through an ADO connection, where I specify the Native Client as the provider, then I don't have that problem, which proves that the problem is the old SQL OLE DB driver. So we need the project's default connection needs to be work properly with SQL Server 2005.Wed, 25 Nov 2009 00:38:33 Z2009-11-25T00:38:33Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/347415a8-699d-45db-a4ee-b48813da6e0fhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/347415a8-699d-45db-a4ee-b48813da6e0fglnprvnhttp://social.msdn.microsoft.com/Profile/en-US/?user=glnprvnData ransfer from different filegroups..Hi,<br/><br/>&quot;I need to migrate individual tables from different filegroups into a single file group in a database&quot;.<br/><br/>Thanks in Advance,<br/><br/>Regards,<br/>PrvnTue, 24 Nov 2009 06:14:46 Z2009-11-24T23:24:11Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/48ee7b1a-0038-4b64-b957-136887fcb014http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/48ee7b1a-0038-4b64-b957-136887fcb014Manrippohttp://social.msdn.microsoft.com/Profile/en-US/?user=ManrippoUsing collation for international languag other than EnglishThe SQL 2005 server has &quot;SQL_Latin1_General_CP1_CI_AS&quot; as default collation to have english characters.<br/>I am trying to input &quot;Korean&quot; language into the database, and then now I see funny &quot;???&quot; character after I insert a data.<br/><br/>What is my option to use Korean character on my database?<br/>Should I create whole new database?<br/><br/>Thanks.Sat, 07 Nov 2009 22:16:34 Z2009-11-24T22:52:55Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/13403148-5f4e-4055-833b-d5d77692eebdhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/13403148-5f4e-4055-833b-d5d77692eebdKraftsmanshiphttp://social.msdn.microsoft.com/Profile/en-US/?user=KraftsmanshipDesktops are working great using OLE DB, but how do you connect SQL Server 2005 to MS Access on Tablet PCs used in the field?Hi,<br/> <br/> I haven't been able to find any direct advice on this so far. <br/> <br/> I am converting an Access 2003 database that was divided into a front end and back end.  The back end has replicated tables that were used by the Access front end to synchronize to a similar Access application used by field persons on tablet PCs. <br/> <br/> I un-replicated the backend and moved it to SQL Server 2005, so the Access front end on the desktop works smoothly with the SQL Server backend.  The  desktop pcs using Access are connecting to the SQL Server using OLE DB linking that is checked and maintained by ADOX code.<br/> <br/> The next step as I see it is to find out how best to replicate from the SQL Server 2005 backend to the tablet pcs using Access.  These tablet pcs aren't connected the whole time so they need to use replication and can't use linked tables.<br/> <br/> Does anyone have any suggestions?<br/> <br/> Thanks for your help<br/> <br/> Alex<br/> <br/>Tue, 24 Nov 2009 18:19:53 Z2009-11-24T18:19:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/7b719395-915d-415c-b1ce-9a2476830431http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/7b719395-915d-415c-b1ce-9a2476830431freddyccixhttp://social.msdn.microsoft.com/Profile/en-US/?user=freddyccixDamn this (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)<p align=left><font face=Arial size=2></font> </p> <div class=CommentText3> <p>Well my problem is this error message Message=&quot;A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)&quot;</p> <p align=left> </p> <p>but :</p> <p align=left> </p> <p>-can't connect to SqlServer Express 2005 on my network server from my application while ITS RUNNING. What I mean is that when I use Server Explorer Window on VS2008 every thing is fine (I can even insert and modify data from server explorer), in fact, when I use Datatables and I choose to preview data through TableAdapters (Design Time) I get data, and also can run the queries from there directly to the data base, but when I'm debbugin the application I get this error.</p> <p align=left> </p> <p>-when I run Sql Server Management Studio, its also fine, even though I can't see the Sql instance on the server (or any of my partners machine) when I try to browse them. But if I type the server path (servername\instancename) everything is OK.</p> <p align=left> </p> <p>-I know the problem is not the connection string 'cause mya partners nd I use the same one to connect to the server, and no one has this problem.</p> <p align=left> </p> <p>-also tried to shut down my firewall and the server's also, and nothing.</p> <p align=left> </p> <p>-ok here are the specs for both, server and client pc:</p> <p align=left> </p> <p>  SERVER:</p> <p>*Running Windows Server 2008 64 bits</p> <p>*Sql Server Express 2005 SP2 x86 (WOW)</p> <p>  Client:</p> <p>*Running Windows Vista Ultimate SP1 64 bits</p> <p>*Sql Server Express 2005 SP2 x86 (WOW)</p> <p>*Sql server 2008 Enterprise 64 bits</p> <p>*VS 2008 Team Suite.</p> <p>  Everyone Else:</p> <p>*Windows Vista ultimate 32 bits</p> <p>*Sql Server Express 2005 SP2 </p> <p>So can you help me?? please, I'm working localy only, so is a pain doing this</p></div>Mon, 27 Oct 2008 19:44:37 Z2009-11-24T17:16:29Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/5638c786-eca4-4db5-9b79-23d6dd722c4ahttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/5638c786-eca4-4db5-9b79-23d6dd722c4aSteve Hempenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Steve%20HempenCan't run SSIS package from a batch file<p>I am trying to run an SSIS package from a batch file with this code:<br/><br/>echo<br/>d:<br/>cd \DTSPacks<br/>dtsrun /MyServer /E /N Eval_Emp_Info.dtsx<br/>pause<br/>cd\<br/>echo off<br/><br/>I get this error:<br/><br/><br/>Error:  -2147467259 (80004005); Provider Error:  17 (11)<br/>   Error string:  [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exi<br/>st or access denied.<br/>   Error source:  Microsoft OLE DB Provider for SQL Server<br/>   Help file:<br/>   Help context:  0</p> <p>Any help is appreciated.  I'm a rookie at this.<br/><br/>Thanks,<br/><br/>Steve</p><hr class="sig">SteveTue, 03 Nov 2009 22:05:30 Z2009-11-24T10:51:19Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/d2da67e2-01bd-4c19-a5a6-10df6d5f63a5http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/d2da67e2-01bd-4c19-a5a6-10df6d5f63a5Add-Onhttp://social.msdn.microsoft.com/Profile/en-US/?user=Add-OnHow to optimize mysql subquery performance?Dear All,<br/><br/>     I have subquery like this<br/><span style="color:#800000;font-size:x-small"><span style="color:#800000;font-size:x-small"> <p>SELECT col1,col2,col3,col4,col5 FROM tablename as m WHERE col3 =(SELECT MAX(col3)FROM tablename WHERE col1 = m.col1)ORDER BY col1<br/><br/>here col3 as date column<br/><br/>Here my table contains around 7000000 records<br/><br/>But it was taking too much time to execute this subquery. And also we have created index for col1 and col3. And we have used dataset and datareader for load the data. But the query was taking more time to execute. And we have tried with limit command also but there is no use. <br/><br/>How to increase the execution performance of the subquery?. I need to fill all the results into dataset or datareader with in seconds (with less time).<br/> <br/>We are using C# with MYSQL database.<br/><br/>Any help must be appreciated.<br/><br/>Thanks &amp; Regords<br/>Jayaram</p> </span></span>Mon, 23 Nov 2009 06:52:59 Z2009-11-24T10:08:30Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/73ca4a2c-6732-4a03-89b1-078b5a030340http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/73ca4a2c-6732-4a03-89b1-078b5a030340Anand.Ranganathanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Anand.RanganathanTransactionScope Object Calling a Stored Proc that has its own transaction , Will this work ? I have a fairly simple question on using System.Transactions namespace : <br/><br/>   using(TransactionScope tx= new TransactionScope())<br/>  {<br/>     //Some Logic here <br/>    ...Calls a Stored Procedure called InsertNewCustomer()<br/>   //If success<br/>  tx.Commit();<br/>  }<br/><br/>and inside InsertNewCustomer : <br/><br/> Create Procedure InsertNewCustomer<br/>as<br/>Begin <br/><br/>  BEGIN TRAN <br/>   /* Some Logic here <br/>  */<br/>  COMMIT TRAN <br/> <br/>End <br/><br/><br/>Will this work from the Dataaccess layer code if my .net application I start a TransactionScope within which if i call a stored proc that implements its own transaction . Will this work ???<br/><br/>If yes or no pls give some reasons around your posts .. I'm trying to understand the underlying mechanics  ....<br/><br/><br/>Thanks for your help/time ....<br/><br/>AnandThu, 12 Nov 2009 18:23:19 Z2009-11-24T04:04:40Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4909e395-7aa0-47bd-8a48-00d309248356http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4909e395-7aa0-47bd-8a48-00d309248356john_tighttp://social.msdn.microsoft.com/Profile/en-US/?user=john_tigproblem with foxpro table data in sql linked serveri created a linked server to a foxpro free table folder. so far i can run select queries any of the tables just fine . <br/>the first problem i've noticed is after the foxpro application makes changes to the data .... i cant see the changes to the table data on my linked server .... all the data i see is like a snapshot of the data at the time the linked server was created.<br/><br/>i need to have complete access to the tables from foxpro and ms sql.<br/><br/>Ms-sql2008 on server2k3 dc<br/>i dont know the exact foxpro version as it is part of an application we use here.<br/><br/>i created the linked server with this sql statement.<br/><br/><span lang=EN> <p>EXEC sp_addlinkedserver</p> <p>@srvproduct='',</p> <p>@server='Reservations',</p> <p>@provider='VFPOLEDB',</p> <p>@datasrc='D:\Web_data\Disp\'</p> </span><br/><br/><br/>can someone please help me out hereMon, 23 Nov 2009 03:05:02 Z2009-11-24T18:59:41Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/bc6911e8-36b0-4db3-aa2b-3814943ddba6http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/bc6911e8-36b0-4db3-aa2b-3814943ddba6Rickshawrentalshttp://social.msdn.microsoft.com/Profile/en-US/?user=Rickshawrentals10/09 Security Update Hinders OLE DB connectivity ?<p>HI.  I'm not sure if this is the right spot for this question, but couldn't find any place that appeared &quot;closer&quot;....I have had a stored procedure that has run for the last 3-4 years without fail.  It creates a linked server to an XLS spreadsheet (97-2000) and imports the data and does other &quot;stuff&quot; to create a phone list table that is then served up on our portals.<br/>There has been no code change, no XLS location change -- no user who runs it &quot;change&quot;.  However, after our netadmin put on all of the security patches for october, the process will not make the connection to the XLS and create the table any longer.<br/>It is possible, of course, that this is a coincidence, but it's making me crazy, as I can't find anything that indicates &quot;something&quot; changed w/ the permissions -- which I'm guessing it must be....<br/><br/>The code which has been working w/o fail (until now) :<br/>EXEC sp_addlinkedserver N'PhoneExcelLink', <br/>@srvproduct = N'Jet 4.0', <br/>@provider =N'Microsoft.Jet.OLEDB.4.0', <br/>@datasrc = N'\\UNC Path To the File\Phone.xls',   <br/>@provstr = N'Excel 8.0;'<br/>GO</p> <p>EXEC sp_addlinkedsrvlogin 'PhoneExcelLink', 'false','domain\username', NULL, NULL<br/>GO</p> <p>EXEC sp_addremotelogin 'PhoneExcelLink', '--username--', '--password--'<br/>GO</p> <p>DECLARE MenuTC Cursor Static For<br/> select  *   FROM OPENQUERY(PhoneExcelLink, 'select *  from [Sheet1$]') <br/>Open MenuTC</p> <p>I've tried the stored procedure, as well as running it in SQL itself, under my own login, which has admin rights both for SQL, as well as the network (NTFS).  It fails regardless.<br/>Obviously <em>something</em> has changed since the process was last run on 10/1 ......and I'm theorizing it is <em>permissions</em> -- but I can't see what....<br/>and I can't seem to find anything in the description of the last security update that indicates anything might have changed for SQL server, its connectivity or general &quot;permissions&quot;.....<br/><br/>if anyone has any ideas, I'd be grateful !<br/>Thanks !<br/><br/>Kristi</p>Fri, 20 Nov 2009 16:05:32 Z2009-11-23T19:15:37Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/40c21e17-72cf-4391-b555-4025ac0f1c61http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/40c21e17-72cf-4391-b555-4025ac0f1c61zipitllchttp://social.msdn.microsoft.com/Profile/en-US/?user=zipitllcWhy, after importing a database into SQL 2008 can I not delete new records from a table in an Access interface over obdc? I get a 3197 error.<p>In a new SBS 2008 premium installation I imported a database onto the addictional SQL server.  After a few problems were resolved with Null fields and primary keys everything seems to be working fine except when we go to delete records from a table that were added since the migration I get a 3197 error. Deleting records that were in the original db prior to the migration works fine. I tried an new Access interface with newly linked tables with the same results. The new records cannot be deleted using a form nor from the linked table.  However, the records can be deleted using a delete query from a client as well as at the server. </p>Thu, 19 Nov 2009 21:09:01 Z2009-11-23T16:46:08Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/6d231ff1-ceb6-49d3-851c-a4c446685d17http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/6d231ff1-ceb6-49d3-851c-a4c446685d17Roger Rowehttp://social.msdn.microsoft.com/Profile/en-US/?user=Roger%20RoweProblem with Linked Server and Microsoft.ACE.OLEDB.12.0Hello,<br/><br/>I've seen variants of this question posted, but no answer that works for me. I need to read entries in a Sharepoint List with SQL. I know how to access the UserData table directly, but I also know this is not supported. So, trying to use Microsoft.ACE.OLEDB.12.0 for this and using the following to set up a linked server:<br/><br/><span style="color:#800000"><span style="color:#800000"><span style="color:#800000"><span style="color:#800000"><span style="color:#800000"><span style="color:#800000"><span style="color:#800000"><span style="color:#800000"> <p>sp_addlinkedserver <span style="font-size:x-small">@server </span><span style="color:#808080"><span style="color:#808080">=</span></span><span style="color:#ff0000"><span style="color:#ff0000">'RAIDLISTS'</span></span><span style="color:#808080"><span style="color:#808080">, </span></span><span style="font-size:x-small"><span style="font-size:x-small">@srvproduct</span></span><span style="color:#808080"><span style="color:#808080">=</span></span><span style="font-size:x-small"> </span><span style="color:#ff0000"><span style="color:#ff0000">'OLE DB Provider for ACE'</span></span><span style="color:#808080"><span style="color:#808080">, </span></span><span style="font-size:x-small"><span style="font-size:x-small">@provider</span></span><span style="color:#808080"><span style="color:#808080">=</span></span><span style="color:#ff0000"><span style="color:#ff0000">'Microsoft.ACE.OLEDB.12.0'</span></span><span style="color:#808080"><span style="color:#808080">,<br/></span></span><span style="font-size:x-small"><span style="font-size:x-small">@provstr</span></span><span style="color:#808080"><span style="color:#808080">=</span></span><span style="color:#ff0000"><span style="color:#ff0000">'FMT=Delimited;WSS;HDR=NO;IMEX=2;DATABASE=http://tulam03;LIST={00860C9D-8F42-49C2-A6B4-84EBFC84EDC9};VIEW=;RetrieveIds=Yes'<span style="color:#808080"><span style="color:#808080">,</span></span><span style="color:#ff0000"><span style="color:#ff0000">'SELECT * FROM list'</span></span><span style="color:#808080"><span style="color:#808080">)</span></span></span></span></p> <p><span style="font-size:x-small">I've also tried this:<br/><span style="color:#0000ff"><span style="color:#0000ff"><br/>SELECT</span></span><span style="font-size:x-small"> </span><span style="color:#808080"><span style="color:#808080">*</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff"><span style="color:#0000ff">FROM</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff"><span style="color:#0000ff">OPENROWSET </span></span><span style="color:#808080"><span style="color:#808080">(</span></span><span style="color:#ff0000"><span style="color:#ff0000">'Microsoft.ACE.OLEDB.12.0'</span></span><span style="color:#808080"><span style="color:#808080">,<br/></span></span><span style="color:#ff0000"><span style="color:#ff0000">'WSS;HDR=NO;IMEX=2;DATABASE=http://tulam03;LIST={00860C9D-8F42-49C2-A6B4-84EBFC84EDC9};VIEW=;RetrieveIds=Yes'</span></span><span style="color:#808080"><span style="color:#808080">,<br/></span></span><span style="color:#ff0000"><span style="color:#ff0000">'SELECT * FROM list'</span></span><span style="color:#808080"><span style="color:#808080">)<br/><br/><span style="color:#000000">In the first case, the linked server is established, but when I try to access the list, I get the following message:<br/><br/>Cannot initialize the datasource object of OLE DB Provider &quot;Microsoft.ACE.OLEDB.12.0&quot; for linked server &quot;RAIDLISTS&quot;. (Microsoft SQL Server, Error: 7303).<br/><br/>In the second case, I get the similar message:<br/><br/><span style="font-size:xx-small">OLE DB provider &quot;Microsoft.ACE.OLEDB.12.0&quot; for linked server &quot;(null)&quot; returned message &quot;Unspecified error&quot;.<br/>Msg 7303, Level 16, State 1, Line 1<br/>Cannot initialize the data source object of OLE DB provider &quot;Microsoft.ACE.OLEDB.12.0&quot; for linked server &quot;(null)&quot;.<br/><br/><span style="font-size:x-small">Strangely, the following set of PowerShell commands work just fine:<br/></span><br/>$connstring = 'Provider=Microsoft.ACE.OLEDB.12.0;WSS;HDR=NO;IMEX=2;DATABASE=http://tulam03;LIST={00860C9D-8F42-49C2-A6B4-84EBFC84EDC9};VIEW=;RetrieveIds=Yes'<br/>$spConn = new-object System.Data.Oledb.OleDbConnection($connString)<br/>$spConn.open()<br/>$qry='Select * from list'<br/>$cmd=new-object System.Data.OleDb.OleDbCommand($qry,$spConn)<br/>$da=new-object System.Data.OleDb.OleDbDataAdapter($cmd)<br/>$dt=new-object System.Data.dataTable<br/>$da.fill($dt) &gt; $null<br/>$dt.select()<br/><br/><span style="font-size:x-small">What am I doing wrong?</span></span></span></span></span></span></p> <p> </p> </span></span></span></span></span></span></span></span>Mon, 23 Nov 2009 15:59:28 Z2009-11-23T22:00:34Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/3efad052-d874-48d7-9341-aa8569edf5aehttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/3efad052-d874-48d7-9341-aa8569edf5aethФrиhttp://social.msdn.microsoft.com/Profile/en-US/?user=th%u0424r%u0438Cache Stored Procecdure call in DTSHowdy All<br/><br/>I'm having problems calling a Cache stored procedure (Intersystems) in a DTS package. Dont know if anyone has experience of cache, but i can connect to a cache database no problem, i can execute cache sql no problem, but the minute i call a cache stored procedure, I get this error <br/><br/><a href="http://img163.imageshack.us/img163/7940/errmsg.jpg">http://img163.imageshack.us/img163/7940/errmsg.jpg</a><br/><br/>The same cache stored procedure can be called from winsql no problem and runs fine. When it attempts to run the stored procedure, it actually creates the table at the other end and names the columns correctly but refuses to move data.<br/><br/>Any Cache/DTS experts out there?<br/><br/>Thanks in advance<br/>AdamMon, 23 Nov 2009 09:30:03 Z2009-11-23T09:30:12Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/177ccee9-0575-450c-bc0d-bbac87bf2937http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/177ccee9-0575-450c-bc0d-bbac87bf2937ryguy72http://social.msdn.microsoft.com/Profile/en-US/?user=ryguy72Problem with SQL string<p>It took a bit of troubleshooting to figure out what is going on with some of my code, but I think I almost got a handle on it. </p> <p> </p> <p>When I run this code:</p> <p>cmd.CommandText = String.Format(&quot;Select CrawlDate, Count(*) From Events Where CrawlDate &gt;= #{0}# And CrawlDate &lt;= #{1}# Group By CralwDate&quot;, startDate, endDate)</p> <p> </p> <p>I get this error:</p> <p>da.Fill(ds)</p> <p>Message: Incorrect syntax near ‘12’</p> <p>For a long time that made absolutely no sense to me as there is not a single ‘12’ in my table (which is now quite small after chopping out almost all records) and there is no December...I just couldn’t figure it out...</p> <p> </p> <p>So I changed that cmd line to this:</p> <p>cmd.CommandText = String.Format(&quot;Select * from Events&quot;)</p> <p> </p> <p>Then, at least, I could move past the error.</p> <p> </p> <p>When I try to run this code:</p> <p>cmd.CommandText = String.Format(&quot;Select * from Events Where CrawlDate &gt;= #{0}# And CrawlDate &lt; #{1}#&quot;, _</p> <p>                selectedDay.ToString(&quot;yyyy/mm/dd&quot;), selectedDay.AddDays(1).ToString(&quot;yyyy/mm/dd&quot;))</p> <p> </p> <p>I get this error:</p> <p>da.Fill(ds)</p> <p>Message: Incorrect syntax near ‘#’</p> <p> </p> <p>I think SQL Server just can’t handle the syntax.  Originally this code was written for showing dates in a calendar which received data from an Access DB.  Instead of Access, I am using SQL Server, and as a result, I had to change some of the code in my project.  I think now the code is fine, but I am not building the SQL string properly.  Can someone please tell me the proper syntax for doing what I’m trying to do in a SQL DB?</p> <p> </p> <p>I can provide all code if it helps, but I really think I have isolated the problem to the SQL string.  The rest of the code will probably work fine once I get this string issue resolved.</p> <p> </p> <p>Thanks a ton!</p> <p>Ryan---</p>Sat, 21 Nov 2009 19:12:41 Z2009-11-23T20:58:25Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/04af4992-55c7-453e-a5c3-45ea47d829e5http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/04af4992-55c7-453e-a5c3-45ea47d829e5Jaydeepsinhhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jaydeepsinh"A transport-level error has occurred "- while connecting to SQL Server 2005<p><font color="#333333">Hi,</font></p> <p align=left><font color="#333333"></font> </p> <p align=left><font color="#333333">I am using .net 2005 and sql server 2005 in my web application. After login to my web page, i m constatnly getting this message. so, i must have to signout and signin again. but after signin same erorr is coming again.</font></p> <p align=left><font color="#333333"></font> </p> <p align=left><strong><font color="#ff0000">A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)</font></strong> </p> <p align=left><font face=Arial size=2></font> </p> <p>Please guide me regarding this.</p> <p align=left> </p>Sun, 27 Jul 2008 13:36:55 Z2009-11-21T00:43:42Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/8853b1d7-bf6b-4628-a3c5-07974225d125http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/8853b1d7-bf6b-4628-a3c5-07974225d125bbauerhttp://social.msdn.microsoft.com/Profile/en-US/?user=bbauerODBC connection failing on 64 version of Windows 2003 server<p> </p> <p>I have an application that talks to a SQL backend using an ODBC DSN connection.  It works fine when running on a 32bit machine but fails in the 64bit environment.  The DSN is setup properly on the 64bit box and the Test Connection returns sucess.  However when my application tries to use the DSN to connect to the database I recieve the following error.</p> <p>IM002 - Data source name not found and no default driver specified.</p> <p>The data source name does exist, it's in the ODBC.INI and in registry.  As mentioned above the Test Connection succeeds in the ODBC Administrator so logic would dictate that it's setup correctly.</p> <p>Any help would be appreciated.</p>Wed, 03 May 2006 16:59:36 Z2009-11-20T17:57:37Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/b101b874-1ad2-4080-97fe-32dd8337bc54http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/b101b874-1ad2-4080-97fe-32dd8337bc54Jone Lihttp://social.msdn.microsoft.com/Profile/en-US/?user=Jone%20LiHow to resolve this? A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)<p><span style="background-color:#cce8cf">Hi, <span style="font-size:xx-small;font-family:Arial"><span style="font-size:9pt;font-family:Arial" lang=EN-US>When the application reads data from database server, it throws out these kinds of exceptions and then the connection is closed, the network teams already checked everything and could not find any log related, and it happens randomly, one a day or once a week, it is hard to reproduce it, if anybody experienced or know how to fix this please share with me. <br/></span></span><span style="font-size:xx-small;font-family:Arial"><span style="font-size:9pt;font-family:Arial" lang=EN-GB>A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)</span></span></span><span style="font-size:9pt;font-family:Arial" lang=EN-GB>A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)<br/>I searched in the google, and found a lot of people had the same issue and I can not find a right anser to this. <br/>I did try this on my server, <br/>&quot;excute type regedit then add the following registry key and reboot the server. <br/>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SycAttackProtect{DWORD} = 0<br/> then reboot the server&quot;, but this does not fix it. <br/>also I got some good comment from my colleage,  <br/>&quot;<br/></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>It could be many reasons.<br/></span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>But it’s usually always drilled down to a bug in the Connection Pooling. (But Microsoft doesn’t seem to be that keen on fixing it).<br/></span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>Sometimes it happens that you get a connection from the pool that is already broken, and in my opinion this is the bug, the Connection Pool shouldn’t give you a dead connection.<br/></span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>Then there is the reason why the connection is broken in the first place, and there are numerous. Using a WAN is one reason.<br/></span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>The “</span></span><span style="font-size:xx-small;font-family:Arial"><span style="font-size:9pt;font-family:Arial" lang=EN-GB>An existing connection was forcibly closed by the remote host” </span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>is quite often due to heavy load on the SQL server, but it is also common that the SQL server is fine, but the “DOS Attack protection” in windows is on. I think this setting came in W2K3, it’s a setting in the registry that need to be changed. Because the windows machine think there are to many connections coming in a short time from the same IP, then it will drop some of the connections, and in this case the connection to the SQL Server, hence the “</span></span><span style="font-size:xx-small;font-family:Arial"><span style="font-size:9pt;font-family:Arial" lang=EN-GB>forcibly closed”. </span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>This setting is annoying especially if the server is behind firewalls and is protected in many other ways, and that you don’t know about it in the first place. It could affect other services as well.<br/></span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>I’ve experienced myself issues with TCP/IP Chimney enabled in a SQL Cluster, together with Broadcom network cards, when TCP/IP Chimney was disabled these “forcibly closed by remote host” disappeared completely, and there was 10-20 per day. <br/></span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>But if you start googling about the connection pooling issue, together with forcibly closed etc. Then you will find there are numerous other reasons one more wild than another.<br/></span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>The safe bet to get it fixed is to disable connection pooling, but that on the other hand will kill performance significantly and is really nothing you should do.<br/></span></span><span style="font-size:x-small;color:#000080;font-family:Arial"><span style="font-size:10pt;color:navy;font-family:Arial" lang=EN-GB>Since it isn’t that common for you I guess taking care of the error in a nice way is probably the easiest until a solution is found. On the other hand, since it’s uncommon a lot of people live with it then, just nice to know it’s nothing wrong with their programming.&quot;<br/>it seems there is not instant way to fix it, I know there are a lot of experts here, could anybody help me out please?  thanks a lot! </span></span></p>Fri, 20 Nov 2009 10:20:11 Z2009-11-25T04:23:27Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/ba6b4ca0-49b5-4503-ae54-3a468de280ffhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/ba6b4ca0-49b5-4503-ae54-3a468de280ffFallerianhttp://social.msdn.microsoft.com/Profile/en-US/?user=FallerianNetwork-related or instance-specific error - Connection Medium Problem<span style="font-family:monospace;font-size:13px;white-space:pre-wrap">Hi guys, </span> <div><span style="font-family:monospace;font-size:small"><span style="font-size:13px;white-space:pre-wrap"><br/></span></span></div> <div><span style="font-family:monospace;font-size:13px;white-space:pre-wrap">I know there's hundreds of topic about this error out there, but not a single one seems to apply to my specific situation.  </span></div> <div>A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)</div> <div><span style="font-family:monospace;font-size:small"><span style="font-size:13px;white-space:pre-wrap"><br/></span></span></div> <div><span style="font-family:monospace;font-size:small"><span style="font-size:13px;white-space:pre-wrap"><br/></span></span></div> <div><span style="font-family:monospace;font-size:13px;white-space:pre-wrap">We have three branches, 1 head office and two satellite branches. Our in-house developed application connects to a SQL Server 2005 instance running on a server with a live IP which the branches connect through and a local IP that the head office connects through i.e. app at branches connect through &lt;live IP&gt;\&lt;instance name&gt; and the head office connects through &lt;local IP&gt;\&lt;instance name&gt;. The application is exactly the same across all three branches except for the connection string used...it's exactly the same for both satellite branches though.  </span></div> <div><span style="font-family:monospace;font-size:small"><span style="font-size:13px;white-space:pre-wrap"><br/></span></span></div> <div><span style="font-family:monospace;font-size:13px;white-space:pre-wrap">Head office has no problems connecting with the application. Branch A has no problems either. Branch B however does. Branch B's network is setup as follows...ADSL connection into a wireless/wired router that each user then gets internet access through. If anyone in Branch B connects to the internet through 3G or their cellphones on their PCs, then the application works. But not through the ADSL setup. However, to make it more interesting...one of the guys made an initial connection to the internet using his cellphone as the modem and successfully logged into the application...he then disconnected the internet from his cellphone and connected through a cable connection to the ADSL router and successfully managed to carry on utilising the application, performing actions that would have performed SQL queries to the server...and all ran successfully. But then he closed the app and opened it again (cable to router connection) and again login failed.  </span></div> <div><span style="font-family:monospace;font-size:small"><span style="font-size:13px;white-space:pre-wrap"><br/></span></span></div> <div><span style="font-family:monospace;font-size:13px;white-space:pre-wrap">Please any ideas.</span></div>Thu, 19 Nov 2009 13:36:33 Z2009-11-25T04:17:35Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/7b87d35f-7b08-4727-9544-8dd7035c5e87http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/7b87d35f-7b08-4727-9544-8dd7035c5e87Jasdeephttp://social.msdn.microsoft.com/Profile/en-US/?user=JasdeepCannot bulk load because the file could not be opened. Operating system error code 5(Access is denied.).<font size=2> <p>I am facing a issue with bulk upload on Test Server.</p> <p>Issue: When running Openrowset command from SQL server other that Test Server query runs fine when trying to run the same command from Test Server it gives error.</p> <p></font><font face="Courier New" size=1>Msg 4861, Level 16, State 1, Line 1</p> <p>Cannot bulk load because the file &quot;</font><font face="Courier New" color="#0000ff" size=1><a title="file://ServerName/input/FileName.csv"><font face="Courier New" color="#0000ff" size=2><u>\\ServerName\input\FileName.csv</u></font></a></font><font face="Courier New" size=1>&quot; could not be opened. Operating system error code 5(Access is denied.).</p></font><font face=Arial size=2> <p>For example: If the command is run from System A connecting to SQL Server instance on Test Server Test Server it gives this error. If the same command with same rights is run from any other SQL server instance say Dev1 its running fine.</p> <p>If the command is run from Test Server  connecting to any SQL Server instance including Test Server it is running fine.</p> <p>Tried: 1) Given the read/write rights on shared folder, to user under which the SQL server service is running on Test Server </p> <p>2) Given the read/write rights on shared folder to everyone.</p> <p>Query: </font> <p><font face="Courier New" size=2></p></font><font face="Courier New" color="#0000ff" size=2>SELECT</font><font face="Courier New" size=2> </font><font face="Courier New" color="#0000ff" size=2>DISTINCT</font><font face="Courier New" size=2> </font><font face="Courier New" color="#808080" size=2>*</font><font face="Courier New" size=2> </font><font face="Courier New" color="#0000ff" size=2>FROM</font><font face="Courier New" size=2> </font><font face="Courier New" color="#0000ff" size=2>OPENROWSET</font><font face="Courier New" size=2> </p> <p></font><font face="Courier New" color="#808080" size=2>(</font><font face="Courier New" size=2> </p> <p></font><font face="Courier New" color="#0000ff" size=2>BULK</font><font face="Courier New" size=2> </font><font face="Courier New" color="#ff0000" size=2>'</font><a title="file://\\ServerName\input\FileName.csv"><u><font face="Courier New" color="#0000ff" size=2>\\ServerName\input\FileName.csv</u></font></a><font face="Courier New" color="#ff0000" size=2>'</font><font face="Courier New" color="#808080" size=2>,</font><font face="Courier New" size=2> </p> <p>FORMATFILE</font><font face="Courier New" color="#808080" size=2>=</font><font face="Courier New" color="#ff0000" size=2>'\\<u><font color="#0000ff">ServerName</font></u>\Format.xml'</font><font face="Courier New" size=2> </p> <p></font><font face="Courier New" color="#808080" size=2>)</font><font face="Courier New" size=2> </p> <p></font><font face="Courier New" color="#0000ff" size=2>AS</font><font face="Courier New" size=2> FileList </p> <p> </p> <p>Please provide me with some solution. What can be the reason for such behaviour?</p></font><font face=Arial size=2></font>Tue, 23 Jan 2007 06:01:44 Z2009-11-20T16:54:15Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/eaf7e943-f26c-49c3-8991-44e761cf68b0http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/eaf7e943-f26c-49c3-8991-44e761cf68b0ManAtResthttp://social.msdn.microsoft.com/Profile/en-US/?user=ManAtRestODBC Error: SQLState 28000 & Server Error 18452<p>Hello,<br/><br/>I have created two new tables in a SQL database instance on a Deticated SQL server. The database in question has been in use for years with no problems. I created these two tables and linked them like the others to an Access interfaces as linked tables using a new System DSN.<br/>Most of the time but not all of the time I get the dialog listed in the title here : ODBC Error: SQLState 28000, Server Error 18452 Login failed for ...<br/>This only happens when I use the objects on the form that are bound to the new tables. the other objects touching other tables work fine.<br/><br/>Thanks.</p>Wed, 18 Nov 2009 13:42:47 Z2009-11-20T17:41:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/1f582d03-13dc-4087-83fc-3e7a49c953c0http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/1f582d03-13dc-4087-83fc-3e7a49c953c0Bernd Riemkehttp://social.msdn.microsoft.com/Profile/en-US/?user=Bernd%20RiemkeRestore a SQL Database under SQL Server 2005Hi,<br/>what is the best way to restore a sql 2005 Database?<br/>I become a .bak File from a customer and now I will restore the database on my system.<br/>I use the SQL 2005 Enterprise Edition for the restore.<br/><br/>The next question is:<br/>Have anyone restore a sql 2005 .bak file in a sql 2008 Server?<br/>If yes, how?<br/>And are there some trouble?<br/><br/>Best Regards<br/><br/>BerndFri, 20 Nov 2009 09:01:37 Z2009-11-20T10:06:30Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/7cc21951-2568-43ad-b3bf-3e5babb27558http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/7cc21951-2568-43ad-b3bf-3e5babb27558Tsuey Shanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tsuey%20ShanSQL Server to support Vietnamese<p>Has Microsoft SQL officially support Vietnamese language? Currently we have prospect in Vietnam to use our solution but when we run a test internally we realize that there are quite a number of things that cannot work well eventough the collation of the database is in Vietnamese.<br/><br/>Certain Vietnamese character that we input to SQL turn out to be special question mark(?). Anyone experience the same?</p>Tue, 17 Nov 2009 03:08:26 Z2009-11-20T05:15:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/0ca135a6-70a2-4353-ad82-48994aef6d58http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/0ca135a6-70a2-4353-ad82-48994aef6d58Rushikesh Bakalehttp://social.msdn.microsoft.com/Profile/en-US/?user=Rushikesh%20BakaleLink server error<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;font-family:Arial">Hi,</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;font-family:Arial"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;font-family:Arial">We have two SQL server 2005 (64 bit) servers, which pull the data from AS400 servers through link sever .This link server has been created using system DSN and Microsoft OLEDB provider for ODBC driver.</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;font-family:Arial">But since yesterday this link severs of one of the server went on toss, When ever we do the restart the SQL sever , for next two, three attempts the test connection process succeed but after than the it goes in hug up state .Pleas let me know if any one can put some light on this.</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;font-family:Arial"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;font-family:Arial">Many Thanks,</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;font-family:Arial">Rushikesh </span></p>Fri, 13 Nov 2009 05:08:59 Z2009-11-20T04:02:48Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/421b60c6-45a2-4e93-b9d5-b22bdef4130bhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/421b60c6-45a2-4e93-b9d5-b22bdef4130bLazybone43v3rhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lazybone43v3rSQL delete excess duplicates Hi, I have never studied SQL so what I know is what I have self taught (aka i'm a beginner) <br/> <br/> <br/>   I have a query I am running and I have it look at records. It searches for duplicates and returns to me the duplicate records. The only unique field that separates the duplicates is and <em>ID </em> which is just a 5-6 digit number. <br/> <br/>    I have the duplicates all together, but wish to get rid of each duplicate except for one &quot;keeper&quot;<br/> <br/> EXAMPLE:<br/> <br/> <span style="text-decoration:underline">ID  firstname lastname</span> <br/> 1    Jane        Doe <br/> 2    Jane        Doe<br/> <br/> 3    John        Doe<br/> 4    John        Doe<br/> 5    John        Doe<br/> <br/> <br/> My query returns results like the one above with some additional information.... I want to be left with the following...<br/> <br/> <span style="text-decoration:underline">ID  firstname lastname</span> <br/> 1    Jane        Doe <br/> 3    John        Doe<br/> <br/> <br/> One good record.......  <br/> <br/> I figure I can manual delete the records, but was hoping there is something in SQL where I can delete all but 1?<br/> <br/> I am open to all sorts of ideas, thanks!Wed, 18 Nov 2009 23:11:01 Z2009-11-19T13:54:32Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/19702433-edd1-4eed-9d30-59abbdd84145http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/19702433-edd1-4eed-9d30-59abbdd84145wahyu furqonihttp://social.msdn.microsoft.com/Profile/en-US/?user=wahyu%20furqoniTime out connection when access database from VS.net <p>Dear All,<br/><br/><br/>I have the big problem when accessing database from web base application..<br/>when I tried to login to MS sql server 2008 no error rised.. but when we do some transaction three or four time the error rised..<br/>After error rised my MS sql server 2008 can't be accessed by any other client...event by ODBC.. anyone can share how to solve this problem???<br/>Please help</p>Mon, 16 Nov 2009 04:54:55 Z2009-11-19T10:26:36Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/94471d26-2af6-47ee-b0ce-b38c155fab64http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/94471d26-2af6-47ee-b0ce-b38c155fab64santosh007007http://social.msdn.microsoft.com/Profile/en-US/?user=santosh007007sql server performancehow to improve sql server performance?Fri, 13 Nov 2009 06:32:50 Z2009-11-19T04:27:23Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/b450937f-0ef5-427a-ae3b-115335c0d83chttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/b450937f-0ef5-427a-ae3b-115335c0d83cJK DBAhttp://social.msdn.microsoft.com/Profile/en-US/?user=JK%20DBABCP Connection Error: SQLState = 28000, NativeError = 18456The following bcp command using xp_cmdshell doesn't work returning SQL Connection error.  Looks like bcp command doesn't take Windows-Authenticated ID.<br/> exec master.dbo.xp_cmdshell 'bcp [DBTest].[dbo].TableTest1 IN &quot;\\server12\d$\test.csv&quot; -S&quot;Server12\isnt12&quot; -U&quot;Domain1\test&quot; -P&quot;Test$12&quot; -c -t&quot;,&quot;'<br/> <br/> SQLState = 28000, NativeError = 18456<br/> Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'Domain1\test'.<br/> <br/> <br/> However, the following works, which uses SQL-Authentication Login ID.<br/> exec master.dbo.xp_cmdshell 'bcp [DBTest].[dbo].TableTest1 IN &quot;\\server12\d$\test.csv&quot; -S&quot;Server12\isnt12&quot; -U&quot;test&quot; -P&quot;test&quot; -c -t&quot;,&quot;'<br/> <br/> Is there anyway to use Windows-Authenticated ID for bcp command?  Please advise.Wed, 18 Nov 2009 20:54:17 Z2009-11-19T00:28:12Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/80c6e37d-d58a-4199-ad94-4240e9cd1399http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/80c6e37d-d58a-4199-ad94-4240e9cd1399gaurav dixithttp://social.msdn.microsoft.com/Profile/en-US/?user=gaurav%20dixit32 bit DSN in folder sysWOW64 not accessible in codeHi,<br/><br/>I have a web application on Windows 2007 Server 64 bit. I have also created DSN for 32 Bit using odbcad32.exe in *%SystemRoot%\sysWOW64 folder. I can see DSN and Drivers there. If I test the connection from there ,I get successfull connection. If I try to connect to DB using this DSN from C# code ,I get the error Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. I guess its trying to find out DSN in System32 folder (which does not have this dsn/drivers). <br/>How can I access DSN defined in syswow64 folder in my code.<br/><br/>Thanks,<br/>Gaurav DixitWed, 18 Nov 2009 14:02:11 Z2009-11-18T17:43:29Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/9b354ae2-cd95-4a2f-a8ed-5194daacc5e8http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/9b354ae2-cd95-4a2f-a8ed-5194daacc5e8Chris TJhttp://social.msdn.microsoft.com/Profile/en-US/?user=Chris%20TJNeed help to convert oracle function in the query below to Sql linkserver fuction in the queryThe query below works fine in Oracle database, but I need help in converting the query to work in Sql linkserver(the date function). I need someone to help with an equivalent query in SQL server. Thanks<br/><br/>SELECT hk_rg_ord.rec_re_ts, <br/>  to_date(to_char(hk_rg_ord.ord_re_ts,'DD-Mon-YYYY')) AS OrdDate,<br/>  hk_rg_ord.ord_br AS Ordbr, <br/>  to_date(to_char(hk_rg_ord.cre_de_date,'DD-Mon-YYYY')) AS CreDate,<br/>  to_date(to_char(hk_rg_ord.pro_comp_date,'DD-Mon-YYYY')) AS newDate, <br/>  hk_rg_ord.st,<br/>  hk_rg_osis.cu_ads as Ads,<br/>  hk_rg_osis.cu_nme As Cname, <br/>  hk_rg_ord.sl_stn As slPnber, <br/>  hk_rg_ord.isp_id As ISP, <br/>  CASE WHEN ((hk_rg_ord.dry_ind = 'Y')) then 1 else 0 end as IndLoop,<br/>  CASE WHEN ((hk_rg_ord.UNI_IND = 'Y')) then 1 else 0 end as Uni,<br/>  hk_rg_osis.sl_spd as Spd,<br/>  CASE WHEN ((hk_rg_osis.by_ind = 'Y')) then 1 else 0 end as BY, <br/>  hk_rg_osis.por_id As ByProv,  <br/>  CASE WHEN ((hk_rg_osis.lob_cd = 'B')) then 1 else 0 end as CuTyId,<br/>  hk_rg_osis.hm_ct_tns as tns,<br/>  CASE WHEN ((hk_rg_osis.lng_ind = 'S')) then 2 else 1 end as LngId, <br/>  CASE WHEN ((hk_rg_osis.sl_prd_tye = 'STA SL ACCESS')) then 1 else 0 end as Sta<br/> FROM hk_rg_osis, hk_rg_ord<br/> WHERE (<br/>  (hk_rg_ord.ord_br = hk_rg_osis.ord_br(+))<br/>      and (hk_rg_ord.pro_comp_date between sysdate-2 and sysdate+1)<br/>  and (hk_rg_ord.act_typ = 'ADD')<br/>  and (hk_rg_osis.lob_cd ='B)<br/>  and not (hk_rg_ord.ins_opt_ind = 'TEH')<br/>  and ((hk_rg_ord.Ord_br like 'C%') or (hk_rg_ord.Ord_br like 'I%'))<br/>  and (hk_rg_ord.eh_id = '121')<br/>  AND not((hk_rg_osis.AEG_CD)='FRDT')Wed, 18 Nov 2009 16:57:56 Z2009-11-18T16:57:57Z