Click here to Skip to main content
15,891,777 members
Home / Discussions / Database
   

Database

 
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 
Questioncreating view for Month filter facility Pin
rrrriiizz12-Feb-07 21:43
rrrriiizz12-Feb-07 21:43 
AnswerRe: creating view for Month filter facility [modified] Pin
Krish - KP13-Feb-07 2:59
Krish - KP13-Feb-07 2:59 
GeneralRe: creating view for Month filter facility Pin
rrrriiizz13-Feb-07 19:36
rrrriiizz13-Feb-07 19:36 
GeneralRe: creating view for Month filter facility Pin
Krish - KP15-Feb-07 3:14
Krish - KP15-Feb-07 3:14 
Questionexplicit way of triming string parameter Pin
firestoper12-Feb-07 20:16
firestoper12-Feb-07 20:16 
AnswerRe: explicit way of triming string parameter Pin
Sylvester george13-Feb-07 0:36
Sylvester george13-Feb-07 0:36 
GeneralRe: explicit way of triming string parameter Pin
firestoper13-Feb-07 14:40
firestoper13-Feb-07 14:40 
QuestionSQL and Images Pin
Illegal Operation12-Feb-07 19:11
Illegal Operation12-Feb-07 19:11 

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.