connection-string

C# Connecting to Access DB with no install

空扰寡人 提交于 2020-01-16 09:02:31
问题 I have an Access database (.accdb) and I have a WPF application trying to connect to it. It seems that I don't have Microsoft.ACE.OLEDB.12.0; installed. Results of: OleDbEnumerator enumerator = new OleDbEnumerator(); var t = enumerator.GetElements(); var a = "s"; foreach (DataRow row in t.Rows) { Console.WriteLine(row[0]); } on x86 CPU Gives the following results SQLOLEDB MSDMine MSDataShape SQLNCLI11 ADsDSOObject MSOLEDBSQL MSOLEDBSQL Enumerator MSDMine Enumerator SQLNCLI11 Enumerator

Azure Service Bus connection string results in CloudStorageAccount.Parse error

纵饮孤独 提交于 2020-01-16 05:12:06
问题 The following call CloudStorageAccount.Parse(<connection-string>); returns this error: "No valid combination of account information found." with the connection string copied directly from the CONNECTION STRING–PRIMARY KEY field on the Azure service Bus Access Policies -> Policy blade, which looks like this: Endpoint=sb://xxx.servicebus.windows.net/;SharedAccessKeyName=xxx;SharedAccessKey=xxx;EntityPath=xxx I need CloudQueueClient and CloudQueue instances to do queue manipulation. Am I missing

odbc connection string dosen't work on windows 7

妖精的绣舞 提交于 2020-01-14 22:39:13
问题 I use ODBC connection for my application (controlpanel -> administrativetools -> odbc -> DSN) to sql server 2008, and windows authentication it works perfect on windows xp, but now I run it on windows7 and sql server 2008 with sql server authentication. when I make the DSN and query the connection its ok and I got this message (TESTS COMPLETED SUCCESSFULLY!) but when I run the application I got this error (ERROR [28000] [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ''.

Collation error 5175 in a conection to Advantage ADT files

一笑奈何 提交于 2020-01-14 10:08:14
问题 I am developing an application in VB.NET which must be connected to a table Advantage (ADT) I use the following connection string: DSN=kantechX;DataDirectory=C:\DB\Data;SERVER=NotTheServer; Compression=Never;DefaultType=Advantage;Rows=False; collation=SPANISH_VFP_CI_AS_1252;AdvantageLocking=ON;Locking=Record; MemoBlockSize=64;MaxTableCloseCache=5;ServerTypes=1; TrimTrailingSpaces=False;EncryptionType=RC4;FIPS=False When the connection is established the following error is generated: Error

Why am I getting “The magic number in GZip header is not correct.” error using OWIN auth against Azure SQL

送分小仙女□ 提交于 2020-01-14 09:39:30
问题 Nothing on Google or SO relates to this specific problem, so asking a new question. I created a brand new Asp.Net MVC Web Application with the standard user-security option. I also created an empty database in Azure. I did nothing but change the default connection string to this: <connectionStrings> <add name="DefaultConnection" connectionString="data source=mydatabase.database.windows.net;initial catalog=Feedback;persist security info=True;user id=LeaveFeedbackuser;password=mypassword

Connection string in unit test project to reference database in app_data folder

爱⌒轻易说出口 提交于 2020-01-14 07:51:08
问题 I am looking to reference my database file in my unit test project. This is an ASP.NET MVC app. Please note: I know I should not be accessing the database in my unit tests but this is for a quick fix on one test that I need to have pass just now. After the next milestone I will be mocking the database access methods etc. So here is my connection string in my mvc app web config and the unit test ap.config files <add name="DBConnectionString" connectionString="Data Source=.\SQLEXPRESS

Change the connection string of nopCommerce?

时光怂恿深爱的人放手 提交于 2020-01-13 20:30:11
问题 I am using nopCommerce and I need to remove the connection string in the settings.txt file and insert the web.config file. How can i do this? 回答1: The most straightforward way to move the connection string out of settings.txt and into the web.config is to modify the Nop.Core.Data.DataSettingsManager . Specifically the LoadSettings() and SaveSettings() methods. You can store the connection string wherever you'd like (ideally in web.config), as long as those two methods read and write the

Using a LINQ Where query to get only some of the ConfigurationManager.ConnectionStrings

拟墨画扇 提交于 2020-01-13 08:58:12
问题 My goal is to use a LINQ Where query on the ConfigurationManager.ConnectionStrings collection in a console application (assume a fresh .NET 4.5 console application with a System.Configuration reference added, and a correspodning using statement). I started with this, which does not work : var relevantSettings = ConfigurationManager.ConnectionStrings.Where(s => s.Name.StartsWith("Xyz")); It tells me that: The type arguments for method ' IEnumerable<TSource> System.Linq.Enumerable.Where<TSource

appharbor connection string

眉间皱痕 提交于 2020-01-11 13:08:24
问题 I'm building an ASP.NET MVC3 application that requires access to a database. I've successfully set up the database on my local machine and everything works fine but then I uploaded the app to appharbor.com for testing and now I can't access the database anymore. How do you add a connection string for a SQLEXPRESS database on appharbor.com? The database file is in located in the App_Data folder. I've been trying for days to make it work without avail. I already added the SQL Server add-on on

How to connect to Oracle DB from .NET?

大兔子大兔子 提交于 2020-01-11 08:34:07
问题 When I open SQL Command Line, I write CONNECT username/password@[//]host[:port][/service_name] and it connects me to the database just fine. However, I'm unable to connect from a .NET project using a connection string. I have tried many things such as <add name="ConnectionString" connectionString="Data Source=username/password@[//]host[:port][/service_name];" /> and <add name="ConnectionString" connectionString="server=tcp:host;Initial Catalog=service_name; user id=username; password=password