Quantcast
Channel: SQL Server Express forum
Viewing all 3319 articles
Browse latest View live

provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

$
0
0
I used profile for shopping cart 

 Collapse
<system.web>
<anonymousIdentificationenabled="true"/>
<customErrorsmode="Off"></customErrors>
<profileenabled="true">
<properties>
<addname="SCart"serializeAs="Binary"type="Tandis.Cart"allowAnonymous="true"/>
</properties>
</profile>
</system.web>

Server Error in '/' Application.

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)

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 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)

Source Error: 

Line 19:   public virtual Tandis.Cart SCart {
Line 20:     get {Line 21:       return ((Tandis.Cart)(this.GetPropertyValue("SCart")));Line 22:     }
Line 23:     set {

Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2faf0579\37b1b4f4\App_Code.1mhfv5r1.3.cs    Line: 21 

Stack Trace: 

[SqlException (0x80131904): 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)]
  System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4849719
  System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
  System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4863021
  System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90
  System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +376
  System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
  System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
  System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +4864151
  System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
  System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
  System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
  System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
  System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
  System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
  System.Data.SqlClient.SqlConnection.Open() +122
  System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +87
  System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +221
  System.Web.Profile.SqlProfileProvider.GetPropertyValuesFromDatabase(String userName, SettingsPropertyValueCollection svc) +772
  System.Web.Profile.SqlProfileProvider.GetPropertyValues(SettingsContext sc, SettingsPropertyCollection properties) +433
  System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) +258
  System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName) +132
  System.Configuration.SettingsBase.get_Item(String propertyName) +102
  System.Web.Profile.ProfileBase.GetInternal(String propertyName) +36
  System.Web.Profile.ProfileBase.get_Item(String propertyName) +68
  System.Web.Profile.ProfileBase.GetPropertyValue(String propertyName) +7
  ProfileCommon.get_SCart() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2faf0579\37b1b4f4\App_Code.1mhfv5r1.3.cs:21
  Showbook.Button2_click(Object sender, EventArgs e) in c:\inetpub\vhosts\tandisbooks.ir\httpdocs\Showbook.aspx.cs:22
  System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
  System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
  System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209

it works locally on IIS but on the host it gives this error!
what should I do ? (my host is plesk 9.5 )

how to install a disk image file(iso) of sql2k12 on win2k12

$
0
0

while installation of sql server 2012 Standard im getting the  error like 

sql server setup has encountered the following error

file format is not valid

microsoft sql server,Error 3415

$
0
0
hi,
I am trying to attach database AdventureworksLT, and it shows me an error message:
Database AdventureworksLT cannot be upgraded because it has readonly files,make the database or files writable or rerun recovery.

how can i make database or files writable?

How to Manage data and Purge unwanted data

$
0
0

Hi 

I am using SQL server express which is limited to 10GB  size. Have created FileStream to manage the file however table size is also growing like anything.

I am purging the unwanted data by a scheduled batch.

May I know if there some other batter ways to keep clean the tables if exceeded or the unwanted data which may not be in use in future.

Thanks,

Manoj (HA)

I want to be a Programmer to develop my country

$
0
0

Dear sir!

My name KOCH Seung live in Cambodia is a poor country. Now I studying a University with favorite Programmer.

I studying Year 2 semester 2, but about know to skill it is so poor.

how to install SQL Server 2017? In the future I want to be a Programmer. Please provide lesion and how to creating any program that process in SQL.

How to Manage SQL Buffer in case of SQL Express

$
0
0

Hi ,

Facing Issue on Performance on SQL Express database server.

If we have more that 5 database created and users are also considerable more in SQL Express server.

How can we manage buffer/Memory to improve the speed.

Thanks,

M

Test connection succeeded with no information provided

$
0
0

Hi, 

I was trying to connect to an SQL server with Excel using the Data Connection Wizard. 

