|
Wow... so many questions
Well I'll try to answer one by one.
Hockey wrote:
What does a DSN do exactly...is this seperate from a connection...?
DSN just points to connection. So you can change Connection without replacing Connection string in ALL of your code. This is what it for.
Hockey wrote:
I was told a DSN is a entry in windows registry, which makes sense...but why would hosting services ask how many you want...?
Have no idea why hosting company asks how many you want. Usually they won't care about it.
Hockey wrote:
Do I need a unique DSN for each database file I have...?
Yes, DSN should be unique per database/connection. Don't see why you need 2 DSNs pointing to same database with same properties.
Hockey wrote:
Why would a hosting company ask how much DB space I want/need...?
DB space makes sence for SQL server. More space - more data you can store in your database. Because at the end all database stored in files, whatever db it is, SQL, Oracle, Access, etc.
Hockey wrote:
How is this different from normal domain space...?
Depends on hosting company. Usually they have SQL server on separate computer. Also you may have only 2-3 ASP pages, but a huge database. That's why it is separated. For example, the database of the company I'm working in, is around 2Gb.
Hockey wrote:
Do they keep the DB in a seperate directory, secure away from the root (thus requiring DSN)...?
Partially answered ikn previous question, but have to add that DSN is not because of security, but because of easy using.
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Thanx for feedback.
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I need to find documentation on ActiveXScript Syntax. Thank you in advance
QMuffs
|
|
|
|
|
If you are creating an ActiveX script inside a DTS package, you can use VBScript, not sure about JScript though.
Do you have a particular question?
Nick Parker
|
|
|
|
|
I just wanted to know if anyone knew where there was documentation because some of the commands in ActiveXScript are not the same as the ones I'm used to in VB.
QMuffs
|
|
|
|
|
qmuffs wrote:
some of the commands in ActiveXScript are not the same as the ones I'm used to in VB.
Understood, when I had to create my first real DTS package I was also somewhat lost, some of the things like:
Main = DTSTaskExecResult_Success
had me confused. There is a really good book on DTS for SQL Server 2000 that I pointed out to my boss, he looked at it and we picked it up, quite a bit of information by Wrox. Here is the link on Amazon to buy the book. Professional SQL Server 2000 DTS [New Window]
HTH
Nick Parker
|
|
|
|
|
Hello all,
I identified that an ADO Recordset would be perfect for a VB app I'm writing that scans information on a server to store in memory. Note, I am not connecting to a database.
I intend to create a table from the findings and store it to a file when the application quits. This would theoretically give me easy access to organize, filter, and cache the information in question.
The problem: How? I can create a RecordSet but I can't call AddNew unless it's Open. If I try to open on a filename, it needs the file to both exist and contain data. If I open with an ADODB.Stream object, I get an error about the stream having no data.
|
|
|
|
|
Well, basicly you need to add fields before opening the recordset, then you can open it and add data as you'd like
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
I am using an ODBC driver that does not return any records when I select asking for only records with a certain field blank.
select * from file where file_field = ''
returns nothing. However,
select * from file where file_field <> ''
does return all but the records where file_field is blank. Other drivers I've used didn't have a problem with this, just saying "where file_field = ''" works fine. Is there another way to designate a blank field that I'm not familiar with?
Ed
|
|
|
|
|
Ed Hill wrote:
Is there another way to designate a blank field that I'm not familiar with?
Ed, are you checking for a Null value:
Select * from <code>[YourTable]</code> Where file_field Is Null
You may be storing blank spaces which is different than just '' and Null values all together. Something like this may work for you depending on your database, if I remember exactly:
Select * from file_field where substring(file_field, 1, len(file_field)) <> ''
HTH
Nick Parker
|
|
|
|
|
THANKS NICK!!!!!
IS NULL works perfectly!
Ed
|
|
|
|
|
Howdy, does anybody know how to connect to an MSAccess database directly (using the file not a DSN) with VC without using MFC?
This database is also encrypted so it has a cmb & wgf as opposed to an mdb.
Some source or examples would be a life saver
I'll be eternally endebted to anybody who can help
Thanks
Desperate Damian
|
|
|
|
|
There are lot of articles in CP like this one:
http://codeproject.com/database/caaadoclass1.asp
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
There are many ways to do this:
* ODBC SDK
* DAO SDK
* DAO Automation interface
* ADO Automation interface
Since I cover each of these in my Visual C++ .NET bible, let me know which one you're interested in and I'll send you a simple maintanence-like application for that data access technology.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
Thanks, however my spec just changed again and the client want me to use SQL which isn't a problem. However they want me to access it using OLE which is a problem for me (I don't have a problem using ADO and ODBC but OLE looks ghastly to me). You can't help here can you ?????
Thanks
Damian Del Campo
|
|
|
|
|
Sorry mate. I have little to no OLEDB experience. It just never made sense as ADO is so much easier to use.
Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
Yes you can use DAO sdk (you can find this in the last cd of VS 6.0)
Or you can use ADO...
In my Classes I use MFC, but here you can see any samples without MFC....
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
The MS DataGrid is used in my program,but it doesn't worked on the machine whithout VC++ installed. I have registered the msdatgrd.ocx and have installed the MDAC2.7. The Error messages is : " Can't initialize data bindings" ,
m_myDataGrid.SetRefDataSource( (LPUNKNOWN)rs ); //Error Message Ocurrors
VCBeginer
|
|
|
|
|
Just a guess:
Register msadodc.ocx too.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
I have the same problem with "Windows 7 RC", with XP and older no problem, I have registred
regsvr32 "Msadodc.ocx" regsvr32 "Msdatgrd.ocx" regsvr32 "Msdatlst.ocx"
Msadodc loaded data normally but Msdatgrd SetRefDataSource rise error "Can't initialize data bindings"
|
|
|
|
|
Hi,
What means this :
Optional feature not implemented
State:S1C00,Native ,Origin:[Microsoft][ODBC SQL Server Driver]
???? Is this any error ??
....
m_rec->Open(AFX_DB_USE_DEFAULT_TYPE,Sql.GetBuffer(0));
....
For connection to SQL server Iam using CDatabase+CRecordset
Thanks.
Wiizi
|
|
|
|
|
I don't know what is your specific problem, but ODBC Drivers developers doesn't necessarily implement every feature, there are optional features wich may or may not be present, that depends on the driver implementor.
Hope this helps.
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
I'm using Microsoft Access to migrate some data from one database to another. It's a great tool, by the way, especially since you create link to the tables and then do queries that join them as if they were all from one database.
So what's my problem?
I need to do some manipulation of the data before I can migrate it. So I basically need to write either some "Macros" or "Modules" to do it (don't know which). I need some guidance as to how do this. For example, what objects should I use to perform queries and loop through the records, etc.? I don't know anything about Access's object model.
Can anyone point me to some online help or tutorials that can get me started?
Thanks in advance,
Alvaro
Kinda hard to sign my name without anything to write with. Anyone got a pen?
|
|
|
|
|
If you go into create a new module you can start by writing some function, this should get you started:
Function ModifyValues()
Dim sql as String
Dim conn as New ADODB.Connection
Dim adors as New ADODB.Recordset<p><pre>
conn.ConnectionString = [YourConnectionStringGoesHere]
conn.Open
adors.ActiveConnection = conn
sql = "Select * from [YourTableHere] "
adors.Open(sql)
do until adors.EOF
Make your changes here
loop
adors.Close
conn.Close
set adors = nothing
set conn = nothing
End Function
Nick Parker
J
This is a non-Calculus course as long as you know things like line integrals and surface integrals...
|
|
|
|
|
Thanks for your response Nick.
So you're telling me to use ADO. Hmmm, I was hoping to go closer to the metal, by using the Access engine and object model -- more like a DAO tutorial, I guess.
Regards,
Alvaro
Kinda hard to sign my name without anything to write with. Anyone got a pen?
|
|
|
|