You can use "Data Connection" Wizard to make a connection to the SQL DB. In this case you need not have the user name/password
hardcoded.
Go to Tools --> Data Connections --> Add......for adding a new database connection to the InfoPath form.
Best Regards,
Sheetal D
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: Retrieving data out of SQL Server with a SQL User
thread-index: AcXVjGZRMXiYI/RAQdOFuBDWzXbnXA==
X-WBNR-Posting-Host: 144.44.150.152
From: "=?Utf-8?B?U3RhbmxleQ==?=" <
[email protected]>
Subject: Retrieving data out of SQL Server with a SQL User
Date: Thu, 20 Oct 2005 08:39:03 -0700
Lines: 10
Message-ID: <
[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.infopath
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.infopath:18034
X-Tomcat-NG: microsoft.public.infopath
Hi,
i would like to retrieve data out of a table with a specific sql user in
code. If i do this than i would have to add the sql user hard coded in the
connection string. Is there another way to retrieve data without using the
sql user hard coded? Can i use the data connection perhaps to achieve this?
Thnx,
Stanley