9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Discussion started by: vx04
2 Replies
2. UNIX for Dummies Questions & Answers
I want to look up log files on the unix server. My machine is windows 7 pro.
I can view them from windows explorer but it is slow because huge amount logs files there.
Is there a way or tools to quickly access it?
Thanks. (7 Replies)
Discussion started by: zhshqzyc
7 Replies
3. Red Hat
Hi,
Please could someone advise I'm trying to use winscp from a Window server 2008 R2, but i need to add the authentication key to access the linux rh 5.4 servers ?
What is the best way of approaching this ?
If there are any web links that could help me do this, that would be good.
... (1 Reply)
Discussion started by: venhart
1 Replies
4. UNIX for Dummies Questions & Answers
I am performing some work for a small business that has no IT staff. They contract out work from time to time for their IT needs.
What they would like to do is grant access to an AIX 5.3 server for some external customers to perform some application testing. They are running Active Directory... (3 Replies)
Discussion started by: texassynergy
3 Replies
5. IP Networking
:(:confused: i am going to ask a silly question. is it possible to setup a unix server at home. once i have setup successfully, can i provide access to that server via internet. i do not have any commercial intent, behind this. (3 Replies)
Discussion started by: sudhiroracle
3 Replies
6. Shell Programming and Scripting
Hi,
Im creating a script that is supposed to run commands on remote server using sftp.
My script is as below:
#!/bin/ksh
sftp remote_server
mypassword
cd /u08/mydir/allfiles
mget *
..
But this is what I got when I runned the script:
Connecting to remote server...... (3 Replies)
Discussion started by: luna_soleil
3 Replies
7. Windows & DOS: Issues & Discussions
Hi, I am using Microsoft Team Foundation server as Configuration management tool for the .NET projects in our team. I would like to add my Unix source files to TFS. Please let me know how can i use TFS for version control of my Unix source files?
Thanks for your help (0 Replies)
Discussion started by: rameshmelam
0 Replies
8. UNIX for Advanced & Expert Users
Hello,
I have a databse stored in my Unix server. I can't change the database because is used by a third party software.
How Can I make some queries to this database (I want to extend the information for all the users using Apache + php on the unix server.)
I looked at unixODBC but I... (0 Replies)
Discussion started by: ncatdesigner
0 Replies
9. Filesystems, Disks and Memory
Hello Moto
I hope someone can help
We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers..
a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies
ODBC_CONNECT(3) 1 ODBC_CONNECT(3)
odbc_connect - Connect to a datasource
SYNOPSIS
resource odbc_connect (string $dsn, string $user, string $password, [int $cursor_type])
DESCRIPTION
The connection id returned by this functions is needed by other ODBC functions. You can have multiple connections open at once as long as
they either use different db or different credentials.
With some ODBC drivers, executing a complex stored procedure may fail with an error similar to: "Cannot open a cursor on a stored proce-
dure that has anything other than a single select statement in it". Using SQL_CUR_USE_ODBC may avoid that error. Also, some drivers don't
support the optional row_number parameter in odbc_fetch_row(3). SQL_CUR_USE_ODBC might help in that case, too.
PARAMETERS
o $dsn
- The database source name for the connection. Alternatively, a DSN-less connection string can be used.
o $user
- The username.
o $password
- The password.
o $cursor_type
- This sets the type of cursor to be used for this connection. This parameter is not normally needed, but can be useful for work-
ing around problems with some ODBC drivers. The following constants are defined for cursortype:
o SQL_CUR_USE_IF_NEEDED
o SQL_CUR_USE_ODBC
o SQL_CUR_USE_DRIVER
RETURN VALUES
Returns an ODBC connection or ( FALSE) on error.
EXAMPLES
Example #1
DSN-less connections
<?php
// Microsoft SQL Server using the SQL Native Client 10.0 ODBC Driver - allows connection to SQL 7, 2000, 2005 and 2008
$connection = odbc_connect("Driver={SQL Server Native Client 10.0};Server=$server;Database=$database;", $user, $password);
// Microsoft Access
$connection = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$mdbFilename", $user, $password);
// Microsoft Excel
$excelFile = realpath('C:/ExcelData.xls');
$excelDir = dirname($excelFile);
$connection = odbc_connect("Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=$excelFile;DefaultDir=$excelDir" , '', '');
?>
SEE ALSO
For persistent connections: odbc_pconnect(3).
PHP Documentation Group ODBC_CONNECT(3)