I went: Data Connection Wizard -> Other/Advanced -> OLE DB Provider for Microsoft Directory Services and then put details in when I noticed that the Test Connection Button gives a success message all the time regardless the information you provide. It also gives the same Success message if you don`t provide any details. 

Is is related to my software configuration? I cannot connect to an Oracle database because I don`t know what the error is when configuring the connection. 

Thank you!

How to successfully install SQL Server Express 2005 64-bit on Windows 10

$
0
0

Hi,

If you found this post useful and answer what you're looking for, please chime in.

Foreword

I was frustrated when I tried to install SQL Server Express 2005 64-bit on a new Win 10 tablet (Intel Cherrytrail) Home Edition 64-bit, wait, in case you're wondering why would I install an old SQL system on a brand new hardware and OS it's because our small company is still relying on that old SQL system, and we yet to find a software dev who can port all of our old SQL database to newer SQL Server. Not to mention Microsoft is adding backward compatibility limitations in every new SQL Server releases... The quickest and cheapest solution is to keep using the old SQL system on newer computers.

So, continuing on the issue, I kept receiving these errors during installation:

  1. An installation package for the product Microsoft SQL Server Native Client cannot be found. Try the installation again using a valid copy of the installation package 'sqlncli_x64.msi'
  2. The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually."

I've tried all of the workarounds found on various websites and forums to no avail, apparently the solution is a very easy one. If you're facing the same error messages, then read on, hopefully what works for me will work for you too.

The issues & the solution

The first issue (no. 1 up there) is caused by incompatibility of 32-bit software on 64-bit system, meaning I mistakenly launched the 32-bit version of SQL Server Express 2005 installer. At first I didn't realised it and tried the method that is said to successfully remedy the issue: by extracting the 'sqlncli_x64.msi' and move both the 'SQLSERVR.EXE' and 'SQLOS.DLL' files into the installation folder. After that didn't work for three times, I uninstalled the whole SQL Server related installations and tried one more time with the installation file which I downloaded from Microsoft's website. And it works, I passed the SQL Server Native Client process and continue to the SQL Server Database Services process, the last process.

That's when I encountered issue no. 2; where the installer kept saying it can't start the SQL Server service. Again, the solution offered by others are by moving both the extracted 'SQLSERVR.EXE' and 'SQLOS.DLL' files into the installation folder. I've tried this three times and yet the installer still couldn't finish the installation properly.

I also tried giving security access to Network Service in the installation folder's security option, and in the SQL Server folders as well. It didn't work.

I was ready to throw the white towel, but luckily I have a big brother who's a real "nerd". He always keep old files in his NAS and never delete them no matter what, so after hearing about this issue with SQL Server Express 2005, he offered me access to his archives to search for an old SQL Server Express 2005 SP4 64-bit installer. I found the file, launched it on the new Win 10 64-bit tablet, and voila everything installed properly and without a hitch whatsoever! It only took around 6-8 minutes for the installation to successfully complete, and now I can run the SQL-based database app again on the new tablet.

Conclusion

I still couldn't believe that the official SQL Server Express 2005 installer I've recently downloaded from Microsoft's website is not working, but instead an old installation file dusted off from the past do the job flawlessly. This is the main reason I'm sharing this story, I know how stressful it is, especially when your source of income is depending on it. And hopefully my story can help you too.

One more note

I've tried looking in every websites for that particular installer: SQL Server Express 2005 SP4 64-bit, but couldn't find it, not even in Microsoft's official pages. This raises a couple of questions in my mind, which I dare not say on this forum. Hopefully you guys have better luck than me, cheers.


Dhow here.




This backend version...

$
0
0
I have 3 different versions of SQL Server Express on my PC: 2008, 2008R2 and 2014.  I also have SSMS 2014.  As I was modifying a table in 2008 today, I received a "This backend version is not supported to design database diagrams or tables" message.  First time this has ever happened.  Executed "Select @@version" and it's telling me that all my 2008 databases are now 2016!  How could this happen?  I don't even have SQL 2016 Express installed.  Thanks.

