Click here to Skip to main content
15,908,013 members
Home / Discussions / Database
   

Database

 
GeneralConnection Object Pin
EdbertP11-Oct-04 20:29
EdbertP11-Oct-04 20:29 
GeneralRe: Connection Object Pin
Colin Angus Mackay11-Oct-04 22:55
Colin Angus Mackay11-Oct-04 22:55 
GeneralRe: Connection Object Pin
EdbertP12-Oct-04 14:20
EdbertP12-Oct-04 14:20 
GeneralRe: Connection Object Pin
Colin Angus Mackay12-Oct-04 21:16
Colin Angus Mackay12-Oct-04 21:16 
GeneralRe: Connection Object Pin
EdbertP13-Oct-04 17:17
EdbertP13-Oct-04 17:17 
GeneralUnicode to Big-5 conversion (Any ideas?) Pin
Its due when11-Oct-04 20:06
Its due when11-Oct-04 20:06 
Generalexcel and oledbexception Pin
its_skar11-Oct-04 15:34
its_skar11-Oct-04 15:34 
QuestionUnforseen problem? Pin
Jerry Hammond11-Oct-04 5:50
Jerry Hammond11-Oct-04 5:50 
Using some code I found on MSDN I have been learning how to connect to a MSAccessDB. The code reads like this:

string DbPath = Server.MapPath("shiplist.mdb");<br />
			string ConnStr;<br />
			ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;"+<br />
				@"Data Source="+DbPath+";";


Would it not be more elegant to write it as follows:
string ConnStr="Provider=Microsoft.Jet.OLEDB.4.0" + @"Data Source="Server.MapPath("shiplist.mbd")";

Or is there some hidden pitfall that requires that I declare the directory path and DB as a string first as shown in the first example?

Best,
Jerry

I Do Whatever My Rice Krispies Tell Me To.
Toasty0.com
AnswerRe: Unforseen problem? Pin
Colin Angus Mackay11-Oct-04 6:05
Colin Angus Mackay11-Oct-04 6:05 
GeneralRe: Unforseen problem? Pin
Mike Dimmick11-Oct-04 9:59
Mike Dimmick11-Oct-04 9:59 
GeneralRe: Unforseen problem? Pin
Colin Angus Mackay11-Oct-04 10:08
Colin Angus Mackay11-Oct-04 10:08 
GeneralRe: Unforseen problem? Pin
Mike Dimmick11-Oct-04 10:31
Mike Dimmick11-Oct-04 10:31 
QuestionAre distributed transactions in MS Access possible ? Pin
Daniel Kailer11-Oct-04 4:13
Daniel Kailer11-Oct-04 4:13 
AnswerRe: Are distributed transactions in MS Access possible ? Pin
Vasudevan Deepak Kumar13-Oct-04 2:36
Vasudevan Deepak Kumar13-Oct-04 2:36 
Generalmysql with asp.net Pin
hazzem elrefai11-Oct-04 1:48
hazzem elrefai11-Oct-04 1:48 
GeneralRe: mysql with asp.net Pin
Colin Angus Mackay11-Oct-04 2:33
Colin Angus Mackay11-Oct-04 2:33 
GeneralRe: mysql with asp.net Pin
Gavin Jeffrey11-Oct-04 3:27
Gavin Jeffrey11-Oct-04 3:27 
GeneralRe: mysql with asp.net Pin
Vasudevan Deepak Kumar13-Oct-04 2:35
Vasudevan Deepak Kumar13-Oct-04 2:35 
GeneralSQL query required Pin
Imtiaz Murtaza10-Oct-04 1:54
Imtiaz Murtaza10-Oct-04 1:54 
GeneralRe: SQL query required Pin
suzyb11-Oct-04 1:04
suzyb11-Oct-04 1:04 
GeneralRe: SQL query required Pin
Michael Potter11-Oct-04 3:18
Michael Potter11-Oct-04 3:18 
GeneralRe: SQL query required Pin
mysorian14-Oct-04 18:38
professionalmysorian14-Oct-04 18:38 
GeneralMemo field not returning more than 256 characters. Pin
brdavid9-Oct-04 8:26
brdavid9-Oct-04 8:26 
GeneralRe: Memo field not returning more than 256 characters. Pin
Nemanja Trifunovic9-Oct-04 8:36
Nemanja Trifunovic9-Oct-04 8:36 
GeneralRe: Memo field not returning more than 256 characters. Pin
brdavid9-Oct-04 12:13
brdavid9-Oct-04 12:13 

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.