connection-string

Microsoft SQL Server 2014 over network. Oledb Connection String

依然范特西╮ 提交于 2019-12-12 03:19:50
问题 I cannot find an appropriate connection string to a Microsoft SQL server, it's the 2014 developer edition. My current provider is this: string strAccessConn = "Provider=SQLNCLI11;Data Source=10.211.55.7;Network Library=DBMSSOCN;Initial Catalog=myDataBase;User Id=pos;Password=password;"; However, I get this error, Error For reference, this is my source code. string strAccessConn = "Provider=SQLNCLI11;Data Source=10.211.55.7,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;User Id=pos

SQL Filestream Access Denied

时间秒杀一切 提交于 2019-12-12 03:12:25
问题 I'm attempting to implement BLOB Filestream for uploading and downloading files to the SQL database. Problem is I get Access is Denied error when I attempt to wright to the file. I'm using this as the connection string. <add name="connectionname" connectionString="Data Source=lceinforme;Initial Catalog=DEVDB;Persist Security Info=True;User ID=username;Password=password;Max Pool Size=5000" providerName="System.Data.SqlClient" /> From what I've looked up and understand is that I can't use this

Unable to execute ConnectionString in MS visual Studio 2010

杀马特。学长 韩版系。学妹 提交于 2019-12-12 03:09:08
问题 I've been stuck with this for the past week and would be very glad if you guys could help. I'm working on vb with MS visual studio 2010. I currently have a database under a asp.net folder named "app_data". I'm trying to execute a connectionString command via web.config file. Web Config: <connectionStrings> <add name="mysqlcon" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\public.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"

Connection to Oracle through VBA no longer working

爱⌒轻易说出口 提交于 2019-12-12 02:55:39
问题 I have been using this connection string: fn_Connection_String = "Provider=MSDAORA;Data Source=[address]:1521/orcl;User ID=xxx;Password=xxx" ...and it has been working fine. The IT company that works for my client has reported that the client is unable to use my software any longer, it is not connecting to the database. I test with the Oracle tools and all seems to be well, so I assume the problem is with the provider. I tried this as well and was met with the same error but from different

Unable to authorize despite connection string copied from Azure

孤人 提交于 2019-12-12 02:47:23
问题 I have a site hosted in Azure. It's a vanilla MVC project but when I try to register a user I'm getting an error as follows. Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'BeepBeep'. I'm not sure why it's giving me the error. The connection string in the config files looks like this (change credentials, of course). <add name="DefaultConnection" connectionString=" Server=tcp:f8goq0bvq7.database.windows.net,1433; Database=MyDataBase; User ID=BeepBeep@f8goq0bvq7;

Can't connect to local MySQL database using Crystal Reports

给你一囗甜甜゛ 提交于 2019-12-12 02:46:55
问题 I'm trying to create a report using Crystal Reports and that first requires connecting to my local MySQL Database. I'm using this database connector string: Driver={MySQL ODBC 5.3.6 Driver};Server=localhost:3306;Database=mcs;User=admin;Password=admin123;Option=3 I get this error: The connector is installed and the MySQL database is there. 回答1: start >> search microsoft odbc administrator on user dsn click add >> search mysql odbc (if not found close >> right click on microsoft odbc

No such Table in C# with SQLite

别说谁变了你拦得住时间么 提交于 2019-12-12 02:46:51
问题 I want to make a Report with Microsoft Report Viewer in C# with SQLite DB, I am using SQLite ODBC Driver and when I make DataSet and Data Source to report, it has such Error: Additional information: ERROR [HY000] no such table: Fuel (1) but I have this Table and I have Connection to SQLite DB. Here is Error: and I have Dataset and Database connection: But When I want to load data from Table it retries to connect: Anytime to work with Database it wants to connect to DB again. When I want show

Why setting OLEDBConnection.Connection throws Exception (HRESULT: 0x800A03EC)?

独自空忆成欢 提交于 2019-12-12 02:39:10
问题 I am working with Excel Interop namespace to modify connection string in the Excel Workbook connections. Why when I am trying to set the connection property (MSDN OLEDBConnection.Connection) throws an error on the line of the assignment? Exception from HRESULT: 0x800A03EC application = new Application(); Workbook wb = application.Workbooks.Open(file.FullName); Sheets wbs = wb.Worksheets; IEnumerable<Workbook> workbooks = application.Workbooks.Cast<Workbook>(); foreach (var connection in wb

Keyword not supported in MySQL's connection string

浪子不回头ぞ 提交于 2019-12-12 02:37:35
问题 To get the connection string from my App.config I write this code: ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings["livresEntities"]; string connectString = settings.ConnectionString; Console.WriteLine("Original: "+ connectString); The result (I use Data Model .edmx file): Original: metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=MySql.Data.MySqlClient;provider connection string="server=localhost;user id=root;persistsecurityinfo=True

ASP.NET web service does not connect with database in IIS7

情到浓时终转凉″ 提交于 2019-12-12 02:29:47
问题 When I try to publish my asp.net web service application on IIS7, my application works perfect when debugging with Visual Studio. But, when I try to access my webservice from IIS by typing on browser: http://localhost:port/Service1.asmx and click on the method and then click "Invoke" it gives me this error: System.Data.SqlClient.SqlException: The SELECT permission was denied on the object 'Marimi', database 'eMagazin', schema 'dbo'. at System.Data.SqlClient.SqlConnection.OnError(SqlException