How can I schedule a sql script to run every midnight for sql express instance ?

$
0
0
Hi All,

We are using SQLExpress localdb in our environment and wanted to run Ola hallengren maintenance scripts on a schedule basis.
However, SQL Express doesn't have SQL Agent service, what are the different ways I can schedule a sql script to run every night 12:05 AM?

Thanks,

Sam

Timeout expired

$
0
0

Hello Team,

I've multiple (20-30) SQL Server Express instances on VM server. On few servers I'm unable to connect few SQL server express instances using SSMS from local or remotely as well.

Using - SQL Server 2014 Express : Microsoft SQL Server 2014 (SP2-CU8) (KB4037356) - 12.0.5557.0 (X64)  Express Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)

Below is the error message for same :

Connection Timeout Expired.  The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. 
This could be because the pre-login handshake failed or the server was unable to respond back in time. 
The duration spent while attempting to connect to this server was - [Pre-Login] initialization=12654; handshake=14962;  (Microsoft SQL Server, Error: -2)

Some times it connect but sometimes not and throws above error.


Regards, Prashant S., Pls 'Mark as Answer' if my post answers ur question & Pls 'Vote as Helpful' if it helps you ...

Oops...Unable to install SQL Server (setup.exe)

$
0
0

I'm trying to install SQL Server 2017 Developer edition with "Custom" installation type but it gives below error message:

Oops...

Unable to install SQL Server (setup.exe).

Summary :

Overall summary:
  Final result:                  Failed: see details below
  Exit code (Decimal):           -2068052378
  Start time:                    2018-06-27 18:18:13
  End time:                      2018-06-27 18:35:39
  Requested action:              Install

Setup completed with required actions for features.
Troubleshooting information for those features:
  Next step for SQLEngine:       Use the following information to resolve the error, and then try the setup process again.


Machine Properties:
  Machine name:                  DESKTOP-BHI5VF0
  Machine processor count:       4
  OS version:                    Microsoft Windows 10 Home (10.0.17134)
  OS service pack:               
  OS region:                     United States
  OS language:                   English (United States)
  OS architecture:               x64
  Process architecture:          64 Bit
  OS clustered:                  No

Product features discovered:
  Product              Instance             Instance ID                    Feature                                 Language             Edition              Version         Clustered  Configured
  SQL Server 2017      SQLEXPRESS           MSSQL14.SQLEXPRESS             Database Engine Services                 1033                Express Edition      14.0.1000.169   No         Yes       
  SQL Server 2017                                                          Client Tools Connectivity               1033                                      14.0.1000.169   No         Yes      
  SQL Server 2017                                                          Client Tools Backwards Compatibility    1033                                      14.0.1000.169   No         Yes       
  SQL Server 2017                                                          Client Tools SDK                        1033                                      14.0.1000.169   No        Yes       
  SQL Server 2017                                                          LocalDB                                 1033                 Express Edition      14.0.1000.169   No         Yes      

Package properties:
  Description:                   Microsoft SQL Server 2017 
  ProductName:                   SQL Server 2017
  Type:                          RTM
  Version:                       14
  SPLevel:                       0
  Installation location:         C:\SQLServer2017Media\Evaluation_ENU\x64\setup\
  Installation edition:          Developer

Product Update Status:
  None discovered.

