|
Nope. The DR is a server-side cursor so only one read is actually downloaded a time. The DA/DS is downloads the entire data set when you call DA::Fill so naturally its speed will be directly tied to how large a data set you're downloading.
Cheers,
Tom Archer
Inside C#, Extending MFC Applications with the .NET Framework
It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson
|
|
|
|
|
Oh, OK. I thought as well. I was holding on to hope there for a while.
God, I pity me! - Phoncible P. Bone
If I end up Windows ME someone is going to be hurting. - One of the answers to a question for What OS are you
|
|
|
|
|
I want to reach to a database via DMO, but getting compile time errors. MSDN says that i should be able to get to it through item method, but compiler complaints that this is not a member of SQLDMO::Databases. Any idea what i am doing wrong?
SQLDMO::_SQLServerPtr pSQLServer;
SQLDMO::DatabasesPtr pDatabases;
SQLDMO::_DatabasePtr pDatabase;
HRESULT hr = pSQLServer.CreateInstance(__uuidof(SQLDMO::SQLServer));
pSQLServer->Connect ("MyServerName", "username", "password");
pDatabases = pSQLServer->GetDatabases();
pDatabase = pDatabases->Item("MyDatabase");
|
|
|
|
|
i use the ADO in C++ to connect to an access database file,
connecting to the database requiring registering the database first in the DSN. so, i'm asking if there anyway that let me connect to the database with only the file name or anythin. or if there anyway that can let me add the DSN from the source code ???
THanks
|
|
|
|
|
Hi,
sure you don't need to create a DSN
take this connection string as a sample:
<br />
"Provider=Microsoft.jet.oledb.4.0;Jet OLEDB:Database Password=MYPASS;Data source=C:\db1.mdb"
|
|
|
|
|
|
I've a question about VC++ and ADOCE.
From a cdb Database I will write the output in a listfield, but it doesnt go.I write the Data in the Recordset and then?
How can get the data?
Can everybody help me about this Problem?
|
|
|
|
|
Hi 2 all!
Ater I added an expression column to my DataTable (it resides within DataSet), DataAdapter.Update started to throw following exception:
---------------------------------------------------------
An unhandled exception of type 'System.Data.ReadOnlyException' occurred in system.data.dll
Additional information: Cannot change ReadOnly property for the expression column.
---------------------------------------------------------
Why such thing happens? What should I do?
|
|
|
|
|
Solution found!
You just need to correct stored procedures generated by wizars in oreder to return inserted\updated field by means output parameters.
Generated Insert\Update commands must be corrected also.
|
|
|
|
|
Hi, how can i get a list of tables with columns from a access database
by using cdatabase and crecordset? I want to use the list in
a CTreeCtrl!
|
|
|
|
|
If you'll use Access , why not to use CDaoDatabase ?
you can use methods like :GetTableDefCount , GetTableDefInfo to get CDaoTableDefInfo object.
then you can get data about each table.
|
|
|
|
|
You can use ADOX to retrieve tables/views list. If you want, I can give you some code fragment.
Kyle Chen
|
|
|
|
|
Hi all,
I have data arriving via a text file that needs to be synchronized with the data in the DBase, the problem is that the text file contains all the data that is in the DB table + changes, so i need to figure out the best way to filter only the modified data and update the table in the db.
i am currently parsing the text file into a dataset and pulling the data from the DB into a different dataset, is there a way to update the data source only with the data witch was modified ?
|
|
|
|
|
Hi,
I have two database files, an access database(jet) and a mssql database(mssqloledb).
I'm tryng to execute the query "DELETE * FROM table1", so I've created a _CommandPtr variable. When I execute the command with the access database it works fine, but when I execute the command with the mssql it throws an exception 'DB_E_ERRORSINCOMMAND'. It's a sintax error in the sql.
Is there any difference in the sintax of the sql statement between this two providers ?
ps: I can't use "SELECT * FROM table1" with the mssql provider either.
thanks.
|
|
|
|
|
There are differences in syntax, but in this case it may be that your connection is trying to use the Access (Jet) provider instead of the MSSQL provider.
"Welcome to Arizona! Drive Nice - We're Armed..." - Proposed Sign at CA/AZ Border
|
|
|
|
|
try to use fully qualified names :
databasename.dbowner.tablename
|
|
|
|
|
Maybe you should use "DELETE FROM table1" for MSSQL. Just have a try.;)
Kyle Chen
|
|
|
|
|
Anyone know that what is the limitation on the number of records affected when using the UpdateBatch function on a recordset pointer ? Any other limitation ?
|
|
|
|
|
It depends on the provider.
I think (the docs aren't very clear on this) that you can find it out by looking at the BatchSize dynamic property (accessed via the Properties property of the recordset).
|
|
|
|
|
Using VS.Net I am trying to figure out an easy way to add my stored procedures to visual source safe. Preferably, I would like to be able to just check in and out the stored procedures like they were normal documents. Can this be done?
Thanks,
Jason W.
|
|
|
|
|
I just write all my SPs in Query Analyzer and save them as .sql files. I check these into VSS. You could do the same in VS, but it's easier in Query Analyzer.
|
|
|
|
|
Good idea, I’ll do it that way. Thanks for the help.
Jason W.
|
|
|
|
|
Hi all - I'm using Windows Server 2003 Enterprise Edition, and I'm trying to install SQL Server 2000 Developer Edition. At the beginning of the installation I get a warning from Windows saying that there are compatibility issues with SQL lower than SP2. That's fine, because I have SP3 on CD. I install SQL without any problems, then when I try to install the SP3, at the end where it is running .sql scripts, on one it gives an error. Simply "could not run script" and that's the end of setup, it just exits. When I try to use SQL before or after the attempted install of SP3, nothing happens. SQL Agent can't start the service, and Enterprise Manager can't connect. Any ideas? Thanks
Paul
Garfield.Bark();<br />
---Configuration: garfield - Win32 Deworm---<br />
C:\garfield.cpp(9) : error C2039: 'Bark' : is not a member of 'CCat'<br />
modified 18-Jul-18 11:59am.
|
|
|
|
|
Is there any Tool where i can administer SQL Server through Browser??
whatever i can do through SQL EnterPrise Manager i should be able do the same using browser
|
|
|
|
|
Hey, a bit late, but;
Try PhpMyAdmin (http://www.phpmyadmin.net).
phpMyAdmin is a web-based utility to manage MySQL databases...
MySQLFront Rocks.
Jeroen.
|
|
|
|