connection strings and ini file -
anyone got an example of how to read server and database name for a sql server from an ini file in .Net.
In vb.6 i would use an api call to GetPrivateProfileString...
then simply from a function use the following code:
Quote:
|
retval = GetPrivateProfileString(Section$, Key$, Def$, buff, Len(buff), INIFile)
|
[2005] placement of connection strings: -
I have a connection string created for a data reader object. I need this string accessible to many different pages. I tried to make it an application variable. However, I couldn't convert a variant to a connectionString variable. How would I go about making a connectionstring just
Winsock sending strings and files -
I can send a file, and I can also send text using winsock. Now I want to be able to send both text and files between two ip addresses.
Is is better to use two winsock controls, that is establish a connection and send strings over this, then establish a second connection to the sa
Encryption error message! -
Hi friends!
I am trying to encrypt the data flow from VB to SQL.
Checking FORCE ENCRYPTION property in SERVER-NETWORK utility fulfills the option, but could you please tell me how do I make it work with the connection strings.
I added ...INTEGRATED SECURITY=SSPI and TRUSTED CONNE
[2005] encrypting connection strings -
I have an app which makes use of connections strings and other application wide settings. I would like those settings to be stored in the app.config file and for them to be encrypted. I also need to know how to read those back in and decrypt them
thanx
how to export strings to excel file -
I have some strings which are for the fields in an excel file.
some strings I want to show in red color, and some strings I want to have a link, so if a user click the value in excel file, it will go to that link. Are there any examples for doing this in Vb .NET?
thanks
temp
Changing servers. Connection string updating question -
My database was moved to a new server so now my connection strings don't work. I know I can go in a change them all (pain!!!!!!) but is there a way to change all the connection strings at one time so it is easier for me.
The IT department said they might move my database again so th
Connection strings **Resolved** -
Hi,
Just been browsing the MSDN libraries online and I can't find a complete list of connection strings.
Is there such a list (has examples of connecting to Access 97, 2k, SQL Server, ODBC, DSN, Oracle etc...) available online anywhere?
Regards
Vince
connection strings with Access passwords... -
Hello,
I have a question about connection strings and Access databases. This is the connection string that I usually use to connect to my Access database:
mConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\MyDatab
Internationalization support CR 10 -
Hello everybody
I`d like to ask whether Crystal Reports 10 supports a resource file for strings. I`ve been using the RDC component for some time and have placed some strings directly on the designer control. Can these strings be transfered to a resource file of some kind?
[.NET 2.0+] Protected Configuration (Encrypting Config Files) -
The config file is the preferred location for application configuration data these days. .NET apps will use it themselves to store data in various situations. One such situation that many people may have encountered is when you create a Data Source the wizard offers to store the conn
ADO ODBC Connections - Newbie -
Hi all,
I've been reading manuals for hours and can't figure out how to do this. I've made an ODBC connection ( to an MSAccess DB) and it works fine. But my program is going to have many forms, and runs lots of queries. I want to be able to change the database I'm connecting to by cha
Strings from file -
Hi, I'm having a problem putting 10 strings from file into my array.
There are 10 strings in a file which are seperate by a space.
example example example
I'm using the following code
for(i=0;i<10; i++)
fscanf(in_file,"%s ",names[i]);
but its only read
Connection Strings (web link to info) -
Came across this while looking at sql connections, connection strings to many database systems -
http://www.connectionstrings.com/
Default Driver...Error (mySQL) -
You're connection is a local connection. His is remote. He needs to be able to connect remotely.
Perhaps the quickest is to use the ODBC connection manager to add the same data source to his machine. The drivers are probably already there.
You should also be able to do this with
MySQL Connection Strings -
I have MySQL installed at my home computer and at work.
At home I have to put the connection string as: DRIVER={MySQL};.....
and at work I have to put the connection string as: "DRIVER={MySQL ODBC 3.51 Driver};....
Why is it different ?
If I want to use the same applicat
Network deployment -
I have never done a Package & Deployment for a network. Other than minor tweaking of the normal P&D process, is there anything troublesome I need to be on the lookout for?
Specifically, if I have an .mdb database file on the server, and all my connection strings are hard-cod
DNS less connection string for excel -
Hi,
I'm looking for the syntax on how to load a .xls file into an ADO.RecordSet object.
I'm not looking for the way to do it, but for the connection string needed to open a "connection" to my file.
Can I use the same one as for regular CSV text files? That is:
how to copy from file to clipboard -
hi,
let's say the file contains 100 strings, one in each line, I want to copy only the 10 strings at a time to the clipboard and the for the next click it has to be, the next 10 strings and so on... how to achieve this, any idea friends..
Connection Builder -
Does anyone know if it is possible to call the standard Microsoft "Connection Builder" to build a connection string for use with ADO. Currently I have an app that requires diffent connection strings to be used in each seperate installation. Currently I instruct user to enter
[2005] Connection Strings and Dataset Designer -
I am currently wrestling with the best method by which to use the dataset designer and a dynamic connection string selected from the application configuration file. I am connecting to a SQL Server 2000 db.
Ideally I'd like the ability to alter the connection string used by the desi
how can i extract all strings from an exe,dll,cpl,scr.... -
how can i extract all strings from an exe,dll,cpl,scr....
( i know that we can use resource editors to extract resource strings from exe,dll,.. but im talking about extracting strings that are not in the resource section)
(one thing i really want is to extract all the registry ke
Userconnection -
hello there again, i've been connecting to databases and servers by using connection strings or ADO. now, i just saw another type of connection under VB6.0 and this time its called "UserConnection1". you can have this by right-clicking on the Forms folder in the Project Explo
SQL Express Connection Strings w/VB.NET -
I am slightly lost at this point and wish for someone who is knowledgeable in this matter to explain.
I have written a VB.NET application and I used SQL Express 2005 as the DBMS. I plan to distribute this application on CD.
When I first started writing this app using SQL Express,
command strings - best meyhods -
Hi,
Can someone give me a definitive set of rules as regards what is the best strategy when using ADO. i.e. Do I use:
1. Connection strings to execute
2. command strings to execute.
3. Recordset object to execute.
I presumed the first two were relevant for doing things that
Text Document - Lines to Strings -
Can anyone provide me with some "quick code" to accomplish this task.
I have 2 text boxes on FormA. "Description" and "Connection". This, in turn, is going to be written to a txtfile in the format of CONNECTION||DESCRIPTION.
So, the text file will
[resolved]using the selected modem to dial without issuing modem commands (AT) -
i've searched the forum but got no related topic so i decided to post this question. I just really need some help.
i already have an existing program that connects to a device with a modem. The only problem is that it connects with only a specific modem. Whenever i used other modems
[2008] Reading/writing mulitiple data types in a file -
I have a program that has multiple data types that store different values. Some are integers, longs, strings, dates and such. The longs and integer values can be very large and strings can be very long. What I want to do is store all this information into one file that isn't a text fil
VB6 connection string troubles -
Hi,
I'm just starting out on writing a VB FE for an .mdb BE.
I've created a few commands which contain SQL strings which calculate number of records with etc etc.
When creating my connection with the dataenvironment I set the file path to C:\MyDatabases\MyDb.mdb.
Added a fe
find string in files -
Hi,
I am trying to solve a problem...need some help..
The problem is ... I am trying to find occurences of a string in a text file. I have all the strings in a text file which I call as reference file and I have many other text files (which I call as node files ) which have di
[2008] |DataDirectory| , Vista, and MSI -
Thanks for taking a look at my question!
Vista best practices say to NOT put data in the program files directory. It goes on to say that file virtualization will not always exist and is meant to help legacy apps. The weird thing is that Click Once deployment and the use of a data
How to eliminate zero strings -
I have a random access file with appr 3000 entries.Some
fields are empty,showing as " " when running the file.
I would like to copy the file to another file but without
the empty strings.
Can anybody give me a hint ?
RobertXYZ
[2005] Create new file extension -
Hi, I want to make a program that will save a collection of strings and pictures in one single file, not a .txt but a file with an extension that applies to just my application. How do I do this? How do I "invent" a file that will support images and strings... any idea anyone
Connection String WOES -
Something that I need advise on how to make more efficient is this:
When you drag and drop the design time sqlDataAdapter on let's say 10 aspx pages, .NET creates a separate connection string in the code behind for each page. Problem is when I have to move onto a production server I
Edit a resource file via code -
can you edit a resource file of an exe from that actual exe at run time? basically I have a DLL that I would like to store some strings in.. I don't want to store the strings in the reg or something.. so a resource file would be perfect, but I need the application to be able to self up
convert strings -
anyone know how to convert strings into integers?
strings I meant not chars, I meants strings.
#include <string.h>
help, Binary to a file -
Hi, I need to be able to take two strings, an integer, and a currency (integer will work) And I need to take that, and write it to a file in 1s and 0s. I'm really new with VB 6.0 and don't quite understand how to write in files.(well kinda, but not really very well,) Also, part of the
script file for dial-up networking -
Hi All,
I'm new on writing scripts and hope that someone can help me with this.
I want to change the *USERID and the $PASSWORD in the terminal screen
before connecting to a provider.
I've created a script with this code
proc main
$USERID = "my username"
$PASS
Accessing and working on .c, .h files from VB -
Hi all,
I need to find few strings in .c/.h files which are part of a VC++ workspace and replace those strings with my new strings. I've stored the "strings to be found in the files" in one column and "strings to be replaces in the files" in 2 adjacent columns
Calling Procedures -
I read strings from a file. These strings are procedure names.
How do I get VB6 to call the function that is represented by the string I just read from the file?
Any ideas appreciated.
removing quotes from strings ***RESOLVED*** -
Just a simple question,
I have a list box with strings and numbers contained in it. some of the strings have quotes around them but the numbers do not. I was trying to think of the quickest and easiest way to remove the quotes from around the strings. It is made harder by the fact t