473,659 Members | 2,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need to send a directive to linked database

I need to insert records into a Sybase database via a linked table.

I have a valid, tested DSN ODBC connection to the Sybase database
named 'SBA9link'. I also have created a link to a table in the Sybase
database that I need to insert into named 'dbo_External_D ata'. This is
the only means that I have to communicate with the Sybase database.

Before I can do inserts into this table I must send the Sybase
database an authentication string: 'SET TEMPORARY OPTION
CONNECTION_AUTH ENTICATION xxxxxxx'.

I don't need to do anything fancy, just a simple Insert Query would be
fine so long as I can get the data into the Sybase 'External_Data'
table. Without sending that authentication string, I'm not allowed to
do inserts.

I don't have any idea how to send this authentication string. It can't
be done as a parameter to the Sybase ODBC driver, I've tried. I would
appreciate any and all help with this.

Thanks.
Nov 13 '05 #1
2 2048
"fumanchu" <le******@veriz on.net> wrote in message
news:n3******** *************** *********@4ax.c om...
I need to insert records into a Sybase database via a linked table.

I have a valid, tested DSN ODBC connection to the Sybase database
named 'SBA9link'. I also have created a link to a table in the Sybase
database that I need to insert into named 'dbo_External_D ata'. This is
the only means that I have to communicate with the Sybase database.

Before I can do inserts into this table I must send the Sybase
database an authentication string: 'SET TEMPORARY OPTION
CONNECTION_AUTH ENTICATION xxxxxxx'.

I don't need to do anything fancy, just a simple Insert Query would be
fine so long as I can get the data into the Sybase 'External_Data'
table. Without sending that authentication string, I'm not allowed to
do inserts.

I don't have any idea how to send this authentication string. It can't
be done as a parameter to the Sybase ODBC driver, I've tried. I would
appreciate any and all help with this.

Thanks.


Have you looked at Pass-Through queries. This is when Access says "I don't
know or care what you write to the server - I'll just pass it on and let the
database server handle it"
Nov 13 '05 #2
Great tip! Thanks!

I'd forgotten all about pass through, hadn't used it in years.

Passed the authentication string with no problem.

On Mon, 19 Sep 2005 09:59:28 +0000 (UTC), "Brian Wilson"
<bw*****@ease.c o.uk> wrote:
"fumanchu" <le******@veriz on.net> wrote in message
news:n3******* *************** **********@4ax. com...
I need to insert records into a Sybase database via a linked table.

I have a valid, tested DSN ODBC connection to the Sybase database
named 'SBA9link'. I also have created a link to a table in the Sybase
database that I need to insert into named 'dbo_External_D ata'. This is
the only means that I have to communicate with the Sybase database.

Before I can do inserts into this table I must send the Sybase
database an authentication string: 'SET TEMPORARY OPTION
CONNECTION_AUTH ENTICATION xxxxxxx'.

I don't need to do anything fancy, just a simple Insert Query would be
fine so long as I can get the data into the Sybase 'External_Data'
table. Without sending that authentication string, I'm not allowed to
do inserts.

I don't have any idea how to send this authentication string. It can't
be done as a parameter to the Sybase ODBC driver, I've tried. I would
appreciate any and all help with this.

Thanks.


Have you looked at Pass-Through queries. This is when Access says "I don't
know or care what you write to the server - I'll just pass it on and let the
database server handle it"

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
24274
by: David Gray | last post by:
Hello all, Having problems connecting to an Oracle 9i database from within SQL/Server 2000 using the Security/Linked Servers feature. Server1 (SQL/Server) ----------- Windows Server 2003, Standard edition MS SQL/Server 2000 Oracle 9i Client kit (OLEDB & ODBC) & Enterprise management tools
15
3673
by: drdoubt | last post by:
using namespace std In my C++ program, even after applying , I need to use the std namespace with the scope resolution operator, like, std::cout, std::vector. This I found a little bit cumbersome to always include std. I somewhere found a trick to overcome this problem. By using using std::cout;
13
4099
by: RainBow | last post by:
Hi everyone, (Very Sorry, if this is the wrong group in which I am posting this query). Code snippet: //C library typedef int (*PFunc)(int* aArg); void call_c_foo(PFunc aPtrtoFunc) {
8
7342
by: Adam Greifer | last post by:
Hi! I'm a newbie at DB2 but have 13 years of SQL Server. I need to convert over 100 SQL Server procs to DB2. I haven't had much luck with the IBM Integration Toolkit and want to avoid ER/win templates. Any suggestions. Thanks. Adam
2
2683
by: Robert McGregor | last post by:
Hi all, I've got a Front End / Back End database that was working just fine. One day i opened the FE to find that if I tried to open one of the linked tables from the database window, nothing happened (hourglass for about 2 seconds then nothing). I tried relinking the tables and got the same response. (Access even completely bombed out once with a Dr Watson failure).
5
4469
by: deko | last post by:
How to run action query against linked table? I have an Access 2003 mdb with an Excel 2003 Workbook as a linked table. When I attempt to run an action query against the linked table I get this error: Deleting data in a linked table is not supported by this ISAM. From what I understand, indexed sequential access method (ISAM) drivers are used to update "non-Microsoft" file formats. So why doesn't Access
20
4256
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
4
6251
by: mimi | last post by:
The programmer indicates to the compiler that a function is written in a different programming language using a linkage directives.It is intuitive that extern "SomeLanguage" is used to declare functions written in the "SomeLanguage". But I am quite confused what information does the linkage directive tells the compiler.The "generated" function name? The way the arguments are ordered?Or something else? And I am still wondering why extern...
4
2770
by: alvinstraight38 | last post by:
Hey guys, I am trying to import data from an Excel spreadsheet into my SQL database. I am running SQL 2005. I following Microsoft's instructions for creating a linked server, and it appeared to work. However when I run this query: SELECT * INTO test FROM OPENQUERY(EFORMS, 'SELECT * FROM ')
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8332
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.