User Input Settings:
  ACTION:                        Install
  ADDCURRENTUSERASSQLADMIN:      false
  AGTSVCACCOUNT:                 NT Service\SQLAgent$SRIRANGINISQL
  AGTSVCPASSWORD:                *****
  AGTSVCSTARTUPTYPE:             Manual
  ASBACKUPDIR:                   Backup
  ASCOLLATION:                   Latin1_General_CI_AS
  ASCONFIGDIR:                   Config
  ASDATADIR:                     Data
  ASLOGDIR:                      Log
  ASPROVIDERMSOLAP:              1
  ASSERVERMODE:                  TABULAR
  ASSVCACCOUNT:                  <empty>
  ASSVCPASSWORD:                 <empty>
  ASSVCSTARTUPTYPE:              Automatic
  ASSYSADMINACCOUNTS:            <empty>
  ASTELSVCACCT:                  <empty>
  ASTELSVCPASSWORD:              <empty>
  ASTELSVCSTARTUPTYPE:           0
  ASTEMPDIR:                     Temp
  BROWSERSVCSTARTUPTYPE:         Automatic
  CLTCTLRNAME:                   <empty>
  CLTRESULTDIR:                  <empty>
  CLTSTARTUPTYPE:                0
  CLTSVCACCOUNT:                 <empty>
  CLTSVCPASSWORD:                <empty>
  CLTWORKINGDIR:                 <empty>
  COMMFABRICENCRYPTION:          0
  COMMFABRICNETWORKLEVEL:        0
  COMMFABRICPORT:                0
  CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20180627_181811\ConfigurationFile.ini
  CTLRSTARTUPTYPE:               0
  CTLRSVCACCOUNT:                <empty>
  CTLRSVCPASSWORD:               <empty>
  CTLRUSERS:                     <empty>
  ENABLERANU:                    false
  ENU:                           true
  EXTSVCACCOUNT:                 <empty>
  EXTSVCPASSWORD:                <empty>
  FEATURES:                      SQLENGINE
  FILESTREAMLEVEL:               0
  FILESTREAMSHARENAME:           <empty>
  FTSVCACCOUNT:                  <empty>
  FTSVCPASSWORD:                 <empty>
  HELP:                          false
  IACCEPTPYTHONLICENSETERMS:     false
  IACCEPTROPENLICENSETERMS:      false
  IACCEPTSQLSERVERLICENSETERMS:  true
  INDICATEPROGRESS:              false
  INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
  INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
  INSTALLSQLDATADIR:             <empty>
  INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
  INSTANCEID:                    SRIRANGINISQL
  INSTANCENAME:                  SRIRANGINISQL
  ISMASTERSVCACCOUNT:            NT AUTHORITY\Network Service
  ISMASTERSVCPASSWORD:           <empty>
  ISMASTERSVCPORT:               8391
  ISMASTERSVCSSLCERTCN:          <empty>
  ISMASTERSVCSTARTUPTYPE:        Automatic
  ISMASTERSVCTHUMBPRINT:         <empty>
  ISSVCACCOUNT:                  NT AUTHORITY\Network Service
  ISSVCPASSWORD:                 <empty>
  ISSVCSTARTUPTYPE:              Automatic
  ISTELSVCACCT:                  <empty>
  ISTELSVCPASSWORD:              <empty>
  ISTELSVCSTARTUPTYPE:           0
  ISWORKERSVCACCOUNT:            NT AUTHORITY\Network Service
  ISWORKERSVCCERT:               <empty>
  ISWORKERSVCMASTER:             <empty>
  ISWORKERSVCPASSWORD:           <empty>
  ISWORKERSVCSTARTUPTYPE:        Automatic
  MATRIXCMBRICKCOMMPORT:         0
  MATRIXCMSERVERNAME:            <empty>
  MATRIXNAME:                    <empty>
  MRCACHEDIRECTORY:              
  NPENABLED:                     0
  PBDMSSVCACCOUNT:               <empty>
  PBDMSSVCPASSWORD:              <empty>
  PBDMSSVCSTARTUPTYPE:           0
  PBENGSVCACCOUNT:               <empty>
  PBENGSVCPASSWORD:              <empty>
  PBENGSVCSTARTUPTYPE:           0
  PBPORTRANGE:                   <empty>
  PBSCALEOUT:                    false
  PID:                           *****
  QUIET:                         false
  QUIETSIMPLE:                   false
  ROLE:                          
  RSINSTALLMODE:                 DefaultNativeMode
  RSSVCACCOUNT:                  <empty>
  RSSVCPASSWORD:                 <empty>
  RSSVCSTARTUPTYPE:              Automatic
  SAPWD:                         *****
  SECURITYMODE:                  SQL
  SQLBACKUPDIR:                  <empty>
  SQLCOLLATION:                  Latin1_General_CI_AI
  SQLSVCACCOUNT:                 NT Service\MSSQL$SRIRANGINISQL
  SQLSVCINSTANTFILEINIT:         false
  SQLSVCPASSWORD:                <empty>
  SQLSVCSTARTUPTYPE:             Automatic
  SQLSYSADMINACCOUNTS:           DESKTOP-BHI5VF0\admin
  SQLTELSVCACCT:                 NT Service\SQLTELEMETRY$SRIRANGINISQL
  SQLTELSVCPASSWORD:             <empty>
  SQLTELSVCSTARTUPTYPE:          Automatic
  SQLTEMPDBDIR:                  <empty>
  SQLTEMPDBFILECOUNT:            4
  SQLTEMPDBFILEGROWTH:           64
  SQLTEMPDBFILESIZE:             8
  SQLTEMPDBLOGDIR:               <empty>
  SQLTEMPDBLOGFILEGROWTH:        64
  SQLTEMPDBLOGFILESIZE:          8
  SQLUSERDBDIR:                  <empty>
  SQLUSERDBLOGDIR:               <empty>
  SUPPRESSPRIVACYSTATEMENTNOTICE: false
  TCPENABLED:                    0
  UIMODE:                        Normal
  UpdateEnabled:                 true
  UpdateSource:                  MU
  USEMICROSOFTUPDATE:            false
  X86:                           false

  Configuration file:            C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20180627_181811\ConfigurationFile.ini

