Showing posts with label files. Show all posts
Showing posts with label files. Show all posts

Monday, March 26, 2012

If anybody like know...

i do not understand.

I have this code:

#import "C:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "EndOfFile")

...

_ConnectionPtr Conn;

...

CoInitialize(NULL);

HRESULT hr = Conn.CreateInstance(__uuidof(Connection));

Conn->Provider = "Microsoft.Jet.OLEDB.4.0";

Conn->ConnectionString="Data Source=c:\\mydb.mdb;";

hr = Conn->Open( "","Admin","", adConnectUnspecified);

Whith My account this code work good, but when i try to start my program whith another user login, i have this error:

hr=0x800a0e7a -> Provider cannot be found. It may not be properly installed.

Why by my login program run normal, but by another login failed? OS Xpsp2 whith standart MDAC 2.8 installed.

Tthis is bug: sum keys in registry have no permissions for another users in system.

Friday, March 23, 2012

IE 7 Script errors everywhere

Whenever I go into things such as Vista upgrade adviser, U3 launchpad, help files or anything else that uses IE7 browser it comes up with a script error with all the fields blank, most time I go through it once but some such as license agreements I get stuck with it. I tried uninstalling IE7 and installing IE6 but it failed. Can you help me please or can Microsoft turn off script errors.

I'm not sure why you're writing in this forum... but IAC..

In IE7, you'll see a toolbar with a little gear-looking thing with a down-arrow. That icon takes you to a menu. The menu has "Internet Options" as its last item. That takes you to a dialog that is pretty similar to the one in IE6. Disabling script debugging is on the Advanced tab, in the Browsing section, I'm pretty sure.

>L<

Sunday, February 19, 2012

Identifying the logical files before restoring database

We have a requirement to restore the relational database from a .bak file.
This .bak file can contain more than one data file and log file. How do we
programatically determine the logical files within this bak file and restore
accordingly.
I tried using 'Restore Filelistonly', but then here i am not able to capture
the names and location of back up file and store them in a variable which ca
n
be used while restoring.
Pls adviceHi
Create a table with the same number of columns and execure RESTORE
FILELISTONLY.
"GS" <GS@.discussions.microsoft.com> wrote in message
news:523C5E6A-5E5B-493B-BBE2-73A140DB3F01@.microsoft.com...
> We have a requirement to restore the relational database from a .bak file.
> This .bak file can contain more than one data file and log file. How do we
> programatically determine the logical files within this bak file and
> restore
> accordingly.
> I tried using 'Restore Filelistonly', but then here i am not able to
> capture
> the names and location of back up file and store them in a variable which
> can
> be used while restoring.
> Pls advice
>|||Sorry, I should be more specify
CREATE TABLE #Test
(
LogicalName VARCHAR(100),
PhysicalName VARCHAR(100),
Type VARCHAR(2),
FileGroupName VARCHAR(20),
[Size]VARCHAR(100),
[MaxSize] VARCHAR(100),
)
INSERT INTO #Test EXEC('
RESTORE FILELISTONLY FROM DISK=N''c:\backupsql\dbname.bak''')
SELECT * FROM #Test
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:uDOs$0z7FHA.3200@.TK2MSFTNGP11.phx.gbl...
> Hi
> Create a table with the same number of columns and execure RESTORE
> FILELISTONLY.
>
> "GS" <GS@.discussions.microsoft.com> wrote in message
> news:523C5E6A-5E5B-493B-BBE2-73A140DB3F01@.microsoft.com...
>