Viewing 15 posts - 106 through 120 (of 125 total)
Server A is not a SQL SERVER, B anc C are SQL2K
Accessing A from B by DSN
C lnked on B
Thanks
November 18, 2003 at 9:12 am
Looks like the client machine using named pipes (Default), try to change the connection to use TCP/IP.
November 5, 2003 at 8:13 am
IT WORKS FOR WHERE CLAUSE ALSO. TRY THE FOLLOWING EXAMPLE.
CREATE TABLE TESTTB
(id INT, Name CHAR(20))
INSERT INTO TESTTB VALUES(1,'SQL')
INSERT INTO TESTTB VALUES(2,'T-SQL')
DECLARE @table VARCHAR(30)
DECLARE @owner VARCHAR(20)
DECLARE @Database VARCHAR(30)
DECLARE @sql...
October 30, 2003 at 1:27 pm
TRY THIS
DECLARE @table VARCHAR(30)
DECLARE @owner VARCHAR(20)
DECLARE @Database VARCHAR(30)
DECLARE @sql VARCHAR(200)
SET @Database = 'YOUR DATABASE NAME'
SET @owner = 'dbo'
SET @table = 'YOUR TABLE NAME'
SET @sql = 'SELECT...
October 30, 2003 at 12:48 pm
Hi Sarat,
Create a view to return getdate() and use that view in your UDF. You cannot call getdate() function in UDF.
CREATE VIEW get_date
AS
SELECT CURRENT_TIMESTAMP AS CUR_DATE
Thanks.
October 17, 2003 at 11:39 am
Try This
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vw_test
AS
SELECT * FROM OPENQUERY(TEST,"Select * from customer where state = 'AL'")
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
October 17, 2003 at 10:38 am
Steve,
we are not storing the answers in different place, included with whole text. "testxxx" some other data and we don't care that(the data is stored in text datatype...
October 17, 2003 at 10:14 am
Prakash,
Use the following function to split the row
CREATE FUNCTION dbo.fn_Split(@String VARCHAR(8000), @Delimiter CHAR(1))
RETURNS @Results TABLE (Items VARCHAR(8000))
AS
BEGIN
DECLARE @index INT
...
October 17, 2003 at 8:55 am
I did not under stand what you want to do here
WHERE AreaDesignatorID IS NULL OR AreaDesignatorID = ISNULL( @areaDesignatorID, AreaDesignatorID )
ISNULL( @areaDesignatorID,...
October 16, 2003 at 8:52 pm
Hi,
Let's suppose you have a table called Table1 and the columns are Column1, Column2,Column3
Column1Column2Column3
-------------------------------
1NULLtest1
2test2NULL
3test3test4
SELECT * FROM Table1 WHERE column1 IS NULL OR Column2 IS NULL
Then you will get the following
Column1Column2Column3
-------------------------------
1NULLtest1
2test2NULL
Hope...
October 16, 2003 at 1:45 pm
Hi,
Yes you can execute the stored procedures from DTS
1. make a connection to your server
2. create new task called Execute SQL Task and provide the connection which you created in...
October 15, 2003 at 2:17 pm
ALTER PROCEDURE au_info @lastname varchar(40), @firstname varchar(20) AS
SELECT au_lname, au_fname
FROM authors
WHERE au_lname = @lastname OR au_fname = @firstname
GO
EXECUTE au_info @firstname = NULL, @lastname = 'Ringer'
GO
October 15, 2003 at 1:17 pm
Viewing 15 posts - 106 through 120 (of 125 total)