Detailed results:
  Feature:                       Database Engine Services
  Status:                        Failed
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error, and then try the setup process again.
  Component name:                Microsoft Visual C++ 2015 Redistributable
  Component error code:          1638
  Component log file:            C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20180627_181811\VCRuntime140_x64_Cpu64_1.log
  Error description:             VS Shell installation has failed with exit code 1638.
  Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=VCRuntime140_x64%40Install%400x1638

Rules with failures:

Global rules:

Scenario specific rules:

Rules report file:               C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20180627_181811\SystemConfigurationCheck_Report.htm

SQL 2017 Installation Error message.

$
0
0

Hi,

I'm getting this error message while installing SQL 2017:

sql server 2017 vs shell installation has failed with exit code 1638.

I saw several option online how to fixed, but I rather to come here and ask Microsoft to show me how to fixed.

Thanks

Remove Deteled Databases from SQL Server Management Studio List

$
0
0

Hi,

    I am using SQL Server Express 2008 Management Studio & in the databases list are some databases that are non existent (have been deleted in Windows Explorer). How do I remove them as trying to delete when logging in using Windows authentication fails?

Thanks

Paul.


Paul Wainwright

Invalid column name 'Infinity'. + SQLException

$
0
0

Hi All,

I am inserting the values to the table using the table adapter. And all columns except the datetime and messageid that is unique identification column are the varchar then also i am facing problem of "Invalid column name 'Infinity'. + SQLException".  StackTrace is as below:

