Click here to Skip to main content
15,902,939 members
Home / Discussions / Database
   

Database

 
AnswerRe: Update a column Pin
loyal ginger20-Jan-10 2:03
loyal ginger20-Jan-10 2:03 
AnswerRe: Update a column Pin
loyal ginger20-Jan-10 4:11
loyal ginger20-Jan-10 4:11 
GeneralRe: Update a column Pin
Hum Dum22-Jan-10 17:47
Hum Dum22-Jan-10 17:47 
QuestionJoin query Pin
pkj19-Jan-10 17:22
pkj19-Jan-10 17:22 
AnswerRe: Join query Pin
dan!sh 19-Jan-10 18:51
professional dan!sh 19-Jan-10 18:51 
AnswerRe: Join query Pin
Pranay Rana19-Jan-10 19:41
professionalPranay Rana19-Jan-10 19:41 
QuestionInstalling a database using MSVS 2010 Pin
JaeBeam19-Jan-10 11:34
JaeBeam19-Jan-10 11:34 
AnswerRe: Installing a database using MSVS 2010 Pin
Bassam Saoud20-Jan-10 8:37
Bassam Saoud20-Jan-10 8:37 
QuestionSQL Query : Multiple joins [modified] Pin
DotNetXenon19-Jan-10 11:11
DotNetXenon19-Jan-10 11:11 
AnswerRe: SQL Query : Multiple joins Pin
SeMartens19-Jan-10 20:18
SeMartens19-Jan-10 20:18 
QuestionT-SQL: How to force rows insertion ignoring transactions? Pin
Yuval Naveh19-Jan-10 8:36
Yuval Naveh19-Jan-10 8:36 
AnswerRe: T-SQL: How to force rows insertion ignoring transactions? [modified] Pin
Eddy Vluggen19-Jan-10 10:20
professionalEddy Vluggen19-Jan-10 10:20 
GeneralRe: T-SQL: How to force rows insertion ignoring transactions? Pin
Yuval Naveh20-Jan-10 2:58
Yuval Naveh20-Jan-10 2:58 
AnswerRe: T-SQL: How to force rows insertion ignoring transactions? Pin
debrah.h4819-Jan-10 19:00
debrah.h4819-Jan-10 19:00 
GeneralRe: T-SQL: How to force rows insertion ignoring transactions? Pin
Yuval Naveh20-Jan-10 2:59
Yuval Naveh20-Jan-10 2:59 
QuestionCentralized Query Optimization Pin
AmbiguousName19-Jan-10 6:34
AmbiguousName19-Jan-10 6:34 
AnswerRe: Centralized Query Optimization Pin
Eddy Vluggen19-Jan-10 9:43
professionalEddy Vluggen19-Jan-10 9:43 
GeneralRe: Centralized Query Optimization Pin
AmbiguousName19-Jan-10 21:14
AmbiguousName19-Jan-10 21:14 
GeneralRe: Centralized Query Optimization Pin
Eddy Vluggen20-Jan-10 0:15
professionalEddy Vluggen20-Jan-10 0:15 
QuestionBULK INSERT problem with SQL Server 2008 DATE format Pin
Gawiz19-Jan-10 6:16
professionalGawiz19-Jan-10 6:16 
AnswerRe: BULK INSERT problem with SQL Server 2008 DATE format Pin
Eddy Vluggen19-Jan-10 11:04
professionalEddy Vluggen19-Jan-10 11:04 
QuestionOpening A Database Connection [SOLVED] Pin
#realJSOP19-Jan-10 4:24
professional#realJSOP19-Jan-10 4:24 
I've written a program using C# that is supposed to access a database. When I try to actually open the connection, I get this exception:

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

The database access code is contained in a separate assembly. This same assembly is used in another program (written in VB if that matters) that connects to the same database without any problems at all (on the same machine, with the same user logged in, and using the same connection string).

Why am I getting this exception in one program and not in another?

EDIT ===================

Here are the constructors for both apps:

VB: Dim myClass as new MyClass("abc", "def\geh")
C# MyClass myClass = new MyClass("abc", "def\geh");

The problem is that VB automatically escapes the backlslash, but c# requires @"def\geh"...

Stupid programmer tricks...

.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

modified on Tuesday, January 19, 2010 2:32 PM

AnswerRe: Opening A Database Connection Pin
loyal ginger19-Jan-10 4:34
loyal ginger19-Jan-10 4:34 
GeneralRe: Opening A Database Connection [modified] Pin
#realJSOP19-Jan-10 4:57
professional#realJSOP19-Jan-10 4:57 
GeneralRe: Opening A Database Connection Pin
Eddy Vluggen19-Jan-10 5:08
professionalEddy Vluggen19-Jan-10 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.