import

Imported ActiveX controls are non-visual

I have imported ActiveX controls before and were able to use them same as regular VCL controls. Every now and again I bump into a control that imports fine but doesn't show up at run-time and only show a little block in the designer. The latest one is an ActiveX wrapper for the Scintilla editor and it shows me a grey block 100 pixels wi...

Import contacts from SQL Server to Outlook

I'm having some trouble getting personal contacts of some users I have in a database in SQL Server 2008. I need to import into Outlook, so I can send an email to each one. What is the best way for me to be able to connect to the database and get the contacts? Thanks. ...

How could I export application settings into a portable file? [C#]

I think this is what the asker of this question is getting at, but its hard to tell and there's no accepted answer... I have a C# app built using visual studios application settings. A really useful feature would be the ability to export the settings in one file. Similarly it would be useful to be able to import configuration files exp...

python import error no module named

Dear All, Hello, I am very new at python. I have an existing example project that have some scripts YYY,in path XXX/YYY and an script A.py that call these one by one, I only want to add an script ZZZ.py to the YYY scripts so that call after them. I add this scrit in the same path (XXX/ZZZ.py) and try to import it in the A.py and call it....

Import/Export XML data into SQL Server Compact Edition ?

Does it exist a Microsoft tool or a sql query for import/export XML data into SQL Server Compact Edition ? Like this for SQL Server : http://msdn.microsoft.com/en-us/library/ms191184.aspx#binary_byte_stream ...

Generate XSD from SQL Server database in order to import XML data

Is there a tool to generate an XSD schema from SQL Server database ? This XSD would be used for importing XML data into database with BULK INSERT or bcp ...

Importing data from a text file into SQlite Administrator takes too much time

Whenever I import a text file with about 2 million rows and 2 columns into SQLite Administrator, it takes 3-4 hours to do so. Is it normal, or am I doing something wrong? The way that I do it, is to take a tab delimited text file with rows, change the extension to .csv, and feed to SQLite Administrator. My PC specs are 2 GB RAM, Core 2 ...

Python No Longers Sees MySQLdb

Whilst writing working my way through a list of scripts I need to write I started using the MySQLdb package. This all worked fine in my Terminal by doing a simple python at the command line then import MySQLdb. However after about 30 minutes I figured I better move this to Eclipse incase I start making some stupid mistakes... Eclipse for...

Importing .sql file on windows to postgresql

I have a .sql file that was created by postgresql a while back. I now want to import this file onto a windows machine running postgresql. How do I do this. The file is about 1.5gb. ...

Import multiple queries written in SQL into access

I've got to write 50 relatively simple queries, that all use the same basic form, but each successive query depends on the one before it to run. I can quick and easily write the queries in SQL in an text editor e.g. word, but I dont know how to import the text back into access. Nor do I know how to specify the name of the query in the S...

SVN - How to upload a single file?

How do I upload a single file from my local computer to a SVN repository? I can import a directory, but I can't import a single file into existing directory. I use SVN in linux (command line). Any help would be appreciated. Edit: I forgot to mention, I need to upload this file into a specific directory that has nothing to do with di...

How to read a bulk data feed via php?

I have a large file that I would like to read via php, and then insert various fields into MySQL. Each file in the feed is in plain text format, separated into columns and rows. Each record has the same set of fields. The following are the delimiters for each field and record: Field Separator (FS): SOH (ASCII character 1) Record Separa...

How to "Import" a *.SQL File

I am hosted on Winhost.com. They support both PHP and ASP.NET. I have a PHP User Management script and the instructions are as follows: Step 1 : Login to your web hosting account and create a database and inport the database.sql file. Step 2: Open config.php with notepad and change the settings to your database details. Step 3: Upload...

Python not loading a specific function

Hi, I just run into a problem with the hamster's codebase where a module is loaded with one function and not the other. It's not my code, so I don't know many details, but I'd really like to learn how can such situation arise. There is a module called hamster which includes i18n.py which has two functions: setup_i18n and C_. There is no...

CSV Import with Validation

I have a need to import a number of CSV files into corresponding tables in SQL. I am trying to write a stored procedure that will import any of these CSV files, using a number of parameters to set things like file name, destination name etc. Simple so far. The problem comes because of the structure of this DB. Each data table has a numb...

Merging multiple Access databases into SQL Server

We have a program in which each user is given their own Access database. We'd like to merge these all together into a single SQL Server database. The problem is that, using the SQL Server import/export wizard, the primary/foreign keys do not get updated. So for instance if one user has this table: 1 Apple 2 Banana and another us...

MySQL import CSV data - ignore some csv columns

Hi guys, I have a couple of CSV files I want to load into my database, but the CSV file contains many many more columns than in my database. How do I import only selected columns from the CSV file into my database? For arguments sake, let's say the CSV contains a header row with the column titles A to Z, and then two million rows with ...

Why am I encountering an ImportError when I try to 're-import' a module?

I have a series of python modules written which are held in the same directory and I am having trouble with an ImportError. The three modules I am using are draw_menu.py, errors.py and file_operations.py. In errors.py I requires a list of error codes, I am using a custom method defined in file_operations.py to open a file containing th...

How to check submodules in Python with hasattr

At runtime, the Python code gets the name of a submodule to load, which I don't know before. Now, I want to check, if this submodule exists inside an existing module. Consider this structure, where foo and bar can be specified: master/ | |- __init__.py | |- foo/ | | | |- __init__.py | |- bar/ | |- __init__.py Now, usually I do...

Change package import name in python.

Hi ! I was wondering if it was possible to import a library in python, and completely change its name. say i need to do : import plop.blah.wii but I want it to be recognized as foo.bar.yeah something like import plop.blah.wii as foo.bar.yeah Any idea how can this be done ? When unpickling an object, Python expects a library th...