Click here to Skip to main content
15,914,416 members
Home / Discussions / Database
   

Database

 
QuestionOleDbCommand Pin
TheJudeDude13-Feb-07 7:25
TheJudeDude13-Feb-07 7:25 
AnswerRe: OleDbCommand Pin
andyharman13-Feb-07 7:53
professionalandyharman13-Feb-07 7:53 
GeneralRe: OleDbCommand Pin
TheJudeDude13-Feb-07 9:27
TheJudeDude13-Feb-07 9:27 
GeneralRe: OleDbCommand Pin
TheJudeDude13-Feb-07 10:00
TheJudeDude13-Feb-07 10:00 
AnswerRe: OleDbCommand Pin
TheJudeDude13-Feb-07 11:13
TheJudeDude13-Feb-07 11:13 
Questiondeleting data from datagrid Pin
minkinin13-Feb-07 3:21
minkinin13-Feb-07 3:21 
AnswerRe: deleting data from datagrid Pin
Pete O'Hanlon13-Feb-07 10:16
mvePete O'Hanlon13-Feb-07 10:16 
Questiondeleting data from datagrid Pin
minkinin13-Feb-07 3:19
minkinin13-Feb-07 3:19 
AnswerRe: Query error Pin
Krish - KP13-Feb-07 2:53
Krish - KP13-Feb-07 2:53 
GeneralRe: Query error Pin
Saira Tanwir13-Feb-07 2:55
Saira Tanwir13-Feb-07 2:55 
GeneralRe: Query error Pin
Krish - KP13-Feb-07 3:04
Krish - KP13-Feb-07 3:04 
GeneralRe: Query error Pin
Saira Tanwir13-Feb-07 3:10
Saira Tanwir13-Feb-07 3:10 
QuestionProblem Code Pin
Sam Heller13-Feb-07 1:55
Sam Heller13-Feb-07 1:55 
AnswerRe: Problem Code Pin
Colin Angus Mackay13-Feb-07 2:14
Colin Angus Mackay13-Feb-07 2:14 
AnswerRe: Problem Code Pin
Pete O'Hanlon13-Feb-07 2:15
mvePete O'Hanlon13-Feb-07 2:15 
QuestionProblematic connection string to SQL Express 2005 Pin
Joe Smith IX13-Feb-07 1:20
Joe Smith IX13-Feb-07 1:20 
Hi all,
I have a problem that have haunted me for days and no suggestion I tried from CP worked... Please help!

I have installed SQL Express 2005 on Win2003 server and created a database. Authentication is in Mixed Mode. No firewall.
Here is what happened:

LOCALLY: (login as administrator)
1. I can open it using SQL Server Management Studio.
2. I SUCCESSFULLY connect to it programmatically (VC++) with any of the following connection strings:

Provider=SQLNCLI;Server=myComputerName\MYSQLEXPRESS;Database=myDatabase;Uid=myUsername; Pwd=myPassword;<br />
Provider=SQLNCLI;Server=myComputerName\MYSQLEXPRESS;Database=myDatabase;Trusted_Connection=yes;<br />


REMOTELY on XP SP2: (login as administrator and with SQL Server Native Client installed)
1. I can open it using SQL Server Management Studio (in both modes, SQL and Windows).
a. This confirms that I have correctly set up and enabled remote connection.
b. I enabled remote connection using both TCP/IP and named pipes.
c. I enabled Shared memory, Named pipes, and TCP/IP protocols.
d. I enabled and activated SQL Server Browser

2. I FAILED to connect programmatically. Here are some connection strings I've tried:
(most error messages: "Login failed for user 'admin'." (which is a renamed 'sa').
<br />
Provider=SQLNCLI;Server=myComputerName\MYSQLEXPRESS;Database=myDatabase;Uid=myUsername; Pwd=myPassword;<br />
Provider=SQLOLEDB;Server=myComputerName\MYSQLEXPRESS;Database=myDatabase;Uid=myUsername; Pwd=myPassword;<br />
<br />
Provider=SQLNCLI;Server=myComputerName\MYSQLEXPRESS,1433;Database=myDatabase;Uid=myUsername; Pwd=myPassword;<br />
Provider=SQLOLEDB;Server=myComputerName\MYSQLEXPRESS,1433;Database=myDatabase;Uid=myUsername; Pwd=myPassword;<br />
<br />
Provider=SQLNCLI;Server=myComputerName\MYSQLEXPRESS;Database=myDatabase;Trusted_Connection=yes;<br />
Provider=SQLOLEDB;Server=myComputerName\MYSQLEXPRESS;Database=myDatabase;Trusted_Connection=yes;<br />
<br />
Provider=SQLNCLI;Server=myComputerName\MYSQLEXPRESS,1433;Database=myDatabase;Trusted_Connection=yes;<br />
Provider=SQLOLEDB;Server=myComputerName\MYSQLEXPRESS,1433;Database=myDatabase;Trusted_Connection=yes;



I've read thru www.connectionstrings.com and I don't think I missed anything, did I?
Did anyone have similar problem before, or have any idea why?
Thanks a lot.
AnswerRe: Problematic connection string to SQL Express 2005 Pin
Joe Smith IX15-Feb-07 2:02
Joe Smith IX15-Feb-07 2:02 
Questionunicode problem Pin
.NetRams13-Feb-07 1:12
.NetRams13-Feb-07 1:12 
AnswerRe: unicode problem Pin
Mike Dimmick13-Feb-07 1:34
Mike Dimmick13-Feb-07 1:34 
GeneralRe: unicode problem Pin
.NetRams13-Feb-07 1:53
.NetRams13-Feb-07 1:53 
QuestionExpensive Update Pin
Brady Kelly12-Feb-07 22:15
Brady Kelly12-Feb-07 22:15 
QuestionRe: Expensive Update Pin
andyharman12-Feb-07 22:27
professionalandyharman12-Feb-07 22:27 
AnswerRe: Expensive Update Pin
Colin Angus Mackay12-Feb-07 22:35
Colin Angus Mackay12-Feb-07 22:35 
AnswerRe: Expensive Update Pin
Pete O'Hanlon12-Feb-07 22:43
mvePete O'Hanlon12-Feb-07 22:43 
GeneralRe: Expensive Update Pin
Brady Kelly12-Feb-07 22:49
Brady Kelly12-Feb-07 22:49 

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.