Skip to main content

Questions tagged [connection-string]

A string containing information necessary for connecting to a service, usually database.

connection-string
Filter by
Sorted by
Tagged with
-3 votes
1 answer
53 views

why this doesn't activate?

when I'm going to create ADO.NET Entity Data model and after selected a database its show this 2 radio buttons deactivated. How to activate those radio buttons?
P R 3 A C H 3 R's user avatar
-3 votes
1 answer
5k views

C# Create SqlConnection instance with Connection String

I tried to create SqlConnection object with connection string such as SqlConnection con = new SqlConnection("Connection string"); However, when the program runs, exception happens, and the exception ...
user3839421's user avatar
-3 votes
1 answer
93 views

How to make my Connection string universal in C#, aka how to make it usable for every user of my app?

Ok, so i am doing my final project for high school in C#. I had to include database for best grade. My proffesor says she can't start my program because she can't read my database file on her PC. I ...
Matija Živković's user avatar
-3 votes
1 answer
65 views

Connection string in EF

I’m a student. And this is my first production level project. I’m developing a WPF application using Entity Framework, which will be running only on a tab. I have problem in choosing a database. Since ...
Niroshan's user avatar
-3 votes
1 answer
1k views

ODBC Driver error

I am getting following error in my website: "Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that ...
Usman Abbasi's user avatar
-3 votes
1 answer
1k views

How to connect ASP.NET Web API for SQL Server database on Somee.com? [closed]

A string of this type is issued by the site SOMEE to connect to SQL Server: workstation id=xxx.mssql.somee.com;packet size=4096;user id=xxxx;pwd=xxxx;data source=xxxx.mssql.somee.com;persist security ...
komilffo_d's user avatar
-3 votes
2 answers
1k views

you can see SQL connection string username and password in compiled DLL when you store connection string in app.config [duplicate]

I have a .net class library that compiles to dll. in this project I have dataset. under my project - settings.settings I keep my connection string. it is SQL authentication. Then when I did a search ...
BobNoobGuy's user avatar
  • 1,625
-3 votes
1 answer
150 views

connection string in c#

I have to access data from an MS Access DB stored in a central server.What should be the connection string in c# for it? Currently the connection string for the access database stored in my local ...
Gaurav Singh's user avatar
-4 votes
2 answers
82 views

Connection string int asp error [closed]

I have error in line 20 here is the error line: int temp = Convert.ToInt32(com.ExecuteScalar().ToString()); Page for my code: Pastebin Page error that show up:Pastebin
herobrinebrother zoro's user avatar
-4 votes
1 answer
320 views

Why my app.config do not contain connectionString (c#) [duplicate]

?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> </startup> </...
B. Nahil's user avatar
-4 votes
3 answers
3k views

How to test connection string?

I have a simple issue, I am trying to check if the connection string in App.config is valid and the server & database inside of it are accessible. I have tried the following code but still it ...
Medo's user avatar
  • 111
-4 votes
1 answer
135 views

Unhandled exception of type System.ArguementException while creating C# dictionary from SQL Table

So I'm writing a console application that's made to grab info from an SQLServer table (photo urls) and then iterate, download, and save them. Right now I'm just trying to get it to grab the urls from ...
GryffensBane's user avatar
-4 votes
3 answers
195 views

The connection inside function not called [closed]

this is my snippet , please help me why the con .open is not working inside the function tabledel i want to delete the table once i press the button , the connection gets opened for the first time ...
kavinhuh's user avatar
  • 739
-4 votes
1 answer
83 views

Error while saving changes to custom config file [closed]

I'm using a custom config file. I can fetch data from it but unable to modify it. app.config file: <configuration> <configSections> <section name="newAppSettings" type="...
Abhishek Thakur's user avatar
-4 votes
1 answer
318 views

Creating social website in asp.net

I'm creating a social Networking Website for that I used "Social Networking Website in ASP.NET - Open Source" from http://www.c-sharpcorner.com/UploadFile/rahul4_saxena/social-networking-website-in-...
Veenu SP's user avatar
-4 votes
1 answer
225 views

How to create connection string that independent on instance and server name?

i want my application can run on every device that maybe have different server name and instance. my connection string is below: DBDataContext db = new DBDataContext(@"Data Source=(LocalDB)\v11.0;...
Rashed DIP's user avatar
-5 votes
1 answer
178 views

Issue in Connection String C# and Visual studio [closed]

I am trying to connect to SQL Server 2008 using C# in Visual 2010. I am having an issue in that ![enter image description here][1] Can anyone identify that issue and help me regarding that issue? ...
imran001's user avatar
-5 votes
2 answers
4k views

How to Connect sql server with C#? [closed]

I am facing problem in connectivity to my database does anyone know what causes this problem? Thanks code is: private void button1_Click(object sender, System.EventArgs e) { string ...
Umair Javed's user avatar
-5 votes
1 answer
408 views

Finding error after publish my asp.net web application on Godaddy

I have already publish my web application but i am facing an error i tried a lot to fix it and i search a lot on web but i couldnt fix it, so please could you help me to fix this issue. <...
Znar's user avatar
  • 11
-9 votes
2 answers
708 views

Comparing two Sub-Strings of two Strings between two set positions (integer values) in C [closed]

I have two strings and want to compare them, but between two variables. Example: String a = "stackoverflow" and String b = "stacknotoverflow". I want to check if every char between the 5th position of ...
chilla77's user avatar

1
89 90 91 92
93