Viewing 15 posts - 16 through 30 (of 71 total)
Create a DSN on the SQL Server box using the Client Access ODBC driver.
This DSN should point to the AS400 libraries you want to use.
Add the AS400 server as a linked server to...
April 11, 2007 at 9:50 am
Check to see what name is actually used in the database. Often, DOMAN\username is set as the SQL Server Login, but the database user name may just be the username...
February 21, 2007 at 2:40 pm
It does not matter what the user authentication is, you can just add the LOGIN to the TargetServerRole in MSDB
January 8, 2007 at 2:31 pm
Thank you all for your prompt and workable solutions.
December 11, 2006 at 12:21 pm
That would work for those records I sampled. But what about records which
exists in the sample where the 3rd record is not there. In that case, the desired record would...
December 11, 2006 at 11:12 am
Here is a stored procedure which may help:
CREATE PROCEDURE ChangeAllObjOwner (
@oldowner sysname,
@newowner sysname
)
AS
DECLARE @objname sysname
SET NOCOUNT ON
--check that the @oldowner exists in the database
IF USER_ID(@oldowner) IS NULL
BEGIN
...
November 7, 2006 at 12:35 pm
I think Sergiy's solution will fit the bill. Thank very much!
November 6, 2006 at 4:06 pm
SQL Server 2000 ships with a scripting utility which can be run from a job.
Here is sample code we run nightly for an "ever-changing" test database:
declare @command varchar(1000)
declare @texttime...
August 21, 2006 at 1:30 pm
DELETE FROM
p1
FROM
tmPunchtimeSummary p1
INNER JOIN
(
SELECT MAX(itmPunchtimeSummaryId) as as itmPunchTimeSummaryID, sCalldate, sEmployeeId, dTotalHrs FROM tmPunchtimeSummary GROUP BY sCalldate, sEmployeeId, dTotalHrs HAVING COUNT(*) > 1
  p2
ON(
p1.sCalldate =...
June 14, 2006 at 12:21 pm
sp_MSForEachdb @command1='PRINT''[?]''', @command2='USE [?] EXEC sp_helpfile'
This should loop through all databases and give file locations for each database file and log file for each database.
June 14, 2006 at 9:58 am
SELECT item.[search description], mat.[material__code]
FROM [Item] item INNER JOIN
DISPENSER.rx_impress.dbo.material mat ON mat.[material__code] LIKE SUBSTRING(ITEM.[SEARCH DESCRIPTION], 1, LEN(MAT.]METERIAL__CODE)
April 12, 2006 at 11:12 am
Everyone is correct about the ill-designed table. It is a commercial application design, not our own.
Thanks for everyone's help.
March 1, 2006 at 9:03 am
You should have an alias for the remote server set up on your Client Network Utility. I would use the IP address is the ServerName text box.
September 20, 2005 at 5:44 pm
Viewing 15 posts - 16 through 30 (of 71 total)