Ask a Question related to ASP Database, Design and Development.
-
Aaron [SQL Server MVP] #1
Re: Which db connection is better? DSN vs. straight
> hard code the connection into your code calling the servername and
databasefile)> name directly (whether you place it in an include or in the Web.configDSN> or you can call a DSN where the only thing you have to do is give it theODBC is deprecated. Use OLEDB / DSN-less whenever possible.> name (you can add db name, username and password if you need to). The DSN
> connection then relies on the ODBC connector you created earlier.
[url]http://www.aspfaq.com/2126[/url]
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
Aaron [SQL Server MVP] Guest
-
EMail straight from Flash
Hi, hope you can help! I have created a support system that will tell the user (by a green or red light) that a range of devices work (by pinging... -
Straight connectors?
Hi, is it possible to create straight connectors in Freehand? E.g. from one corner of a rectangle to a corner of another rectangle, i.e. from one... -
Rotation but keep going straight???
I have model that I'm translating along the x axis e.g.(pModel.translate(2,0,0)). At a certian point on the x axis e.g.(if pModel.transform.position... -
what exactly do you need to escape? (I can never get this straight)
Steve <me@home.com> wrote: You never *need* to escape slash. The only time you might want to escape it is inside a quote-like operator that has... -
drawing a straight line!!! IS THIS ACTUALLY POSSIBLE??
don't use the shift key, and drag the line out by hand, check that the top and bottom rect points are only 1 pixel apart and you will have a... -
cheezebeetle #2
Re: Which db connection is better? DSN vs. straight
Interesting, but all I am seeing is "management issues" if you don't own the
server. I do. If you have connections to multiple dbs then you must have
multiple datasource files (includes), which require you to make a change in
your actual code, when migrating from dev. to staging to production.
Everytime you make this migration for a new/updated complete site or
new/updated section you have to go into the code and change it. As opposed
to setting the dsn up once, with the same name across all servers.
What about security. Having the DSNless connection string carrying the
connection info such as username and password is dangerous as well. But of
course DSN connections have their security concerns too.
ODBC is deprecated? Meaning what exactly? MS doesn't recommend it anymore?
I would like to hear a little more "reasons" behind each for justification
of choice.
More discussion?
Brian
"Aaron [SQL Server MVP]" wrote:
> database> > hard code the connection into your code calling the servername and> file)> > name directly (whether you place it in an include or in the Web.config> DSN> > or you can call a DSN where the only thing you have to do is give it the>> > name (you can add db name, username and password if you need to). The DSN
> > connection then relies on the ODBC connector you created earlier.
> ODBC is deprecated. Use OLEDB / DSN-less whenever possible.
> [url]http://www.aspfaq.com/2126[/url]
>
> --
> [url]http://www.aspfaq.com/[/url]
> (Reverse address to reply.)
>
>
>cheezebeetle Guest
-
Bob Barrows [MVP] #3
Re: Which db connection is better? DSN vs. straight
cheezebeetle wrote:
You failed to follow this link in the article:>
> ODBC is deprecated? Meaning what exactly? MS doesn't recommend it
> anymore?
>
> I would like to hear a little more "reasons" behind each for
> justification
> of choice.
>
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ado_deprecated_components.asp[/url]
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
joker #4
Re: Which db connection is better? DSN vs. straight
Don't forget that ODBC uses more processor time then native jet drivers.
So stop using it. You will see an improvement in the speed of you
database applications when you do.
cheezebeetle wrote:
> Interesting, but all I am seeing is "management issues" if you don't own the
> server. I do. If you have connections to multiple dbs then you must have
> multiple datasource files (includes), which require you to make a change in
> your actual code, when migrating from dev. to staging to production.
> Everytime you make this migration for a new/updated complete site or
> new/updated section you have to go into the code and change it. As opposed
> to setting the dsn up once, with the same name across all servers.
>
> What about security. Having the DSNless connection string carrying the
> connection info such as username and password is dangerous as well. But of
> course DSN connections have their security concerns too.
>
> ODBC is deprecated? Meaning what exactly? MS doesn't recommend it anymore?
>
> I would like to hear a little more "reasons" behind each for justification
> of choice.
>
> More discussion?
>
> Brian
>
>
>
> "Aaron [SQL Server MVP]" wrote:
>
>>>>>>hard code the connection into your code calling the servername and
>>database
>>>>>>>name directly (whether you place it in an include or in the Web.config
>>file)
>>>>>>>or you can call a DSN where the only thing you have to do is give it the
>>DSN
>>>>>>>name (you can add db name, username and password if you need to). The DSN
>>>connection then relies on the ODBC connector you created earlier.
>>ODBC is deprecated. Use OLEDB / DSN-less whenever possible.
>>[url]http://www.aspfaq.com/2126[/url]
>>
>>--
>>[url]http://www.aspfaq.com/[/url]
>>(Reverse address to reply.)
>>
>>
>>joker Guest



Reply With Quote