---------------------------------------------------------------------------------------------------------------

   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at CostWatchDB.CostWatchDBTableAdapters.TempMessagesTableAdapter.LogEndDeviceMessage(Int64 SourceUniqueId, String FirstHopUniqueId, String Hops, String EndOfLineTamper, String SmokeCleanMe, String AlarmReed, String AlarmInputA, String AlarmInputB, String LowBattery, String Tamper, String Supervision, String Reset, String ReceiverJam, String AppLinkFailure, String NoLinePower, String SubmeterCount, String TempInt, String TempExt, String HumidityExt, String HumidityInt, String AlarmC, String AlarmD, String AnaCh1, String AnaCh2, String AnaDeltaTrig, String AnaFormat, String AppId, String AppIdHere, String ChkInRf, String ChkInSer, String Cmd, String DeltaCh1, String DeltaCh2, String DeltaCount, String DeltaHumExt, String DeltaHumInt, String DeltaTempExt, String DeltaTempInt, String DstRadio, String DstUid, String EnvDeltaTrig, String ExtUnit, String HopMarket, String HopSerSum, String Len, String LinkSup, String Market, String MeasureTime, String MsgClass, String MsgCnt, String MsgError, String Nid, String NoAc, String NoAcks, String NoRfSup, String NoSerSup, String OptionsHere, String OutFmt, String ProdIdHhere, String Product, String Radio, String Rapid, String RfSigLevel, String RfSigMargin, String SrcMarket, String SrcSerNum, String SrcUid, String SubmeterLeaks, String SurveyHere, String TempUnit, String TraceCnt, String WillSleep, String XmitTime) in C:\Projects\DatabaseAppService\CostWatchDB\CostWatchDB.Designer.cs:line 11092
   at CostWatchDB.EndDevice.LogParameters(String HOP_UID, String HOPS, String EOL_TAMPER, String CLEAN_ME, String ALARM_REED, String ALARM_A, String ALARM_B, String LOW_BAT, String TAMPER, String SUP_MSG, String RESET, String JAM, String LINK_FAIL, String NoLine, String SUBMETER_COUNT, String TEMP_INT, String TEMP_EXT, String HUM_EXT, String HUM_INT, String ALARM_C, String ALARM_D, String ANA_CH1, String ANA_CH2, String ANA_DELTA_TRIG, String ANA_FORMAT, String APP_ID, String APP_ID_HERE, String CHK_IN_RF, String CHK_IN_SER, String CMD, String DELTA_CH1, String DELTA_CH2, String DELTA_COUNT, String DELTA_HUM_EXT, String DELTA_HUM_INT, String DELTA_TEMP_EXT, String DELTA_TEMP_INT, String DST_RADIO, String DST_UID, String ENV_DELTA_TRIG, String EXT_UNIT, String HOP_MARKET, String HOP_SER_NUM, String LEN, String LINK_SUP, String MARKET, String MEASURE_TIME, String MSG_CLASS, String MSG_CNT, String MSG_ERROR, String NID, String NO_AC, String NO_ACKS, String NO_RF_SUP, String NO_SER_SUP, String OPTIONS_HERE, String OUT_FMT, String PROD_ID_HERE, String PRODUCT, String RADIO, String RAPID, String RF_SIG_LEVEL, String RF_SIG_MARGIN, String SRC_MARKET, String SRC_SER_NUM, String SRC_UID, String SUBMETER_LEAKS, String SURVEY_HERE, String TEMP_UNIT, String TRACE_CNT, String WILL_SLEEP, String XMIT_TIME) in C:\Projects\DatabaseAppService\CostWatchDB\Devices.cs:line 771
   at CostWatchDB.EndDevice.LogMsg(IMessage msg) in C:\Projects\DatabaseAppService\CostWatchDB\Devices.cs:line 689
   at CostWatchDB.MainForm.logMsgs(INetwork net, IEvent evt) in C:\Projects\DatabaseAppService\CostWatchDB\MainForm.cs:line 1225
   at Inovonics.EchoStream.Framework.Networks.BaseNetwork.processEvent(IEvent evt)
   at Inovonics.EchoStream.Framework.Networks.BaseGateway.eventCheck()
   at Inovonics.EchoStream.Framework.Networks.BaseGateway.backgroundTask()

---------------------------------------------------------------------------------------------------------------

Any one can help me please?

Thanks,

Amol


SQL Server LocalDB instance fails to start automaticly.

$
0
0
I have a WPF application which is connecting to the SQL Server 2014 Express LocalDB (i.e. a local .mdf database file).

The application uses the EntityFramework.Core library version 7.0.0-rc1-final.

This is the connection string that I am using:
data source=(LocalDb)\InstanceLocalDB; Initial Catalog = MyAppDB; Integrated Security=True; MultipleActiveResultSets=True; Connection Timeout = 10

