10 More Discussions You Might Find Interesting
1. AIX
I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users.
The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies
2. 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
3. Proxy Server
Dear all experts here,
:)
I would like to install a proxy server on Linux server to perform solely to control the access of Web server.
In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server.
I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies
4. Shell Programming and Scripting
hi, i'll want to try on the parameter with three possibility because mine colleagues usally to work on the other name folders.
for example:
MSSQL
SQL SERVER
SQLSERVER
case $q in
a) echo -ne "Work database: "
echo ""
echo " 1) ORACLE"
echo... (4 Replies)
Discussion started by: gsflash80
4 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Some of our application team uses Microsoft Team Foundation server (TFS) reposity tool for their .NET projects , I would like to access it form Unix/Linux machine. Please let me know how can access the TFS from unix.
Thanks (0 Replies)
Discussion started by: posix
0 Replies
6. UNIX for Advanced & Expert Users
Hello all,
I am using IBM Directory Server (as a part of AIX7 extension pack) in an AIX environment.
To set up the server I use command:
mksecldap -s -a cn=admin -p PWD -S RFC2307AIX -d o=COMPANY -u NONE
Then, to set up IDS clients I use the following (I have 2 mutually replicating servers... (0 Replies)
Discussion started by: Myaso
0 Replies
7. AIX
Hi all,
Hopefully this question hasn't been asked a thousand times. I am trying to connect a Windows Server to an exported NFS share which resides on an AIX box.
I think the directory is exported correctly from the AIX side but I can't verify that because I didn't do it myself. On the... (6 Replies)
Discussion started by: ThePistonDoctor
6 Replies
8. AIX
Hi,
I am a newbie to AIX. We have 2 AIX5.3 servers in our environment, I need to transfer some files in Binary mode from one server to another and some files in ASCII mode from one server to another server. Could you please help me as to how I need to do that?
Thanks,
Rakesh (4 Replies)
Discussion started by: rakeshc.apps
4 Replies
9. 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
10. Shell Programming and Scripting
Hi - can any one tell me is it possible to connect to mssql and fetch the data from unix shell scripts (3 Replies)
Discussion started by: ahmedwaseem2000
3 Replies
DBIx::Class::Storage::DBI::MSSQL(3) User Contributed Perl Documentation DBIx::Class::Storage::DBI::MSSQL(3)
NAME
DBIx::Class::Storage::DBI::MSSQL - Base Class for Microsoft SQL Server support in DBIx::Class
SYNOPSIS
This is the base class for Microsoft SQL Server support, used by DBIx::Class::Storage::DBI::ODBC::Microsoft_SQL_Server and
DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server.
IMPLEMENTATION NOTES
IDENTITY information
Microsoft SQL Server supports three methods of retrieving the IDENTITY value for inserted row: IDENT_CURRENT, @@IDENTITY, and
SCOPE_IDENTITY(). SCOPE_IDENTITY is used here because it is the safest. However, it must be called is the same execute statement, not
just the same connection.
So, this implementation appends a SELECT SCOPE_IDENTITY() statement onto each INSERT to accommodate that requirement.
"SELECT @@IDENTITY" can also be used by issuing:
$self->_identity_method('@@identity');
it will only be used if SCOPE_IDENTITY() fails.
This is more dangerous, as inserting into a table with an on insert trigger that inserts into another table with an identity will give
erroneous results on recent versions of SQL Server.
identity insert
Be aware that we have tried to make things as simple as possible for our users. For MSSQL that means that when a user tries to create a
row, while supplying an explicit value for an autoincrementing column, we will try to issue the appropriate database call to make this
possible, namely "SET IDENTITY_INSERT $table_name ON". Unfortunately this operation in MSSQL requires the "db_ddladmin" privilege, which is
normally not included in the standard write-permissions.
Ordered Subselects
If you attempted the following query (among many others) in Microsoft SQL Server
$rs->search ({}, {
prefetch => 'relation',
rows => 2,
offset => 3,
});
You may be surprised to receive an exception. The reason for this is a quirk in the MSSQL engine itself, and sadly doesn't have a sensible
workaround due to the way DBIC is built. DBIC can do truly wonderful things with the aid of subselects, and does so automatically when
necessary. The list of situations when a subselect is necessary is long and still changes often, so it can not be exhaustively enumerated
here. The general rule of thumb is a joined has_many relationship with limit/group applied to the left part of the join.
In its "pursuit of standards" Microsft SQL Server goes to great lengths to forbid the use of ordered subselects. This breaks a very useful
group of searches like "Give me things number 4 to 6 (ordered by name), and prefetch all their relations, no matter how many". While there
is a hack which fools the syntax checker, the optimizer may still elect to break the subselect. Testing has determined that while such
breakage does occur (the test suite contains an explicit test which demonstrates the problem), it is relative rare. The benefits of ordered
subselects are on the other hand too great to be outright disabled for MSSQL.
Thus compromise between usability and perfection is the MSSQL-specific resultset attribute "unsafe_subselect_ok". It is deliberately not
possible to set this on the Storage level, as the user should inspect (and preferably regression-test) the return of every such ResultSet
individually. The example above would work if written like:
$rs->search ({}, {
unsafe_subselect_ok => 1,
prefetch => 'relation',
rows => 2,
offset => 3,
});
If it is possible to rewrite the search() in a way that will avoid the need for this flag - you are urged to do so. If DBIC internals
insist that an ordered subselect is necessary for an operation, and you believe there is a different/better way to get the same result -
please file a bugreport.
AUTHOR
See "AUTHOR" in DBIx::Class and "CONTRIBUTORS" in DBIx::Class.
LICENSE
You may distribute this code under the same terms as Perl itself.
perl v5.18.2 2014-01-05 DBIx::Class::Storage::DBI::MSSQL(3)