I do the installation of the SQL Server LocalDB during the application's setup. The same goes for the creation and starting of the SqlLocalDB Instance, which is performed with these command lines:
SqlLocalDB.exe create "SqlLocalDBInstance"
SqlLocalDB.exe start "SqlLocalDBInstance"

The app runs successfully on approximately 50 PCs, but fails on two as follows:

At first, the application successfully communicates with the database, but after awhile, if there is no activity, the instance is stopping automatically (after about 10 minutes), and from then it fails to reconnect again, which result in these following error:

"your sql server installation is either corrupt or has been tampered with (unknown package id)."

On starting the LocalDB instance manually using the same command line mentioned above (SqlLocalDB.exe start "SqlLocalDBInstance") the application successfully communicates with the DB, until the next time the LocalDB instance is stopping, and so on. 

Windows logs gives this following error:

"Windows API call WaitForMultipleObjects returned error code: 575. Windows system error message is: {Application Error}
The application was unable to start correctly (0x%lx). Click OK to close the application."

SQL LocalDB log files provided this notification message:

"The RANU instance is terminating in response to its internal time out. This is an informational message only. No user action is required."

I have installed and re-installed all over again (both Microsoft SQL Server 2014 Express as well as deleted the .mdf and .ldf files), and keep getting the same error.

I noticed that in both problematic machines the UAC was turned off; so I tried to reproduce the issue on test machines with the UAC turned off - there wasn't any reproduction of the problem.    

The 2 problematic machines runs under Windows 10 pro 64bit.



SQL Server Express Bloatware

$
0
0

Is the name "SQL Server Express" some kind of ironic joke? I have been sitting here for hours installing this classic piece of Microsoft bloatware, and now find that I need to install Microsoft Management console along with every other piece of inbuilt bloatware that it encompasses. I have been stuck on the Visual Studio Shell 2015 component...as though I even wanted that rubbish. What a waste of half a day. I think I will delete all this crap and use Postgres or MySQL.

Installing localDB by command line

$
0
0

Hello,

I need to install SQL Server 2017 by command line, but I'm not sure how to install the localDB.

/q /ACTION=Install /FEATURES=SQL,SDK /INSTANCENAME="SQLEXPRESS" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SECURITYMODE=SQL /SAPWD="Sq1S#rv$r"/SQLSVCPASSWORD="Sq1C#ep$q" /SQLSYSADMINACCOUNTS="$SQL_COMPUTER_NAME$\$SQL_USER_NAME$" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IAcceptSQLServerLicenseTerms

This is the command line:

What do I need to add, so the localDB is installed?

Thank you!

VB.Net application created in one computer unable to connect on another pc with sql server exp.

$
0
0

Hello,

I have created a vb.net app. witch connects to database with no problems. I have then created an exe file of this app using Inno Setup program and installed it on a new computer with it's own sql server express installed on it. On the second pc I am able to connect to sql server exp. with ssms and create tables. But the app I created is unable to connect to the server with the connection string of:

"Server=DESKTOP-C4R6I69\SQLEXPRESS;Database=myDB;Trusted_Connection=True;User=sa;Pwd=*******;

What I have tried so far:

- Login with Windows Authentication 

- Login with user name and password (already in Login list)

- Uninstall sql server exp. and custom reinstall

So far I have been unable to connect.

Any help or suggestion is appreciated.

Savalan


sqllocaldb returning FormatMessageW failed.

$
0
0

I can't find information on this anywhere else, so here goes:

When I run sqllocaldb from a command prompt I get "FormatMessageW failed. Error code returned: 15100" and "FormatMessageW failed. Error code returned: 15105" for all commands except "sqllocaldb i".

I have multiple sql server versions installed, but most recently I have installed 13 (sql server 2016.)  I am running from the /130 directory.  I am on windows 10 pro 10.0.17134.

Anybody have a clue on this?  Any reason why the "i" parameter works OK but no others?

Viewing all 3319 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>